Documente Academic
Documente Profesional
Documente Cultură
Combinational Logic
Basic element are Gates Circuit Behavior: Output depends on the present input Output depends only on present input. Examples: Comparator, Arithmetic Circuits
Sequential Logic
Basic elements are Flip Flops and Latches Further Classified into Synchronous and Asynchronous based on the clock. Circuit Behavior: Output depends on the past history. Examples: Counters, Shift Registers.
In
In
Out
State
Sequential
Sequential Circuits
Sequential Circuits: Circuits require memory to store intermediate data, Sequential circuits use a periodic signal to determine when to store values. clock signal can determine storage times.Clock signals are periodic Single bit storage element is a flip flop A basic type of flip flop is a latch Latches are made from logic gates
NAND, NOR, AND, OR, Inverter
5
Negative Pulse
Sequential Circuits
Design steps
Sequential Circuits
Inputs Combinational circuit Next state Outputs Flip Flops
Present state
synchronizes when current state changes happen keeps system well-behaved makes it easier to design and build large systems
S-R Latch
SR latch based on NOR gates. The S input sets the Q output to 1 while R reset it to 0. When R=S=0 then the output keeps the previous value. When R=S=1 then Q=Q=0, and the latch may go to an unpredictable next state.
S-R Latch
SR latch based on NAND gates. The S input sets the Q output to 1 while R reset it to 0. When R=S=1 then the output keeps the previous value. When R=S=1 then Q=Q=1, and the latch may go to an unpredictable next state.
S-R Latch
The S-R (Set-Reset) latch is the most basic type. It can be constructed from NOR gates or NAND gates. With NOR gates, the latch responds to active-HIGH inputs; with NAND gates, it responds to active-LOW inputs.
SR Latch Characteristics
0d 0 Excitation inputs S 0 0 0 0 1 1 1 1 R 0 0 1 1 0 0 1 1 Present state Q 0 1 0 1 0 1 0 1 (a) R (c) Next state Q* 0 1 0 0 1 1 No change SR Reset Set Not allowed Q 1 1 0 1 Q 0 00 0 01 0 11 01 (b) S 10 1 SR 10 1 d0
Q* = S + RQ
D Latch
This latch eliminates the problem that occurs in the SR latch when R=S=0. C is an enable input:
When C=1 then the output follows the input D and the latch is said to be open. When C=0 then the output retains its last value and the latch is said to be closed.
Flip-Flops
Flip-flops are synchronous bistable devices. The term synchronous means the output changes state only when the clock input is triggered, changes in the output occur in synchronization with the clock. An edge-triggered flip-flop changes states either at the positive edge (rising edge) or at the negative edge (falling edge) of the clock pulse on the control input. The three basic types are introduced here: S-R, J-K and D.
Flip-Flops
The S-R, J-K and D inputs are called synchronous inputs because data on these inputs are transferred to the flipflop's output only on the triggering edge of the clock pulse. On the other hand, the direct set (SET) and clear (CLR) inputs are called asynchronous inputs, as they are inputs that affect the state of the flip-flop independent of the clock. For the synchronous operations to work properly, these asynchronous inputs must both be kept LOW.
D C
D flip-Flop
S
Q
D 0 1 X
1 1 0
Q 0 1 Q0
Q 1 0 Q0
18
D flip-Flop
CLK
D
CLK
D Q
19
D flip-Flop
CLK
D
CLK
D Q
The D latch stores data indefinitely, regardless of input D values, if CLK = 0 Forms basic storage element in computers
20
Characteristic Equations
algebraic descriptions of the next-state table of a flip-flop constructing from the Karnaugh map for Qt+1 in terms of the present state and input
21
D Latch Characteristics
Enable input C 0 0 1 1 1 1 Excitation Present input state D 0 0 1 1 Q 0 1 0 1 0 1 (a) Next state Q* 0 1 0 0 1 1 Hold Store 0 Store 1 0d, 10 0 10 (b) CD 11 1 0d, 11
Q* = DC + CQ
SR latch is based on NOR gates SR latch based on NAND gates D latch can be based on either. D latch sometimes called delay latch
23
D Flip-Flop
Stores a value on the positive edge of Clk Input changes at other times have no effect on output Positive edge triggered
D C Q Q
D 0 1 X
Q Q 0 1 1 0 0 Q0 Q0
24
25
Clocked D Flip-Flop
Stores a value on the positive edge of C Input changes at other times have no effect on output
26
cloc k
Q
toggle J=K=1 hold J=K=0 reset J= 0 set J= 1
Characteristic Table
30
31
Master-slave JK flip-flop
32
T Flip-Flop
Also known as the toggle flip-flop. When input T = 0 the output Q retain its previous value. When input T = 1 the output Q inverts on every tick of the clock. When inputs J and K of a J-K flip-flop are connected together, the J-K flip-flop will behave like a T flip-flop.
Created from D flop T=0 -> keep current K resets T=1 -> invert current
CL K
Q Q
Q Q
0 1
TOGGLE
35
Asynchronous Inputs
J, K are synchronous inputs Effects on the output are synchronized with the CLK input. Asynchronous inputs operate independently of the synchronous inputs and clock Set the FF to 1/0 states at any time.
36
Flip-flop Characteristics
Summary