Beruflich Dokumente
Kultur Dokumente
Chapter 6:
Computer Engineering
Registers
I0
Group of D Flip-Flops
A0
A1
A2
A3
R
I1
D
R
I2
D
R
I3
CLK
Reset
D
R
2 / 28
Computer Engineering
Registers
CLK
I0
A0
A1
A2
A3
I3
I2
I1
I1
I0
I2
A3
A2
A1
I3
A0
Note:
Note New data has to go in
with every clock
CLK
Reset
D
R
3 / 28
Computer Engineering
R
E
G
I
S
T
E
R
LD
Q7
Q6
Q5
Q4
Q3
Q2
Q1
Q0
LD
0
1
Q(t+1)
Q(t)
D
4 / 28
Computer Engineering
R
E
G
I
S
T
E
R
LD
Q7
Q6
Q5
Q4
Q3
Q2
Q1
Q0
Delays
the
Clock
Load
CLK
I0
A0
I1
A1
I2
A2
I3
A3
5 / 28
Computer Engineering
I0
I0 MUX
Y
I1
S
A0
I1
I0 MUX
Y
I1
S
A1
I2
I0 MUX
Y
I1
S
A2
I3
I0 MUX
Y
I1
S
A3
Load
CLK
6 / 28
Computer Engineering
Shift Registers
Serial SI
Input
SO
Serial
Output
CLK
7 / 28
Computer Engineering
Shift Registers
SI
Q3
Q2
Q1
Q0
SO
CLK
CLK
SI
Q3
Q2
Q1
Q0
8 / 28
Computer Engineering
Serial Transfer
SI
Clock
Shift
Control
Shift Register A
CLK
SO
SI
Shift Register B
CLK
Clock
Shift
Control
CLK
9 / 28
Computer Engineering
Serial Addition
Shift
Control
CLK
SI
Shift Register A
x
S
y FA
C
z
Shift Register B
CLR
Clear
10 / 28
Computer Engineering
Parallel-in Parallel-out
Serial-in Serial-out
Serial-in Parallel-out
Parallel-in Serial-out
11 / 28
Computer Engineering
CLR
CLK
S1
Q3
Q2
Q1
Q0
S1
Y
S0 MUX
I3 I2 I1 I0
S0
SI
for
SR
D3
D2
D1
D0
SI
for
SL
12 / 28
Computer Engineering
S1
S0
SRin
Q3 Q2 Q1 Q0
CLR
USR
D3 D2 D1 D0
Mode Control
SLin
S1
S0
Register
Operation
0
0
1
1
0
1
0
1
No change
Shift right
Shift left
Parallel load
13 / 28
Computer Engineering
Ripple Counters
Ripple Asynchronous
Q3
Q2
Q
T 1
Q1
Q
T 1
Q0
Q
T 1
T 1
CLK
CLR
CLR
CLR
CLR
CLR
CLK
Q0
Q1
Q2
Q3
14 / 28
Computer Engineering
Ripple Counters
Q3
Q2
Q1
Q0
D
CLK
CLK
Q0
Q1
Q2
Q3
15 / 28
Computer Engineering
0001
0010
0011
0100
1001
1000
0111
0110
0101
Q3
Q2
Q1
1
K 1
K 1
Q0
1
K 1
K 1
CLK
16 / 28
Computer Engineering
Decades Counter
Q3 Q2 Q1 Q0
Q3 Q2 Q1 Q0
Q3 Q2 Q1 Q0
BCD
Counter
BCD
Counter
BCD
Counter
100s Digit
10s Digit
1s Digit
Count
(CLK)
17 / 28
Computer Engineering
Q2
Q1
Q0
Enable
To
Next
Stage
K
CLK
18 / 28
Computer Engineering
Q3
Q2
Q
Q
Q1
Q
Q
Q0
Q
Q
Q
CLK
Up
Down
19 / 28
Computer Engineering
BCD Counter
0
0000
0
1
0001
0
1
0010
0
1
0011
0
1
0100
1
1
1001
0
1000
0
0111
0110
0101
0
Q3 Q2 Q1 Q0
E
20 / 28
Computer Engineering
BCD Counter
0
0000 / 0
0
1
0001 / 0
0010 / 0
0
1
0011 / 0
0
1
0100 / 0
1
1
1001 / 1
0
1000 / 0
0
0111 / 0
0110 / 0
0101 / 0
0
Q3 Q2 Q1 Q0
y
21 / 28
Computer Engineering
CLR
LD
Count
Q(t+1)
Q(t)
Q(t)+1
I3
Q3
I2
Q2
I1
Q1
I0
Q0
LD
Count
CLR
Computer Engineering
LD
Count
I3
Q3
A3
I2
Q2
A2
I1
Q1
A1
I0
Q0
A0
Count
CLR
1
CLK
23 / 28
Computer Engineering
Ring Counter
0001
T3 T2 T1 T0
0010
0100
1000
CLK
T0
2-to-4 Decoder
T1
T2
2-bit counter
T3
24 / 28
Computer Engineering
Johnson Counter
0000
0001
0011
0111
1000
1100
1110
1111
Q3
Q1
Q2
Q
Q
Q
Q
Q0
Q
Q
Q
CLK
25 / 28
Computer Engineering
Homework
Mano
Chapter 6
6-2
6-3
6-4
6-13
6-14
6-16
6-18
26 / 28
Computer Engineering
Homework
6-2
6-3
27 / 28
Computer Engineering
Homework
6-4
Computer Engineering
Homework
6-16 The BCD ripple counter has four flip-flops and 16 states,
of which only 10 are used. Analyze the circuit and
determine the next state for each of the other six unused
states. What will happen if a noise signal sends the circuit
to one of the unused states?
6-18 What operation is performed in the up-down counter
when both the up and down inputs are enabled? Modify
the circuit so that when both inputs are equal to 1, the
counter does not change state, but remains in the same
count.
29 / 28