SlideShare a Scribd company logo
1 of 14
SHIFT REGISTERS
1
Dr. Amol D. Rahulkar
Aswini Samantaray
Dept. of EEE
NIT Goa
FPGA Lab
DEFINITION
2
• A register is a digital circuit with two basic functions:
Data Storage and Data Movement.
– A shift register provides the data movement
function
– A shift register “shifts” its output once every clock
cycle
• A shift register is a group of flip-flops set up in a linear
fashion with their inputs and outputs connected
together in such a way that the data is shifted from
one device to another when the circuit is active.
SHIFT REGISTER APPLICATIONS
3
• Converting between serial data and parallel
data
• Temporary storage in a processor
– scratch-pad memories
• Some arithmetic operations
– multiply, divide
• Communications
• Time delay devices
• more …
SHIFT REGISTER CHARACTERISTICS
4
• Types
– Serial-in, Serial-out
– Serial-in, Parallel-out
– Parallel-in, Serial-out
– Parallel-in, Parallel-out
– Universal
• Direction
– Left shift
– Right shift
– Rotate (right or left)
– Bidirectional
n-bit shift
register
DATA MOVEMENT
5
• The bits in a shift register can move in any of the
following manners
n-bit shift
register
n-bit shift
register
DATA MOVEMENT
6
• Block diagrams for shift registers with various
input/output options:
n-bit shift
register
n-bit shift
register
n-bit shift
register
SERIAL-IN SERIAL-OUT
7
• Data bits come in one at a
time and leave one at a time
• One Flip-Flop for each bit to
be handled
• Movement can be left or
right, but is usually only in a
single direction in a given
register
• Asynchronous preset and
clear inputs are used to set
initial values
SERIAL-IN SERIAL-OUT
8
• The logic circuit diagram below shows a
generalized serial-in serial-out shift register
– SR Flip-Flops are shown
– Connected to behave as D Flip-Flops
– Input values moved to outputs of each Flip-Flop
with the clock (shift) pulse
N-Bit Shift Register
0
N 1
SHIFT REGISTERS
9
• The simplest shift register is one that uses only Flip-Flops
• The output of a given Flip-Flop is connected to the D input of the
Flip-Flop at its right.
• Each clock pulse shifts the contents of the register one bit
position to the right.
• The Serial input (SI) determines what goes into the leftmost Flip-
Flop during the shift. The Serial output (SO) is taken from the
output of the rightmost Flip-Flop.
Q Q Q
Q
SERIAL-IN SERIAL-OUT
10
• A simple way of looking
at the serial shifting
operation, with a focus on
the data bits, is illustrated
at right
• The 4-bit data word
“1011” is to be shifted into
a 4-bit shift register
• One shift per clock pulse
• Data is shown entering at
left and shifting right
1
2
3
4
5
SERIAL-IN SERIAL-OUT
11
• The diagram at right
shows the 4-bit
sequence “1010”
being loaded into the
4-bit serial-in serial-
out shift register
• Each bit moves one
position to the right
each time the clock’s
leading edge occurs
• Four clock pulses
loads the register
SERIAL-IN SERIAL-OUT
12
• This diagram shows
the 4-bit sequence
“1010” as it is
unloaded from the 4-
bit serial-in serial-out
shift register
• Each bit moves one
position to the right
each time the clock’s
leading edge occurs
• Four clock pulses
unloads the register
n-bit shift
register
UNIVERSAL SHIFT REGISTER
 parallel and serial input/output operations
 Requires additional inputs to specify desired function
 Uses a Mux-like input gating
13
• Universal shift register
• Can do any combination of
L/S
L/S
B
A
B
F
0
1 1
A 0
Thank you

More Related Content

Similar to shift_register.pptx

Registers and counters
Registers and counters Registers and counters
Registers and counters
Deepak John
 

Similar to shift_register.pptx (20)

Digital Electronics Unit_4_new.pptx
Digital Electronics Unit_4_new.pptxDigital Electronics Unit_4_new.pptx
Digital Electronics Unit_4_new.pptx
 
FYBSC IT Digital Electronics Unit V Chapter II Shift Register
FYBSC IT Digital Electronics Unit V Chapter II Shift RegisterFYBSC IT Digital Electronics Unit V Chapter II Shift Register
FYBSC IT Digital Electronics Unit V Chapter II Shift Register
 
Register in Digital Logic
Register in Digital LogicRegister in Digital Logic
Register in Digital Logic
 
CSL 202, Shift Registers using Flipflops
CSL 202, Shift Registers using FlipflopsCSL 202, Shift Registers using Flipflops
CSL 202, Shift Registers using Flipflops
 
Chapter 8_Shift Registers (EEEg4302)1.pdf
Chapter 8_Shift Registers (EEEg4302)1.pdfChapter 8_Shift Registers (EEEg4302)1.pdf
Chapter 8_Shift Registers (EEEg4302)1.pdf
 
Computer register
Computer registerComputer register
Computer register
 
Dns module3 p3
Dns module3 p3Dns module3 p3
Dns module3 p3
 
Dns module3 p3_shift registers
Dns module3 p3_shift registersDns module3 p3_shift registers
Dns module3 p3_shift registers
 
Module 4 registers and counters
Module 4 registers and counters Module 4 registers and counters
Module 4 registers and counters
 
Registers and counters
Registers and counters Registers and counters
Registers and counters
 
Synchronous Sequential Logic Unit 4
Synchronous Sequential Logic Unit 4Synchronous Sequential Logic Unit 4
Synchronous Sequential Logic Unit 4
 
Digital Electronics – Unit III.pdf
Digital Electronics – Unit III.pdfDigital Electronics – Unit III.pdf
Digital Electronics – Unit III.pdf
 
Ch2
Ch2Ch2
Ch2
 
Registers
RegistersRegisters
Registers
 
Registers and counters
Registers and countersRegisters and counters
Registers and counters
 
IS 151 Lecture 3
IS 151 Lecture 3IS 151 Lecture 3
IS 151 Lecture 3
 
Registers
RegistersRegisters
Registers
 
Chapter7
Chapter7Chapter7
Chapter7
 
tCh09.ppt
tCh09.ppttCh09.ppt
tCh09.ppt
 
Shift register
Shift registerShift register
Shift register
 

Recently uploaded

Hospital management system project report.pdf
Hospital management system project report.pdfHospital management system project report.pdf
Hospital management system project report.pdf
Kamal Acharya
 
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
ssuser89054b
 
Call Girls in South Ex (delhi) call me [🔝9953056974🔝] escort service 24X7
Call Girls in South Ex (delhi) call me [🔝9953056974🔝] escort service 24X7Call Girls in South Ex (delhi) call me [🔝9953056974🔝] escort service 24X7
Call Girls in South Ex (delhi) call me [🔝9953056974🔝] escort service 24X7
9953056974 Low Rate Call Girls In Saket, Delhi NCR
 
Digital Communication Essentials: DPCM, DM, and ADM .pptx
Digital Communication Essentials: DPCM, DM, and ADM .pptxDigital Communication Essentials: DPCM, DM, and ADM .pptx
Digital Communication Essentials: DPCM, DM, and ADM .pptx
pritamlangde
 
Integrated Test Rig For HTFE-25 - Neometrix
Integrated Test Rig For HTFE-25 - NeometrixIntegrated Test Rig For HTFE-25 - Neometrix
Integrated Test Rig For HTFE-25 - Neometrix
Neometrix_Engineering_Pvt_Ltd
 
"Lesotho Leaps Forward: A Chronicle of Transformative Developments"
"Lesotho Leaps Forward: A Chronicle of Transformative Developments""Lesotho Leaps Forward: A Chronicle of Transformative Developments"
"Lesotho Leaps Forward: A Chronicle of Transformative Developments"
mphochane1998
 
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak HamilCara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
Cara Menggugurkan Kandungan 087776558899
 

Recently uploaded (20)

💚Trustworthy Call Girls Pune Call Girls Service Just Call 🍑👄6378878445 🍑👄 Top...
💚Trustworthy Call Girls Pune Call Girls Service Just Call 🍑👄6378878445 🍑👄 Top...💚Trustworthy Call Girls Pune Call Girls Service Just Call 🍑👄6378878445 🍑👄 Top...
💚Trustworthy Call Girls Pune Call Girls Service Just Call 🍑👄6378878445 🍑👄 Top...
 
Hospital management system project report.pdf
Hospital management system project report.pdfHospital management system project report.pdf
Hospital management system project report.pdf
 
Jaipur ❤CALL GIRL 0000000000❤CALL GIRLS IN Jaipur ESCORT SERVICE❤CALL GIRL IN...
Jaipur ❤CALL GIRL 0000000000❤CALL GIRLS IN Jaipur ESCORT SERVICE❤CALL GIRL IN...Jaipur ❤CALL GIRL 0000000000❤CALL GIRLS IN Jaipur ESCORT SERVICE❤CALL GIRL IN...
Jaipur ❤CALL GIRL 0000000000❤CALL GIRLS IN Jaipur ESCORT SERVICE❤CALL GIRL IN...
 
Hostel management system project report..pdf
Hostel management system project report..pdfHostel management system project report..pdf
Hostel management system project report..pdf
 
Theory of Time 2024 (Universal Theory for Everything)
Theory of Time 2024 (Universal Theory for Everything)Theory of Time 2024 (Universal Theory for Everything)
Theory of Time 2024 (Universal Theory for Everything)
 
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
 
Employee leave management system project.
Employee leave management system project.Employee leave management system project.
Employee leave management system project.
 
Learn the concepts of Thermodynamics on Magic Marks
Learn the concepts of Thermodynamics on Magic MarksLearn the concepts of Thermodynamics on Magic Marks
Learn the concepts of Thermodynamics on Magic Marks
 
Online food ordering system project report.pdf
Online food ordering system project report.pdfOnline food ordering system project report.pdf
Online food ordering system project report.pdf
 
HOA1&2 - Module 3 - PREHISTORCI ARCHITECTURE OF KERALA.pptx
HOA1&2 - Module 3 - PREHISTORCI ARCHITECTURE OF KERALA.pptxHOA1&2 - Module 3 - PREHISTORCI ARCHITECTURE OF KERALA.pptx
HOA1&2 - Module 3 - PREHISTORCI ARCHITECTURE OF KERALA.pptx
 
Call Girls in South Ex (delhi) call me [🔝9953056974🔝] escort service 24X7
Call Girls in South Ex (delhi) call me [🔝9953056974🔝] escort service 24X7Call Girls in South Ex (delhi) call me [🔝9953056974🔝] escort service 24X7
Call Girls in South Ex (delhi) call me [🔝9953056974🔝] escort service 24X7
 
Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...
Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...
Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...
 
Digital Communication Essentials: DPCM, DM, and ADM .pptx
Digital Communication Essentials: DPCM, DM, and ADM .pptxDigital Communication Essentials: DPCM, DM, and ADM .pptx
Digital Communication Essentials: DPCM, DM, and ADM .pptx
 
NO1 Top No1 Amil Baba In Azad Kashmir, Kashmir Black Magic Specialist Expert ...
NO1 Top No1 Amil Baba In Azad Kashmir, Kashmir Black Magic Specialist Expert ...NO1 Top No1 Amil Baba In Azad Kashmir, Kashmir Black Magic Specialist Expert ...
NO1 Top No1 Amil Baba In Azad Kashmir, Kashmir Black Magic Specialist Expert ...
 
A CASE STUDY ON CERAMIC INDUSTRY OF BANGLADESH.pptx
A CASE STUDY ON CERAMIC INDUSTRY OF BANGLADESH.pptxA CASE STUDY ON CERAMIC INDUSTRY OF BANGLADESH.pptx
A CASE STUDY ON CERAMIC INDUSTRY OF BANGLADESH.pptx
 
Bhubaneswar🌹Call Girls Bhubaneswar ❤Komal 9777949614 💟 Full Trusted CALL GIRL...
Bhubaneswar🌹Call Girls Bhubaneswar ❤Komal 9777949614 💟 Full Trusted CALL GIRL...Bhubaneswar🌹Call Girls Bhubaneswar ❤Komal 9777949614 💟 Full Trusted CALL GIRL...
Bhubaneswar🌹Call Girls Bhubaneswar ❤Komal 9777949614 💟 Full Trusted CALL GIRL...
 
Integrated Test Rig For HTFE-25 - Neometrix
Integrated Test Rig For HTFE-25 - NeometrixIntegrated Test Rig For HTFE-25 - Neometrix
Integrated Test Rig For HTFE-25 - Neometrix
 
"Lesotho Leaps Forward: A Chronicle of Transformative Developments"
"Lesotho Leaps Forward: A Chronicle of Transformative Developments""Lesotho Leaps Forward: A Chronicle of Transformative Developments"
"Lesotho Leaps Forward: A Chronicle of Transformative Developments"
 
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak HamilCara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
 
School management system project Report.pdf
School management system project Report.pdfSchool management system project Report.pdf
School management system project Report.pdf
 

shift_register.pptx

  • 1. SHIFT REGISTERS 1 Dr. Amol D. Rahulkar Aswini Samantaray Dept. of EEE NIT Goa FPGA Lab
  • 2. DEFINITION 2 • A register is a digital circuit with two basic functions: Data Storage and Data Movement. – A shift register provides the data movement function – A shift register “shifts” its output once every clock cycle • A shift register is a group of flip-flops set up in a linear fashion with their inputs and outputs connected together in such a way that the data is shifted from one device to another when the circuit is active.
  • 3. SHIFT REGISTER APPLICATIONS 3 • Converting between serial data and parallel data • Temporary storage in a processor – scratch-pad memories • Some arithmetic operations – multiply, divide • Communications • Time delay devices • more …
  • 4. SHIFT REGISTER CHARACTERISTICS 4 • Types – Serial-in, Serial-out – Serial-in, Parallel-out – Parallel-in, Serial-out – Parallel-in, Parallel-out – Universal • Direction – Left shift – Right shift – Rotate (right or left) – Bidirectional n-bit shift register
  • 5. DATA MOVEMENT 5 • The bits in a shift register can move in any of the following manners
  • 6. n-bit shift register n-bit shift register DATA MOVEMENT 6 • Block diagrams for shift registers with various input/output options: n-bit shift register n-bit shift register
  • 7. n-bit shift register SERIAL-IN SERIAL-OUT 7 • Data bits come in one at a time and leave one at a time • One Flip-Flop for each bit to be handled • Movement can be left or right, but is usually only in a single direction in a given register • Asynchronous preset and clear inputs are used to set initial values
  • 8. SERIAL-IN SERIAL-OUT 8 • The logic circuit diagram below shows a generalized serial-in serial-out shift register – SR Flip-Flops are shown – Connected to behave as D Flip-Flops – Input values moved to outputs of each Flip-Flop with the clock (shift) pulse N-Bit Shift Register 0 N 1
  • 9. SHIFT REGISTERS 9 • The simplest shift register is one that uses only Flip-Flops • The output of a given Flip-Flop is connected to the D input of the Flip-Flop at its right. • Each clock pulse shifts the contents of the register one bit position to the right. • The Serial input (SI) determines what goes into the leftmost Flip- Flop during the shift. The Serial output (SO) is taken from the output of the rightmost Flip-Flop. Q Q Q Q
  • 10. SERIAL-IN SERIAL-OUT 10 • A simple way of looking at the serial shifting operation, with a focus on the data bits, is illustrated at right • The 4-bit data word “1011” is to be shifted into a 4-bit shift register • One shift per clock pulse • Data is shown entering at left and shifting right 1 2 3 4 5
  • 11. SERIAL-IN SERIAL-OUT 11 • The diagram at right shows the 4-bit sequence “1010” being loaded into the 4-bit serial-in serial- out shift register • Each bit moves one position to the right each time the clock’s leading edge occurs • Four clock pulses loads the register
  • 12. SERIAL-IN SERIAL-OUT 12 • This diagram shows the 4-bit sequence “1010” as it is unloaded from the 4- bit serial-in serial-out shift register • Each bit moves one position to the right each time the clock’s leading edge occurs • Four clock pulses unloads the register
  • 13. n-bit shift register UNIVERSAL SHIFT REGISTER  parallel and serial input/output operations  Requires additional inputs to specify desired function  Uses a Mux-like input gating 13 • Universal shift register • Can do any combination of L/S L/S B A B F 0 1 1 A 0