Professional Documents
Culture Documents
Sequential Circuits: March 28, 2006 1
Sequential Circuits: March 28, 2006 1
x w
Combinational
v0 v1 clock
Storage elements
v0+ v1+
A combinational circuit and storage elements are interconnected to form a sequencial circuit. The information stored at any time defines the state of the circuit at that time. The next state of the storage elements is a function of the inputs and the present state. Synchronous sequential circuit can be defined from the knowledge of its signals at discrete instants.
March 28, 2006 1
Huffman Model
x clock
Sequence detector
C 1/1
A B C D
Output = IQ1Q0
00 0 0 01 0 0 11 0 0 10 0 1
Q1 Q0 I
0 1 00 0 0
J1 = IQ0
01 0 1 11 X X 10 X X
Q1 Q0 I
00 0 1 X X
K1 = Q0
01 X X 11 0 0 10 1 1
Q1 Q0 I
0 1 00 0 1
J0 = I
01 X X 11 X X 10 0 1
Q1 Q0 I
K0 = I
00 X X 01 1 0 11 1 0 10 X X
6
0 1
clock x w
C/0 1
D/1
clock x w
state
ENTITY seq_det IS PORT ( CLK : IN STD_LOGIC; X : IN STD_LOGIC; W : OUT STD_LOGIC ); END seq_det;
BEGIN IF (CLK = 1) THEN CASE STATE IS WHEN "00" => IF (X = '0') THEN STATE := "00"; W <= '0'; ELSE STATE := "01"; W <= '0'; END IF; WHEN "01" => IF (X = '1') THEN STATE := "10"; W <= '0'; ELSE STATE := "00"; W <= '0'; END IF;
-- State A
-- State B
10
Continued
WHEN "10" => IF (X = '1') THEN STATE := "10"; W <= '0'; ELSE STATE := "11"; W <= '1'; END IF; WHEN OTHERS => IF (X = '1') THEN STATE := "01"; W <= '0'; ELSE STATE := "00"; W <= '0'; END IF; END CASE; END IF; END PROCESS; END seq_det_arch; March 28, 2006
-- State C
-- State D
11
Simulation waveform
12