SlideShare ist ein Scribd-Unternehmen logo
1 von 36
Downloaden Sie, um offline zu lesen
ECE 301 – Digital Electronics
Flip-Flops and Registers
(Lecture #19)
The slides included herein were taken from the materials accompanying
Fundamentals of Logic Design, 6th
Edition, by Roth and Kinney,
and were used with permission from Cengage Learning.
Spring 2011 ECE 301 - Digital Electronics 2
Flip-Flops
(continued)
Spring 2011 ECE 301 - Digital Electronics 3
SR Flip-Flop
● The SR Flip-Flop has three inputs
– Clock (Ck) --- denoted by the small arrowhead
– Set (S) and Reset (R)
● Similar to an SR Latch
– S = 1 sets the flip-flop (Q+
= 1)
– R = 1 resets the flip-flop (Q+
= 0)
● Like the D Flip-Flop, the Q output of an SR Flip-Flop
only changes in response to an active clock edge.
– Positive edge-triggered
– Negative edge-triggered
Spring 2011 ECE 301 - Digital Electronics 4
SR Flip-Flop
S R Q Q+
0 0 0 0
0 0 1 1
0 1 0 0
0 1 1 0
1 0 0 1
1 0 1 1
1 1 0 not
1 1 1 allowed
}Q+
= Q
Q+
= 0
Q+
= 1
set
reset
store
}
}
positive edge-triggered
SR Flip-Flop
State change occurs
after active Clock edge
Spring 2011 ECE 301 - Digital Electronics 5
SR Flip-Flop (master-slave)
Enabled on opposite levels of the clock
SR Latches
Spring 2011 ECE 301 - Digital Electronics 6
SR Flip-Flop: Timing Diagram
Spring 2011 ECE 301 - Digital Electronics 7
JK Flip-Flop
● The JK Flip-Flop has three inputs
– Clock (Ck) --- denoted by the small arrowhead
– J and K
● Similar to the SR Flip-Flop
– J corresponds to S: J = 1 → Q+
= 1
– K corresponds to R: K = 1 → Q+
= 0
● Different from the SR Flip-Flop in that the input
combination J = 1, K = 1 is allowed.
– J = K = 1 causes the Q output to toggle after an
active clock edge.
Spring 2011 ECE 301 - Digital Electronics 8
JK Flip-Flop
}Q+
= Q
}Q+
= 0
}Q+
= 1
}Q+
= Q'
set
reset
store
toggle
Q+
= J.Q' + K'.Q
Characteristic Equation:
Spring 2011 ECE 301 - Digital Electronics 9
JK Flip-Flop (master-slave)
SR Latches
Enabled on opposite levels of the clock
Spring 2011 ECE 301 - Digital Electronics 10
JK Flip-Flop: Timing Diagram
Spring 2011 ECE 301 - Digital Electronics 11
T Flip-Flop
● The Toggle (T) Flip-Flop has two inputs
– Clock (Ck) --- denoted by the small arrowhead
– Toggle (T)
● The T input controls the state change
– when T = 0, the state does not change (Q+
= Q)
– when T = 1, the state changes following an active
clock edge (Q+
= Q')
● T Flip-Flops are often used in the design of counters.
Spring 2011 ECE 301 - Digital Electronics 12
T Flip-Flop
Q+
= T.Q' + T'.Q = T xor Q
Characteristic Equation:
Spring 2011 ECE 301 - Digital Electronics 13
T Flip-Flop: Timing Diagram
Spring 2011 ECE 301 - Digital Electronics 14
Building a T Flip-Flop
Spring 2011 ECE 301 - Digital Electronics 15
Asynchronous Control Signals
Spring 2011 ECE 301 - Digital Electronics 16
Asynchronous Control Signals:
Timing Diagram
Spring 2011 ECE 301 - Digital Electronics 17
D FF with Clock Enable
Spring 2011 ECE 301 - Digital Electronics 18
Registers
Spring 2011 ECE 301 - Digital Electronics 19
Several D flip-flops may be grouped together with a common
clock to form a register. Because each flip-flop can store one
bit of information, a register with n D flip-flops can store n bits
of information.
A load signal can be ANDed with the clock to enable and
disable loading the registers.
A better approach is to use registers with clock enables if
they are available.
Registers
Spring 2011 ECE 301 - Digital Electronics 20
Register: 4 bits
Spring 2011 ECE 301 - Digital Electronics 21
Data Transfer between Registers
● Data transfer between registers is a common
operation in computer (i.e. digital) systems.
● Multiple registers can be interconnected using
tri-state buffers.
● Data can be transferred between two registers
by enabling the proper tri-state buffer.
Spring 2011 ECE 301 - Digital Electronics 22
Data Transfer between Registers
Spring 2011 ECE 301 - Digital Electronics 23
Register with Tri-state Output
Spring 2011 ECE 301 - Digital Electronics 24
Data Transfer using Tri-state Bus
Spring 2011 ECE 301 - Digital Electronics 25
A shift register is a register in which binary data can be stored
and shifted either left or right. The data is shifted according to
the applied shift signal; often there is a left shift signal and a
right shift signal.
A shift register must be constructed using flip-flops (i.e. edge-
triggered devices); it cannot be constructed using latches or
gated-latches (i.e. level-sensitive devices).
Shift Register
Spring 2011 ECE 301 - Digital Electronics 26
Shift Register: 4 bits
Spring 2011 ECE 301 - Digital Electronics 27
Shift Register (4 bits): Timing Diagram
Spring 2011 ECE 301 - Digital Electronics 28
8-bit SI SO Shift Register
Spring 2011 ECE 301 - Digital Electronics 29
4-bit PI PO Shift Register
Spring 2011 ECE 301 - Digital Electronics 30
4-bit PI PO Shift Register: Operation
Spring 2011 ECE 301 - Digital Electronics 31
Parallel Adder with Accumulator
Spring 2011 ECE 301 - Digital Electronics 32
In computer circuits, it is frequently desirable to store one
number in a register (called an accumulator) and add a
second number to it, leaving the result stored in the register.
Parallel Adder with Accumulator
Spring 2011 ECE 301 - Digital Electronics 33
n-bit Parallel Adder with Accumulator
Spring 2011 ECE 301 - Digital Electronics 34
Before addition in the previous circuit can take place, the
accumulator must be loaded with X. This can be
accomplished in several ways. The easiest way is to first
clear the accumulator using the asynchronous clear inputs
on the flip-flops, and then put the X data on the Y inputs to
the adder and add the accumulator in the normal way.
Alternatively, we could add multiplexers at the accumulator
inputs so that we could select either the Y input data or the
adder output to load into the accumulator.
Loading the Accumulator
Spring 2011 ECE 301 - Digital Electronics 35
Adder Cell with Multiplexer
Spring 2011 ECE 301 - Digital Electronics 36
Questions?

Weitere Àhnliche Inhalte

Was ist angesagt?

Was ist angesagt? (20)

Counters
CountersCounters
Counters
 
Counters
Counters Counters
Counters
 
Chapter 6 register
Chapter 6 registerChapter 6 register
Chapter 6 register
 
Flip flops
Flip flopsFlip flops
Flip flops
 
All flipflop
All flipflopAll flipflop
All flipflop
 
Presentation On Flip-Flop
Presentation On Flip-FlopPresentation On Flip-Flop
Presentation On Flip-Flop
 
state diagrams of flip flops
 state diagrams of flip flops state diagrams of flip flops
state diagrams of flip flops
 
CSL 202, Shift Registers using Flipflops
CSL 202, Shift Registers using FlipflopsCSL 202, Shift Registers using Flipflops
CSL 202, Shift Registers using Flipflops
 
D Flip Flop
D Flip Flop D Flip Flop
D Flip Flop
 
Shift Registers
Shift RegistersShift Registers
Shift Registers
 
Sr Latch or Flip Flop
Sr Latch or Flip FlopSr Latch or Flip Flop
Sr Latch or Flip Flop
 
Counters
CountersCounters
Counters
 
Registers and counters
Registers and counters Registers and counters
Registers and counters
 
D and T Flip Flop
D and T Flip FlopD and T Flip Flop
D and T Flip Flop
 
Shift register
Shift registerShift register
Shift register
 
Shift Register
Shift RegisterShift Register
Shift Register
 
Flipflop
FlipflopFlipflop
Flipflop
 
Flip-Flop || Digital Electronics
Flip-Flop || Digital ElectronicsFlip-Flop || Digital Electronics
Flip-Flop || Digital Electronics
 
flip flops
flip flops flip flops
flip flops
 
Synchronous Counter
Synchronous Counter Synchronous Counter
Synchronous Counter
 

Ähnlich wie Flipflop

SEQUENTIAL CIRCUITS -Module 5 (1).pptx
SEQUENTIAL CIRCUITS -Module 5 (1).pptxSEQUENTIAL CIRCUITS -Module 5 (1).pptx
SEQUENTIAL CIRCUITS -Module 5 (1).pptxThanmayiKumar
 
15CS32 ADE Module 4
15CS32 ADE Module 415CS32 ADE Module 4
15CS32 ADE Module 4RLJIT
 
ANALOG AND DIGITAL ELECTRONICS unit 5
ANALOG AND DIGITAL ELECTRONICS unit 5ANALOG AND DIGITAL ELECTRONICS unit 5
ANALOG AND DIGITAL ELECTRONICS unit 5ACE ENGINEERING COLLEGE
 
Digital_Electronics_Module_4_Sequential_Circuits v0.6.pptx
Digital_Electronics_Module_4_Sequential_Circuits v0.6.pptxDigital_Electronics_Module_4_Sequential_Circuits v0.6.pptx
Digital_Electronics_Module_4_Sequential_Circuits v0.6.pptxUtsavDas21
 
Admission in india 2015
Admission in india 2015Admission in india 2015
Admission in india 2015Edhole.com
 
Admission in india 2015
Admission in india 2015Admission in india 2015
Admission in india 2015Edhole.com
 
Coa presentation2
Coa presentation2Coa presentation2
Coa presentation2rickypatel151
 
Lab 9 D-Flip Flops: Shift Register and Sequence Counter
Lab 9 D-Flip Flops: Shift Register and Sequence CounterLab 9 D-Flip Flops: Shift Register and Sequence Counter
Lab 9 D-Flip Flops: Shift Register and Sequence CounterKatrina Little
 
What are Flip Flops and Its types.
What are Flip Flops and Its types.What are Flip Flops and Its types.
What are Flip Flops and Its types.Satya P. Joshi
 
Analysis sequential circuits
Analysis sequential circuitsAnalysis sequential circuits
Analysis sequential circuitsG Subramaniamg
 
counter using 4 master slave flip-flops
counter using 4 master slave flip-flops counter using 4 master slave flip-flops
counter using 4 master slave flip-flops ZunAib Ali
 
De EE unit-3.pptx
De EE unit-3.pptxDe EE unit-3.pptx
De EE unit-3.pptxMukulThory1
 
Register
RegisterRegister
RegisterAL IMRAN
 
Sequential circuits
Sequential circuitsSequential circuits
Sequential circuitsParesh Parmar
 
Digital logic and microprocessors
Digital logic and microprocessorsDigital logic and microprocessors
Digital logic and microprocessorsMilind Pelagade
 
ELN Presentation Add more information to your upload.pptx
ELN Presentation Add more information to your upload.pptxELN Presentation Add more information to your upload.pptx
ELN Presentation Add more information to your upload.pptxMohammedAdnankhan4
 
Sequential logic circuit
Sequential logic circuitSequential logic circuit
Sequential logic circuitAswiniT3
 

Ähnlich wie Flipflop (20)

SEQUENTIAL CIRCUITS -Module 5 (1).pptx
SEQUENTIAL CIRCUITS -Module 5 (1).pptxSEQUENTIAL CIRCUITS -Module 5 (1).pptx
SEQUENTIAL CIRCUITS -Module 5 (1).pptx
 
15CS32 ADE Module 4
15CS32 ADE Module 415CS32 ADE Module 4
15CS32 ADE Module 4
 
ANALOG AND DIGITAL ELECTRONICS unit 5
ANALOG AND DIGITAL ELECTRONICS unit 5ANALOG AND DIGITAL ELECTRONICS unit 5
ANALOG AND DIGITAL ELECTRONICS unit 5
 
Digital_Electronics_Module_4_Sequential_Circuits v0.6.pptx
Digital_Electronics_Module_4_Sequential_Circuits v0.6.pptxDigital_Electronics_Module_4_Sequential_Circuits v0.6.pptx
Digital_Electronics_Module_4_Sequential_Circuits v0.6.pptx
 
Admission in india 2015
Admission in india 2015Admission in india 2015
Admission in india 2015
 
Sequential Logic
Sequential LogicSequential Logic
Sequential Logic
 
Admission in india 2015
Admission in india 2015Admission in india 2015
Admission in india 2015
 
Coa presentation2
Coa presentation2Coa presentation2
Coa presentation2
 
Lab 9 D-Flip Flops: Shift Register and Sequence Counter
Lab 9 D-Flip Flops: Shift Register and Sequence CounterLab 9 D-Flip Flops: Shift Register and Sequence Counter
Lab 9 D-Flip Flops: Shift Register and Sequence Counter
 
What are Flip Flops and Its types.
What are Flip Flops and Its types.What are Flip Flops and Its types.
What are Flip Flops and Its types.
 
Analysis sequential circuits
Analysis sequential circuitsAnalysis sequential circuits
Analysis sequential circuits
 
17 registers
17 registers17 registers
17 registers
 
counter using 4 master slave flip-flops
counter using 4 master slave flip-flops counter using 4 master slave flip-flops
counter using 4 master slave flip-flops
 
De EE unit-3.pptx
De EE unit-3.pptxDe EE unit-3.pptx
De EE unit-3.pptx
 
Register
RegisterRegister
Register
 
Sequential circuits
Sequential circuitsSequential circuits
Sequential circuits
 
Digital logic and microprocessors
Digital logic and microprocessorsDigital logic and microprocessors
Digital logic and microprocessors
 
Digital Logic circuit
Digital Logic circuitDigital Logic circuit
Digital Logic circuit
 
ELN Presentation Add more information to your upload.pptx
ELN Presentation Add more information to your upload.pptxELN Presentation Add more information to your upload.pptx
ELN Presentation Add more information to your upload.pptx
 
Sequential logic circuit
Sequential logic circuitSequential logic circuit
Sequential logic circuit
 

Mehr von Ravindra Rathore

Lecture 5 phasor notations
Lecture 5 phasor notationsLecture 5 phasor notations
Lecture 5 phasor notationsRavindra Rathore
 
Introduction of reflection
Introduction of reflection Introduction of reflection
Introduction of reflection Ravindra Rathore
 
26 io -ii file handling
26  io -ii  file handling26  io -ii  file handling
26 io -ii file handlingRavindra Rathore
 
27 applet programming
27  applet programming27  applet programming
27 applet programmingRavindra Rathore
 
22 multi threading iv
22 multi threading iv22 multi threading iv
22 multi threading ivRavindra Rathore
 
21 multi threading - iii
21 multi threading - iii21 multi threading - iii
21 multi threading - iiiRavindra Rathore
 
17 exception handling - ii
17 exception handling - ii17 exception handling - ii
17 exception handling - iiRavindra Rathore
 
16 exception handling - i
16 exception handling - i16 exception handling - i
16 exception handling - iRavindra Rathore
 
15 bitwise operators
15 bitwise operators15 bitwise operators
15 bitwise operatorsRavindra Rathore
 

Mehr von Ravindra Rathore (12)

Lecture 5 phasor notations
Lecture 5 phasor notationsLecture 5 phasor notations
Lecture 5 phasor notations
 
Introduction of reflection
Introduction of reflection Introduction of reflection
Introduction of reflection
 
Line coding
Line coding Line coding
Line coding
 
28 networking
28  networking28  networking
28 networking
 
26 io -ii file handling
26  io -ii  file handling26  io -ii  file handling
26 io -ii file handling
 
27 applet programming
27  applet programming27  applet programming
27 applet programming
 
22 multi threading iv
22 multi threading iv22 multi threading iv
22 multi threading iv
 
21 multi threading - iii
21 multi threading - iii21 multi threading - iii
21 multi threading - iii
 
17 exception handling - ii
17 exception handling - ii17 exception handling - ii
17 exception handling - ii
 
16 exception handling - i
16 exception handling - i16 exception handling - i
16 exception handling - i
 
15 bitwise operators
15 bitwise operators15 bitwise operators
15 bitwise operators
 
14 interface
14  interface14  interface
14 interface
 

KĂŒrzlich hochgeladen

Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsJoaquim Jorge
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobeapidays
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProduct Anonymous
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerThousandEyes
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Scriptwesley chun
 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUK Journal
 
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CVKhem
 
Top 5 Benefits OF Using Muvi Live Paywall For Live Streams
Top 5 Benefits OF Using Muvi Live Paywall For Live StreamsTop 5 Benefits OF Using Muvi Live Paywall For Live Streams
Top 5 Benefits OF Using Muvi Live Paywall For Live StreamsRoshan Dwivedi
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)Gabriella Davis
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)wesley chun
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024The Digital Insurer
 
HTML Injection Attacks: Impact and Mitigation Strategies
HTML Injection Attacks: Impact and Mitigation StrategiesHTML Injection Attacks: Impact and Mitigation Strategies
HTML Injection Attacks: Impact and Mitigation StrategiesBoston Institute of Analytics
 
Top 10 Most Downloaded Games on Play Store in 2024
Top 10 Most Downloaded Games on Play Store in 2024Top 10 Most Downloaded Games on Play Store in 2024
Top 10 Most Downloaded Games on Play Store in 2024SynarionITSolutions
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processorsdebabhi2
 
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingRepurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingEdi Saputra
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationRadu Cotescu
 
Deploy with confidence: VMware Cloud Foundation 5.1 on next gen Dell PowerEdg...
Deploy with confidence: VMware Cloud Foundation 5.1 on next gen Dell PowerEdg...Deploy with confidence: VMware Cloud Foundation 5.1 on next gen Dell PowerEdg...
Deploy with confidence: VMware Cloud Foundation 5.1 on next gen Dell PowerEdg...Principled Technologies
 
A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?Igalia
 

KĂŒrzlich hochgeladen (20)

Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
 
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CV
 
Top 5 Benefits OF Using Muvi Live Paywall For Live Streams
Top 5 Benefits OF Using Muvi Live Paywall For Live StreamsTop 5 Benefits OF Using Muvi Live Paywall For Live Streams
Top 5 Benefits OF Using Muvi Live Paywall For Live Streams
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
 
HTML Injection Attacks: Impact and Mitigation Strategies
HTML Injection Attacks: Impact and Mitigation StrategiesHTML Injection Attacks: Impact and Mitigation Strategies
HTML Injection Attacks: Impact and Mitigation Strategies
 
Top 10 Most Downloaded Games on Play Store in 2024
Top 10 Most Downloaded Games on Play Store in 2024Top 10 Most Downloaded Games on Play Store in 2024
Top 10 Most Downloaded Games on Play Store in 2024
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingRepurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 
Deploy with confidence: VMware Cloud Foundation 5.1 on next gen Dell PowerEdg...
Deploy with confidence: VMware Cloud Foundation 5.1 on next gen Dell PowerEdg...Deploy with confidence: VMware Cloud Foundation 5.1 on next gen Dell PowerEdg...
Deploy with confidence: VMware Cloud Foundation 5.1 on next gen Dell PowerEdg...
 
A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?
 

Flipflop

  • 1. ECE 301 – Digital Electronics Flip-Flops and Registers (Lecture #19) The slides included herein were taken from the materials accompanying Fundamentals of Logic Design, 6th Edition, by Roth and Kinney, and were used with permission from Cengage Learning.
  • 2. Spring 2011 ECE 301 - Digital Electronics 2 Flip-Flops (continued)
  • 3. Spring 2011 ECE 301 - Digital Electronics 3 SR Flip-Flop ● The SR Flip-Flop has three inputs – Clock (Ck) --- denoted by the small arrowhead – Set (S) and Reset (R) ● Similar to an SR Latch – S = 1 sets the flip-flop (Q+ = 1) – R = 1 resets the flip-flop (Q+ = 0) ● Like the D Flip-Flop, the Q output of an SR Flip-Flop only changes in response to an active clock edge. – Positive edge-triggered – Negative edge-triggered
  • 4. Spring 2011 ECE 301 - Digital Electronics 4 SR Flip-Flop S R Q Q+ 0 0 0 0 0 0 1 1 0 1 0 0 0 1 1 0 1 0 0 1 1 0 1 1 1 1 0 not 1 1 1 allowed }Q+ = Q Q+ = 0 Q+ = 1 set reset store } } positive edge-triggered SR Flip-Flop State change occurs after active Clock edge
  • 5. Spring 2011 ECE 301 - Digital Electronics 5 SR Flip-Flop (master-slave) Enabled on opposite levels of the clock SR Latches
  • 6. Spring 2011 ECE 301 - Digital Electronics 6 SR Flip-Flop: Timing Diagram
  • 7. Spring 2011 ECE 301 - Digital Electronics 7 JK Flip-Flop ● The JK Flip-Flop has three inputs – Clock (Ck) --- denoted by the small arrowhead – J and K ● Similar to the SR Flip-Flop – J corresponds to S: J = 1 → Q+ = 1 – K corresponds to R: K = 1 → Q+ = 0 ● Different from the SR Flip-Flop in that the input combination J = 1, K = 1 is allowed. – J = K = 1 causes the Q output to toggle after an active clock edge.
  • 8. Spring 2011 ECE 301 - Digital Electronics 8 JK Flip-Flop }Q+ = Q }Q+ = 0 }Q+ = 1 }Q+ = Q' set reset store toggle Q+ = J.Q' + K'.Q Characteristic Equation:
  • 9. Spring 2011 ECE 301 - Digital Electronics 9 JK Flip-Flop (master-slave) SR Latches Enabled on opposite levels of the clock
  • 10. Spring 2011 ECE 301 - Digital Electronics 10 JK Flip-Flop: Timing Diagram
  • 11. Spring 2011 ECE 301 - Digital Electronics 11 T Flip-Flop ● The Toggle (T) Flip-Flop has two inputs – Clock (Ck) --- denoted by the small arrowhead – Toggle (T) ● The T input controls the state change – when T = 0, the state does not change (Q+ = Q) – when T = 1, the state changes following an active clock edge (Q+ = Q') ● T Flip-Flops are often used in the design of counters.
  • 12. Spring 2011 ECE 301 - Digital Electronics 12 T Flip-Flop Q+ = T.Q' + T'.Q = T xor Q Characteristic Equation:
  • 13. Spring 2011 ECE 301 - Digital Electronics 13 T Flip-Flop: Timing Diagram
  • 14. Spring 2011 ECE 301 - Digital Electronics 14 Building a T Flip-Flop
  • 15. Spring 2011 ECE 301 - Digital Electronics 15 Asynchronous Control Signals
  • 16. Spring 2011 ECE 301 - Digital Electronics 16 Asynchronous Control Signals: Timing Diagram
  • 17. Spring 2011 ECE 301 - Digital Electronics 17 D FF with Clock Enable
  • 18. Spring 2011 ECE 301 - Digital Electronics 18 Registers
  • 19. Spring 2011 ECE 301 - Digital Electronics 19 Several D flip-flops may be grouped together with a common clock to form a register. Because each flip-flop can store one bit of information, a register with n D flip-flops can store n bits of information. A load signal can be ANDed with the clock to enable and disable loading the registers. A better approach is to use registers with clock enables if they are available. Registers
  • 20. Spring 2011 ECE 301 - Digital Electronics 20 Register: 4 bits
  • 21. Spring 2011 ECE 301 - Digital Electronics 21 Data Transfer between Registers ● Data transfer between registers is a common operation in computer (i.e. digital) systems. ● Multiple registers can be interconnected using tri-state buffers. ● Data can be transferred between two registers by enabling the proper tri-state buffer.
  • 22. Spring 2011 ECE 301 - Digital Electronics 22 Data Transfer between Registers
  • 23. Spring 2011 ECE 301 - Digital Electronics 23 Register with Tri-state Output
  • 24. Spring 2011 ECE 301 - Digital Electronics 24 Data Transfer using Tri-state Bus
  • 25. Spring 2011 ECE 301 - Digital Electronics 25 A shift register is a register in which binary data can be stored and shifted either left or right. The data is shifted according to the applied shift signal; often there is a left shift signal and a right shift signal. A shift register must be constructed using flip-flops (i.e. edge- triggered devices); it cannot be constructed using latches or gated-latches (i.e. level-sensitive devices). Shift Register
  • 26. Spring 2011 ECE 301 - Digital Electronics 26 Shift Register: 4 bits
  • 27. Spring 2011 ECE 301 - Digital Electronics 27 Shift Register (4 bits): Timing Diagram
  • 28. Spring 2011 ECE 301 - Digital Electronics 28 8-bit SI SO Shift Register
  • 29. Spring 2011 ECE 301 - Digital Electronics 29 4-bit PI PO Shift Register
  • 30. Spring 2011 ECE 301 - Digital Electronics 30 4-bit PI PO Shift Register: Operation
  • 31. Spring 2011 ECE 301 - Digital Electronics 31 Parallel Adder with Accumulator
  • 32. Spring 2011 ECE 301 - Digital Electronics 32 In computer circuits, it is frequently desirable to store one number in a register (called an accumulator) and add a second number to it, leaving the result stored in the register. Parallel Adder with Accumulator
  • 33. Spring 2011 ECE 301 - Digital Electronics 33 n-bit Parallel Adder with Accumulator
  • 34. Spring 2011 ECE 301 - Digital Electronics 34 Before addition in the previous circuit can take place, the accumulator must be loaded with X. This can be accomplished in several ways. The easiest way is to first clear the accumulator using the asynchronous clear inputs on the flip-flops, and then put the X data on the Y inputs to the adder and add the accumulator in the normal way. Alternatively, we could add multiplexers at the accumulator inputs so that we could select either the Y input data or the adder output to load into the accumulator. Loading the Accumulator
  • 35. Spring 2011 ECE 301 - Digital Electronics 35 Adder Cell with Multiplexer
  • 36. Spring 2011 ECE 301 - Digital Electronics 36 Questions?