Professional Documents
Culture Documents
S
0 0 1 1
R
0 1 0 1
Q+
Q 0 1 0-?
Q+
Q 1 0 0-?
Function
Storage State Reset Set Indeterminate State
Q R
cross-coupled Nand gates active low inputs (only one can be active)
S Q
S
0 0 1 1
R
0 1 0 1
Q+
1-? 1 0 Q
Q+
1-? 0 1 Q
Function
Indeterminate State Set Reset Storage State
Q R
E S R
0 1 1 1 1 x 0 0 1 1 x 0 1 0 1
Q+
Q Q 0 1 0-?
Q+
Q Q 1 0 0-?
Function
Storage State Storage State Reset Set Indeterminate State
Q+
1-? 1 0 Q Q
Q+
1-? 0 1 Q Q
Function
Indeterminate State Set Reset Storage State Storage State
0 0 0 0 1
0 0 1 1 x
0 1 0 1 x
Transparent D Latch
Asynchronous Level sensitive cross-coupled Nor gates active high enable (E)
D Q E Q
E D
0 1 1 x 0 1
Q+
Q 0 1
Function
Storage State Transparent Mode Transparent Mode
E D
E Q
Q+
Q 0 1
Function
Storage State Transparent Mode Transparent Mode
1 0 0
x 0 1
D Flip-Flop
Synchronous (also know as Master-Slave FF) Edge Triggered (data moves on clock transition)
one latch transparent - the other in storage
active low latch followed by active high latch positive edge triggered (rising edge of CK)
D Q CK Q
active high latch followed by active low latch negative edge triggered (falling edge of CK)
D Q CK Q
Timing Considerations
Set-up time (tsu)= minimum time input data must be valid before active edge of clock Hold time (th)= minimum time input data must be held valid after active edge of clock Clock-to-output delay (tco)= maximum time before output data is valid with respect to active edge of clock D tsu th CK tco Q Set-up or Hold Time violation => metastability
(Q & Q go to intermediate voltage values which are eventually resolved to an unknown state)
Set-up & Hold Time violations in a vector set referred to as clock-data races
Timing Considerations
To verify that a sequential logic circuit will work at the specified clock frequency, fclk, we must consider the clock period, Tp, the propagation delay, Pdel, of the worst case path through the combinational logic, as well as tsu and tco of the flip-flops such that the following relationship holds: For paths from flip-flop outputs to flip-flop inputs:
1 f clk = T p P del + t co + t su
Timing analysis and timing simulation CAD tools are typically used for this verification.
DO NOT construct a FF from two level sensitive latches of the same type with an inverter on the clock input to one latch
D CK D active Q low latch Q E D active Q low latch Q E Q Q
BAD Design
DO NOT gate clocks!!! Create clock enabled FFs via a MUX to feed back current data
D CEN CK Q Q 0 D CEN CK 1 Q Q
BAD Design
GOOD Design