Shift Register

You might also like

Download as ppt, pdf, or txt
Download as ppt, pdf, or txt
You are on page 1of 13

Shift Register

Shift Register
Serial-in/Serial out Shift Register
Serial-in/Serial out Shift Register

Shift registers are available in IC form or can be constructed from discrete flip-
flops as is shown here with a five-bit serial-in serial-out register.

Each clock pulse will move an input bit to the next flip-flop. For example, a 1 is
shown as it moves across.

FF0 FF1 FF2 FF3 FF4


Serial 1 1 1 1 1 1 Serial
data D0 Q0 D1 Q1 D2 Q2 D3 Q3 D4 Q4 data
input output

C C C C C

CLK
CLK

Floyd, Digital Fundamentals, 10th ed © 2009 Pearson Education, Upper Saddle River, NJ 07458. All Rights Reserved
Serial In - Serial Out
Shift Registers
 A basic four-bit shift register can be constructed using four D flip-flops, as
shown below.  
Serial In - Serial Out
Shift Registers
  The operation of the circuit is as follows.  
 The register is first cleared, forcing all four outputs to zero.
  The input data is then applied sequentially to the D input of the first
flip-flop on the left (FF0).  
 During each clock pulse, one bit is transmitted from left to right.  
 Assume a data word to be 1001.  
 The least significant bit of the data has to be shifted through the
register from FF0 to FF3.
Serial In - Parallel Out
Shift Registers
 For this kind of register, data bits are entered serially in the
same manner as discussed in the last section.
  The difference is the way in which the data bits are taken
out of the register.
  Once the data are stored, each bit appears on its respective
output line, and all bits are available simultaneously.
  A  construction of a four-bit serial in - parallel out register is
shown below.
Serial In - Parallel Out
Shift Registers
 For this kind of register, data
bits are entered serially in the
same manner as discussed in the
last section.  The difference is
the way in which the data bits
are taken out of the register.
 Once the data are stored, each
bit appears on its respective
output line, and all bits are
available simultaneously.  A
 construction of a four-bit serial
in - parallel out register is shown
below.
Serial In - Parallel Out
Shift Registers
In the animation
below, we can see how
the four-bit binary
number 1001 is shifted
to the Q outputs of the
register.
1 0 0 1
Parallel In –Serial Out
Shift Registers
Shift registers can be used to convert parallel data to
serial form. A logic diagram for this type of register is
shown:

G1 G5 G2 G6 G3 G7 G4

D D D D
C C C C

FF0 FF1 FF2 FF3


Parallel In - Parallel Out
Shift Registers
For parallel in - parallel out shift registers, all data
bits appear on the parallel outputs immediately
following the simultaneous entry of the data bits.
 The following circuit is a four-bit parallel in -
parallel out shift register constructed by D flip-
flops.
Parallel In - Parallel Out
Shift Registers
The D's are the parallel inputs and the Q's are the
parallel outputs.  Once the register is clocked, all
the data at the D inputs appear at the
corresponding Q outputs simultaneously.

You might also like