SlideShare a Scribd company logo
1 of 36
Download to read offline
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?

More Related Content

What's hot

What's hot (20)

Flip flop
Flip flopFlip flop
Flip flop
 
Types of flip flops ppt
Types of flip flops pptTypes of flip flops ppt
Types of flip flops ppt
 
D latch
D latchD latch
D latch
 
Verilog hdl design examples
Verilog hdl design examplesVerilog hdl design examples
Verilog hdl design examples
 
Introduction to Counters
Introduction to CountersIntroduction to Counters
Introduction to Counters
 
08 decoder
08 decoder08 decoder
08 decoder
 
Basics Counters
Basics Counters Basics Counters
Basics Counters
 
Verilog HDL
Verilog HDLVerilog HDL
Verilog HDL
 
Counters
CountersCounters
Counters
 
Designing State Machine
Designing State MachineDesigning State Machine
Designing State Machine
 
multiplexers and demultiplexers
 multiplexers and demultiplexers multiplexers and demultiplexers
multiplexers and demultiplexers
 
Flip flops
Flip flopsFlip flops
Flip flops
 
Flipflop
FlipflopFlipflop
Flipflop
 
Flip Flop
Flip FlopFlip Flop
Flip Flop
 
Flip flop
Flip flopFlip flop
Flip flop
 
Latches & flip flop
Latches & flip flopLatches & flip flop
Latches & flip flop
 
Flip-Flop || Digital Electronics
Flip-Flop || Digital ElectronicsFlip-Flop || Digital Electronics
Flip-Flop || Digital Electronics
 
J - K & MASTERSLAVE FLIPFLOPS
J - K & MASTERSLAVE FLIPFLOPSJ - K & MASTERSLAVE FLIPFLOPS
J - K & MASTERSLAVE FLIPFLOPS
 
Registers and counters
Registers and counters Registers and counters
Registers and counters
 
Flip flops, counters & registers
Flip flops, counters & registersFlip flops, counters & registers
Flip flops, counters & registers
 

Similar to 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
 
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
 
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
 
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
 

Similar to 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
 
Chapter 6 register
Chapter 6 registerChapter 6 register
Chapter 6 register
 
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
 

More from Ravindra Rathore

More from 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
 

Recently uploaded

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
 
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024The Digital Insurer
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...Martijn de Jong
 
Advantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your BusinessAdvantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your BusinessPixlogix Infotech
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Miguel Araújo
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024The Digital Insurer
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...Neo4j
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfsudhanshuwaghmare1
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking MenDelhi Call girls
 
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
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxMalak Abu Hammad
 
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
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slidevu2urc
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonAnna Loughnan Colquhoun
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking MenDelhi Call girls
 
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
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...apidays
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsJoaquim Jorge
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking MenDelhi Call girls
 
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfThe Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfEnterprise Knowledge
 

Recently uploaded (20)

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?
 
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
Advantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your BusinessAdvantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your Business
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
 
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
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptx
 
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
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
 
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
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men
 
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfThe Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
 

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?