ECE 331 – Digital System Design Flip-Flops and Registers (Lecture #18) The slides included herein were taken from the materials accompanying Fundamentals.

Slides:



Advertisements
Similar presentations
ECE 331 – Digital System Design Latches and Flip-Flops (Lecture #17) The slides included herein were taken from the materials accompanying Fundamentals.
Advertisements

Flip-Flops, Registers, Counters, and a Simple Processor
ECE 331 – Digital System Design Introduction to and Analysis of Sequential Logic Circuits (Lecture #20) The slides included herein were taken from the.
ECE 331 – Digital System Design State Reduction and State Assignment (Lecture #22) The slides included herein were taken from the materials accompanying.
ECE 331 – Digital System Design
ENGIN112 L20: Sequential Circuits: Flip flops October 20, 2003 ENGIN 112 Intro to Electrical and Computer Engineering Lecture 20 Sequential Circuits: Flip.
11/16/2004EE 42 fall 2004 lecture 331 Lecture #33: Some example circuits Last lecture: –Edge triggers –Registers This lecture: –Example circuits –shift.
CS 151 Digital Systems Design Lecture 20 Sequential Circuits: Flip flops.
ENGIN112 L27: Counters November 5, 2003 ENGIN 112 Intro to Electrical and Computer Engineering Lecture 27 Counters.
CS370 Counters. Overview °Counter: A register that goes through a prescribed series of states °Counters are important components in computers. °Counters.
ECE 331 – Digital System Design Tristate Buffers, Read-Only Memories and Programmable Logic Devices (Lecture #16) The slides included herein were taken.
ECE 331 – Digital System Design Counters (Lecture #18)
ECE 331 – Digital System Design Counters (Lecture #19) The slides included herein were taken from the materials accompanying Fundamentals of Logic Design,
ECE 331 – Digital System Design Sequential Circuit Design (Lecture #23) The slides included herein were taken from the materials accompanying Fundamentals.
ECE 301 – Digital Electronics Introduction to Sequential Logic Circuits (aka. Finite State Machines) and FSM Analysis (Lecture #17)
ECE 331 – Digital Systems Design Introduction to Sequential Logic Circuits (aka. Finite State Machines) and FSM Analysis (Lecture #19)
ENGIN112 L26: Shift Registers November 3, 2003 ENGIN 112 Intro to Electrical and Computer Engineering Lecture 26 Shift Registers.
A.Abhari CPS2131 Registers A register is a group of n flip-flops each of them capable of storing one bit of information There are two types of registers:
REGISTER A Register is a group of binary storage cells suitable for holding binary information. A group of flip-flops constitutes a register, since each.
Unit 12 Registers and Counters Ku-Yaw Chang Assistant Professor, Department of Computer Science and Information Engineering Da-Yeh.
SEQUENTIAL CIRCUITS USING TTL 74XX ICS
Chapter 1_4 Part II Counters
1 Sequential Circuits Registers and Counters. 2 Master Slave Flip Flops.
Unit 11 Latches and Flip-Flops Ku-Yaw Chang Assistant Professor, Department of Computer Science and Information Engineering Da-Yeh.
EE345: Introduction to Microcontrollers Register and Counters Prof. Ahmad Abu-El-Haija.
Sequential Circuits Chapter 4 S. Dandamudi To be used with S. Dandamudi, “Fundamentals of Computer Organization and Design,” Springer,  S.
Registers and Counters
ETE Digital Electronics
ECE 301 – Digital Electronics Flip-Flops and Registers (Lecture #15)
Registers and Counters
ECE 301 – Digital Electronics Counters (Lecture #16)
ENGSCI 232 Computer Systems Lecture 5: Synchronous Circuits.
Flip Flop
CHAPTER 12 REGISTERS AND COUNTERS
1 Registers and Counters A register consists of a group of flip-flops and gates that affect their transition. An n-bit register consists of n-bit flip-flops.
Registers and Counters
Rabie A. Ramadan Lecture 3
1 DIGITAL ELECTRONICS. 2 OVERVIEW –electronic circuits capable of carrying out logical (boolean) and arithmetic operations on information stored as binary.
CENT-113 Digital Electronics 1 Flip Flops TI Type 502 Flip Flop: 1st production IC in 1960.
SEQUENTIAL CIRCUITS Component Design and Use. Register with Parallel Load  Register: Group of Flip-Flops  Ex: D Flip-Flops  Holds a Word of Data 
Unit 11 Latches and Flip-Flops Fundamentals of Logic Design By Roth and Kinney.
ECEN 248: INTRODUCTION TO DIGITAL SYSTEMS DESIGN Lecture 17 Dr. Shi Dept. of Electrical and Computer Engineering.
Digital Design Lectures 11 & 12 Shift Registers and Counters.
Basic Sequential Components CT101 – Computing Systems Organization.
ENG241 Digital Design Week #8 Registers and Counters.
Sequential Logic Combinatorial components: the output values are computed only from their present input values. Sequential components: their output values.
JK Flip-Flop. JK Flip-flop The most versatile of the flip-flops Has two data inputs (J and K) Do not have an undefined state like SR flip-flops – When.
Synchronous Sequential Circuits by Dr. Amin Danial Asham.
Digital Computer Concept and Practice Copyright ©2012 by Jaejin Lee Logic Circuits II.
Abdullah Said Alkalbani University of Buraimi
Sequential logic circuits
Registers and Counters
© 2009 Pearson Education, Upper Saddle River, NJ All Rights ReservedFloyd, Digital Fundamentals, 10 th ed Digital Logic Design Dr. Oliver Faust.
ECE 545—Digital System Design with VHDL Lecture 1
Synchronous Sequential Circuits by Dr. Amin Danial Asham.
Modular sequential logic Use latches, flip-flops and combinational logic –Flip-flops usually grouped to form a register Shift registers –n bits {x n …x.
Dept. of Electrical Engineering
1 CS 352 Introduction to Logic Design Lecture 6 Ahmed Ezzat Latches, Flip/Flops, Registers, and Counters Ch-11 + Ch-12.
1 CHAPTER 12 REGISTERS AND COUNTERS This chapter in the book includes: Objectives Study Guide 12.1Registers and Register Transfers 12.2Shift Registers.
©2010 Cengage Learning SLIDES FOR CHAPTER 11 LATCHES AND FLIP-FLOPS Click the mouse to move to the next page. Use the ESC key to exit this chapter. This.
UNIT 11 LATCHES AND FLIP-FLOPS Click the mouse to move to the next page. Use the ESC key to exit this chapter. This chapter in the book includes: Objectives.
Registers and Counters
Sequential Logic.
SLIDES FOR CHAPTER 12 REGISTERS AND COUNTERS
Flip Flop.
Digital System Design Review.
Registers and Counters Register : A Group of Flip-Flops. N-Bit Register has N flip-flops. Each flip-flop stores 1-Bit Information. So N-Bit Register Stores.
ECEN 248: INTRODUCTION TO DIGITAL SYSTEMS DESIGN
Synchronous sequential
Synchronous Sequential
Presentation transcript:

ECE 331 – Digital System Design Flip-Flops and Registers (Lecture #18) The slides included herein were taken from the materials accompanying Fundamentals of Logic Design, 6 th Edition, by Roth and Kinney, and were used with permission from Cengage Learning.

Fall 2010ECE Digital System Design2 Material to be covered … Chapter 11: Sections 6 – 8 Chapter 12: Sections 1 – 2

Fall 2010ECE Digital System Design3 Flip-Flops (continued)

Fall 2010ECE Digital System Design4 An S-R flip-flop is similar to an S-R latch in that S = 1 sets the Q output to 1, and R = 1 resets the Q output to 0. The essential difference is that the flip-flop has a clock input, and the Q output can change only after an active clock edge. SR Flip-Flop

Fall 2010ECE Digital System Design5 Operation summary: S = R = 0no state change S = 1, R = 0set Q to 1 (after active Ck edge) S = 0, R = 1reset Q to 0 (after active Ck edge) S = R = 1not allowed SR Flip-Flop

Fall 2010ECE Digital System Design6 SR Flip-Flop (master-slave)

Fall 2010ECE Digital System Design7 SR Flip-Flop: Timing Diagram

Fall 2010ECE Digital System Design8 The J-K flip-flop is an extended version of the S-R flip-flop. The J-K flip-flop has three inputs – J, K, and the clock (CK). The J input corresponds to S, and K corresponds to R. Unlike the S-R flip-flop, a 1 input may be applied simultaneously to J and K, in which case the flip-flop changes state (i.e. toggles) after the active clock edge. JK Flip-Flop

Fall 2010ECE Digital System Design9 JK Flip-Flop } Q + = Q } Q + = 0 } Q + = 1 } Q + = Q' set reset store toggle

Fall 2010ECE Digital System Design10 JK Flip-Flop (master-slave)

Fall 2010ECE Digital System Design11 JK Flip-Flop: Timing Diagram

Fall 2010ECE Digital System Design12 The T flip-flop, also called the toggle flip-flop, is frequently used in building counters. It has a T input and a clock input. When T = 1 the flip-flop changes state after the active edge of the clock. When T = 0, no state change occurs. T Flip-Flop

Fall 2010ECE Digital System Design13 Q + = T'Q + TQ' = Q  T T Flip-Flop

Fall 2010ECE Digital System Design14 T Flip-Flop: Timing Diagram

Fall 2010ECE Digital System Design15 Building a T Flip-Flop

Fall 2010ECE Digital System Design16 Asynchronous Control Signals

Fall 2010ECE Digital System Design17 Asynchronous Control Signals: Timing Diagram

Fall 2010ECE Digital System Design18 D FF with Clock Enable

Fall 2010ECE Digital System Design19 Registers

Fall 2010ECE Digital System Design20 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

Fall 2010ECE Digital System Design21 Register: 4 bits

Fall 2010ECE Digital System Design22 Transferring data between registers is a common operation in digital systems. Data can be transferred from the output of one of two registers into a third register using tri-state buffers. Data Transfer between Registers

Fall 2010ECE Digital System Design23 Data Transfer between Registers

Fall 2010ECE Digital System Design24 Register with Tri-state Output

Fall 2010ECE Digital System Design25 Data Transfer using Tri-state Bus

Fall 2010ECE Digital System Design26 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

Fall 2010ECE Digital System Design27 Shift Register: 4 bits

Fall 2010ECE Digital System Design28 Shift Register (4 bits): Timing Diagram

Fall 2010ECE Digital System Design29 8-bit SI SO Shift Register

Fall 2010ECE Digital System Design30 8-bit Shift Register: Timing Diagram

Fall 2010ECE Digital System Design31 4-bit PI PO Shift Register

Fall 2010ECE Digital System Design32 4-bit PI PO Shift Register: Operation

Fall 2010ECE Digital System Design33 4-bit PI PO Shift Register: Timing Diagram

Fall 2010ECE Digital System Design34 Parallel Adder with Accumulator

Fall 2010ECE Digital System Design35 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

Fall 2010ECE Digital System Design36 n-bit Parallel Adder with Accumulator

Fall 2010ECE Digital System Design37 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

Fall 2010ECE Digital System Design38 Adder Cell with Multiplexer

Fall 2010ECE Digital System Design39 Questions?