Sequential Logic Remembers State
A sequential circuit's outputs or next state can depend on retained bits as well as current inputs.
- Source
- Anbloq
- Language
- English
- Created
- Updated
- Chapters
- 4
- Reading time
- 1 min
In this article4 chapters
Use a one-bit example
A register may hold one from a previous clock edge even while its data input is zero. The next permitted update can change the held value to zero. The difference resembles the program distinction between input and state.
State which transition is allowed
A circuit can keep the previous value when an enable signal is absent. A table using current state, input, and enable can describe all next states. See state transition tables for that modeling technique.[1]
Show identical current inputs with different stored states
A bit that toggles at each clock edge when enabled retains its value while disabled. With enable low, a circuit starting at zero returns zero and one starting at one returns one. The current input alone cannot determine the output. See a binary counter.
Before edge Q=0, enable=1 → Q becomes 1
Next edge Q=1, enable=0 → Q remains 1
Next edge Q=1, enable=1 → Q becomes 0
Provide a reset or initial condition for test traces
Without initial state, several traces can satisfy the same transition rule. Test reset followed by a sequence of holds and toggles. Write the state on each side of the clock edge to avoid using the next state as its own input.