Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
Introduction: Registers 1
CS1104-13
Simple Registers
No external gates.
Example: A 4-bit register. A new 4-bit data is loaded
every clock cycle. CP
I3 A3
Q
D
I2 A2
Q
D
I1 A1
Q
D
I0 A0
Q
CS1104-13 2
Simple Registers
Registers With Parallel Load
Instead of loading the register at every clock pulse,
we may want to control when to load.
Loading a register: transfer new information into the
register. Requires a load control input.
Parallel loading: all bits are loaded simultaneously.
D Q A1
I1
D Q A2
I2
D Q A3
I3
CLK
CLEAR
CS1104-13
Registers With Parallel Load or store 5
Shift Registers
Another function of a register, besides storage, is to
provide for data movements.
Each stage (flip-flop) in a shift register represents
one bit of storage, and the shifting capability of a
register permits the movement of data from stage to
stage within the register, or into or out of the register
upon application of clock pulses.
(a) Serial in/shift right/serial out SISO (b) Serial in/shift left/serial out SISO
Data in Data in
Data in
Data out
Data out
(c) Parallel in/serial out (d) Serial in/parallel out
PISO Data out
(e) Parallel in / parallel out
CS1103
Serial In/Serial Out Shift Registers
Accepts data serially – one bit at a time – and also
produces output serially.
CLK
CS1103
Serial In/Serial Out Shift Registers
Application: Serial transfer of data from one register to another.
SI SO SI SO
Shift register A Shift register B
Clock CP
Shift control
Clock
Shift Wordtime
control
CP
T1 T2 T3 T4
D0 D1 D2 D3
Data in
D Q D Q D Q D Q
C C C C
Data out
CLK
(e) Parallel in / parallel out
Q0 Q1 Q2 Q3
Logic symbol
Data input D Q D Q D Q D Q
C C C C
CLK
Q0 Q1 Q2 Q3
Data in
D0 D1 D2 D3
SHIFT/LOAD SRG 4
Serial data out
CLK C
Logic symbol
D0 D1 D2 D3
SHIFT/LOAD
Serial
D Q D Q D Q D Q data
Q0 Q1 Q2 Q3 out
C C C C
CLK
SHIFT.Q0 + SHIFT'.D1
RIGHT/LEFT
Serial
data in
RIGHT.Q0 + D Q D Q D Q D Q Q3
RIGHT'.Q2 Q1 Q2
C C C C
Q0
CLK
Bidirectional Shift Registers
CS1104-13
Can be implemented using 2X1 multiplexer
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
CS1104-13 18
Bidirectional Shift Registers with parallel load
4-bit bidirectional shift register with parallel load.
Parallel outputs
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
CS1104-13 Bidirectional Shift Registers 19
Shift Register Counters
Shift register counter: a shift register with the serial
output connected back to the serial input.
They are classified as counters because they give a
specified sequence of states.
Ring counter.
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