Professional Documents
Culture Documents
CSE 1203-CSE1204
Digital Logic Design
Q Q Q Q
D D D D
CP
I3 I2 I1 I0
D Q A1
I1
D Q A2
I2
D Q A3
I3
CLK
CLEAR
Register Combin-
Clock ational
circuit
Inputs Outputs
(a) Serial in/shift right/serial out (b) Serial in/shift left/serial out
Data in Data in
Data in
Data out
Data out
(c) Parallel in/serial out (d) Serial in/parallel out
Data out
(e) Parallel in /
parallel out
RIGHT/LEFT
Serial
data in
RIGHT.Q0 + D Q D Q D Q D Q Q3
Q1 Q2
RIGHT'.Q2
C C C C
Q0
CLK
A4 A3 A2 A1
Q Q Q Q
Clear
D D D D
CLK
Serial
input for Serial
shift-right input for
I4 I3 I2 I1 shift-left
Parallel inputs
March 29, 2024 CSE 1203: Digital Logic Design 17
Bidirectional Shift Registers
4-bit bidirectional shift register with parallel load.
Mode Control
s1 s0 Register Operation
0 0 No change
0 1 Shift right
1 0 Shift left
1 1 Parallel load
CLR
CLK
Clock Q0 Q1 Q2 Q3 Q4 Q5 100000
0 1 0 0 0 0 0
000001 010000
1 0 1 0 0 0 0
2 0 0 1 0 0 0
3 0 0 0 1 0 0 000010 001000
4 0 0 0 0 1 0
5 0 0 0 0 0 1 000100
Clock Q0 Q1 Q2 Q3 0000
0 0 0 0 0
1 1 0 0 0 0001 1000
2 1 1 0 0
3 1 1 1 0 0011 1100
4 1 1 1 1
5 0 1 1 1 0111 1110
6 0 0 1 1
7 0 0 0 1 1111
k
k address lines Memory unit
2k words
n bits per word
Read/Write
n data
output lines
Memory address
binary decimal Memory content
0000000000 0 1011010111011101
0000000001 1 1010000110000110
0000000010 2 0010011101110001
: : :
: : :
1111111101 1021 1110010101010010
1111111110 1022 0011111010101110
1111111111 1023 1011000110010101
Select
Select
R
Read/Write
Read/Write
RAM 1K x 8
S0 0 1024 – 2047
1 DATA (8) (8)
2 ADRS (10)
S1 3 CS
1K x 8
RW
2048 – 3071
Read/write DATA (8) (8)
ADRS (10)
CS
1K x 8
RW
3072 – 4095
DATA (8)
4K x 8 RAM. ADRS (10)
CS
(8)
1K x 8 Output
RW
data
March 29, 2024 CSE 1203: Digital Logic Design 32
End of segment