Beruflich Dokumente
Kultur Dokumente
Digital Logic
http://www.ece.iastate.edu/~alexs/classes/
Serial Adder
Thanks,
[your name]
The general form of a synchronous sequential circuit
W Combinational Combinational
Flip-flops circuit Z
circuit Q
Clock
W Combinational Combinational
Flip-flops circuit Z
circuit Q
Clock
Mealy Type
W Combinational Combinational
Flip-flops circuit Z
circuit Q
Clock
Moore Mealy
Moore Mealy
Mealy
Moore
Mealy
Moore
This is delayed by
1 clock cycle
A
a
Shift register
s
Adder
FSM Shift register
Shift register
b
Sum = A + B
B
Clock
00 0 01 0
01 1 G H 10 0
10 1 11 1
00 1
G: carry-in = 0
H: carry-in = 1
Clock Q
Reset
11 01
00 G0 s = 0 H0 s = 0
10
00
01 00 11 01
10 11 10
01 G1 s = 1 H1 s = 1 11
10 00
Figure 6.44. State diagram for the Moore-type serial adder FSM.
Present Nextstate Output
state ab =00 01 10 11 s
G0 G0 G1 G1 H0 0
G1 G0 G1 G1 H0 1
H0 G1 H0 H0 H1 0
H1 G1 H0 H0 H1 1
Figure 6.45. State table for the Moore-type serial adder FSM.
Nextstate
Present
state ab =00 01 10 11 Output
y2 y1 s
Y2 Y1
00 00 01 01 10 0
01 00 01 01 10 1
10 01 10 10 11 0
11 01 10 10 11 1
Y2 y2
D Q
Clock Q
Reset