Вы находитесь на странице: 1из 24

Digital Electronics and Computer

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

Register with parallel load


Master clock generator

Transfer of new information - loading

If all inputs loaded simultaneouslyParallel load

Clock edge
parallel
11/04/15

loads

registers

in
4

Register with parallel load


Two ways to leave register contents
unchanged
Inputs held constant
Avoid clock from reaching register
Input bus unavailable for other traffic
Clock can be avoided by controlling clock
with an enabling gate- not advisable
Inserting
gates
on
synchronization problems

clock

causes

Advisable to control D input rather than


controlling clock
11/04/15

Register with parallel load

11/04/15

Register with parallel load


When load = 0, no change in
outputs
When load = 1, Load new
information
Clock not altered
Load
signal
determines
whether to accept new info or
keep the same info

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-

Clock pulse shifts contents of register to one


position right
Serial input, Serial output
11/04/15

Shift registers
0

Final Data to be moved 1

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)

Serial Mode- information altered or manipulated


one bit at a time

Information transferred by shifting bits


source register in to destination register

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

Universal Shift register


Capabilities of Universal shift register
Clear signal to clear the register to 0
Clock input to synchronize
Shift-right
Shift-left

Bidirectional
Register

shift

Parallel load
Parallel out
Control state to leave information in register
unchanged
11/04/15

17

Universal Shift register

Mode
control

11/04/15

Register
operation

S1

S0

No change

Shift right

Shift left

Parallel load

18

Universal Shift register


0

11/04/15

19

Universal Shift register


0

11/04/15

20

Universal Shift register


1

11/04/15

21

Universal Shift register


1

11/04/15

22

Next Class
Applications of shift Registers
Counters

11/04/15

23

Thank You
11/04/15

24

Вам также может понравиться