Three controllers require counters with the state counts shown below. A counter's modulus is the number of distinct states in its repeating counting sequence. Each controller stores its count in an ordinary binary representation using the minimum possible number of bits.
For each controller, enter the minimum number of bits and the number of available bit patterns that remain unused. Use exact integers. Count distinct states, including zero; a six-state counter may use the values 0 through 5.
Unlock full course notes by signing up
Simultaneous updates in cascaded registers
Two four-bit parallel registers, A and B, share a rising-edge clock. Register A receives an external data word, and register B receives A's output. Each enabled register captures its input value from immediately before the edge; a disabled register holds its previous word. Initially, A=0011A=0011A=0011 and B=1100B=1100B=1100. No reset occurs, and all inputs meet setup and hold requirements.
What are the stored words after the second edge has settled?
A transient zero in a ripple counter
A four-bit ripple up-counter displays Q3Q2Q1Q0Q_3Q_2Q_1Q_0Q3Q2Q1Q0. Immediately before t=0t=0t=0, its stable state is 011101110111. An external falling clock edge at t=0t=0t=0 causes Q0Q_0Q0 to toggle after 8 ns8\ \text{ns}8 ns. Each higher bit toggles 8 ns8\ \text{ns}8 ns after a falling transition of the immediately lower bit. Assume these delays are exact, output transitions are instantaneous, and no further external edge occurs before the counter settles.
An ideal decoder has zero propagation delay and outputs 1 exactly when the displayed pattern is 000000000000. Which description is correct at t=27 nst=27\ \text{ns}t=27 ns?
Meeting a minimum trigger delay with a preload
A camera controller uses an 11-bit binary up-counter to delay a trigger. Its clock frequency is exactly 1.60 MHz. The preload is the integer starting value PPP, between 0 and 2047, loaded on the rising clock edge at t=0t=0t=0.
The loading edge does not increment the counter. Each subsequent rising edge increments it by one. When an edge changes the count from 2047 to 0, the controller issues the trigger and stops counting. Ignore propagation delay.
Choose the preload that produces the earliest trigger satisfying a delay of at least 1037 μs after the loading edge. Determine the preload as an exact integer, the actual delay in μs to one decimal place, and the amount by which that delay exceeds 1037 μs, also to one decimal place.
Repairing recovery and rollover logic
A controller needs a synchronous three-bit modulo-6 counter with stored count CCC and a registered pulse output PPP. Both update on each rising clock edge. Use these requirements, in priority order:
If synchronous reset R=1R=1R=1, set the count to zero.
Otherwise, if the pre-edge count is an unused state, 6 or 7, recover to zero even when enable E=0E=0E=0.