Академический Документы
Профессиональный Документы
Культура Документы
Organization
Digital
Design
Lecture 23: Registers and
Counters
11/04/15
Registers
Register - A group of flip-flops, each one of which is
capable of storing one bit information
N-bit register, N- Flip-flops, capable of storing N-bits
In addition may contain additional combinational
logic gates
Flip-flops : to hold binary information
Logic gates : to determine how the information is
transferred into flip-flops
11/04/15
Registers
4-bit storage register
Common clock input trigger
@posedge data at inputs transferred
in to register
Clear connected to active low Reset
(R) of flip-flops
Clear=0 flip-flops reset state
11/04/15
Clock edge
parallel
11/04/15
loads
registers
in
4
clock
causes
11/04/15
11/04/15
Loa
d
Shift registers
A register capable of shifting the binary information
held in each cell to its neighboring cell in a selected
direction
Consists of a chain of flipflops
Output of one flip-flop input of next
flip-flop
Common clock
11/04/15
Shift registers
Consists
flops
of
only
Flip-
Shift registers
0
11/04/15
10
Shift registers
1
11/04/15
11
Shift registers
1
11/04/15
12
Shift registers
0
0
Final Data to be moved 1011
11/04/15
13
Serial Transfer
Applications of shift register serial data transfer
(e.g. USB, UART)
11/04/15
from
14
Serial Transfer
11/04/15
15
Serial Transfer
Operation assuming 4-bit shift register
11/04/15
Timing
pulse
Shift
Register A
Shift
Register B
Initial
valueT
After
1
1 0 1 1
1 1 0 1
0 0 1 0
1 0 0 1
After T2
After T3
1 1 1 0
0 1 1 1
1 1 0 0
0 1 1 0
After T4
1 0 1 1
1 0 1 1
16
Bidirectional
Register
shift
Parallel load
Parallel out
Control state to leave information in register
unchanged
11/04/15
17
Mode
control
11/04/15
Register
operation
S1
S0
No change
Shift right
Shift left
Parallel load
18
11/04/15
19
11/04/15
20
11/04/15
21
11/04/15
22
Next Class
Applications of shift Registers
Counters
11/04/15
23
Thank You
11/04/15
24