1 The Registers File l Modern digital systems are based on logic with state variables, which are changed according to a clock. – The system consists of.

Slides:



Advertisements
Similar presentations
Sequential Digital Circuits Dr. Costas Kyriacou and Dr. Konstantinos Tatas.
Advertisements

COE 202: Digital Logic Design Sequential Circuits Part 1 Dr. Ahmad Almulhem ahmadsm AT kfupm Phone: Office: Ahmad Almulhem, KFUPM.
A. Abhari CPS2131 Sequential Circuits Most digital systems like digital watches, digital phones, digital computers, digital traffic light controllers and.
BR 8/991 Sequential Systems A combinational system is a system whose outputs depends only upon its current inputs. A sequential system is a system whose.
CENG 241 Digital Design 1 Lecture 8 Amirali Baniasadi
1 Fundamentals of Computer Science Sequential Circuits.
Flip-Flops, Registers, Counters, and a Simple Processor
Sequential Circuits1 DIGITAL LOGIC DESIGN by Dr. Fenghui Yao Tennessee State University Department of Computer Science Nashville, TN.
Sequential circuits The digital circuits considered thus far have been combinational, where the outputs are entirely dependent on the current inputs. Although.
1 Sequential Systems A combinational system is a system whose outputs depend only upon its current inputs. A sequential system is a system whose outputs.
Logical Circuit Design Week 11: Sequential Logic Circuits Mentor Hamiti, MSc Office ,
Dr. ClincyLecture1 Appendix A – Part 2: Logic Circuits Current State or output of the device is affected by the previous states Circuit Flip Flops New.
ECE 3130 – Digital Electronics and Design Lab 5 Latches and Flip-Flops Fall 2012 Allan Guan.
Latches Module M10.1 Section 7.1. Sequential Logic Combinational Logic –Output depends only on current input Sequential Logic –Output depends not only.
Overview Logic Combinational Logic Sequential Logic Storage Devices SR Flip-Flops D Flip Flops JK Flip Flops Registers Addressing Computer Memory.
So far, all of the logic circuits we have studied were basically based on the analysis and design of combinational digital circuits. The other major aspect.
Digital Logic Design CHAPTER 5 Sequential Logic. 2 Sequential Circuits Combinational circuits – The outputs are entirely dependent on the current inputs.
Registers and Counters
1 Sequential Circuit Latch & Flip-flop. 2 Contents Introduction Memory Element Latch  SR latch  D latch Flip-flop  SR flip-flop  D flip-flop  JK.
COE 202: Digital Logic Design Sequential Circuits Part 1
Flip Flop
T Flip-Flop A T (toggle) flip-flop is a complementing flip-flop and can be obtained from a JK flip-flop when the two inputs are tied together. When T =
Chap 4. Sequential Circuits
Sequential Circuits. Two primary differences between combinational circuits and sequential circuits –Sequential circuits are synchronous (use a clock)
ECA1212 Introduction to Electrical & Electronics Engineering Chapter 9: Digital Electronics – Sequential Logic by Muhazam Mustapha, November 2011.
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.
מבנה מחשב תרגול 2. 2 Boolean AND Operation Truth Table Equivalent Gate Different notations:
Chapter 10 Flip-Flops and Registers 1. Objectives You should be able to: Explain the internal circuit operation of S-R and gated S-R flip-flops. Explain.
1 Lecture #11 EGR 277 – Digital Logic Ch. 5 - Synchronous Sequential Logic There are two primary classifications of logic circuits: 1.Combinational logic.
© 2009 Pearson Education, Upper Saddle River, NJ All Rights ReservedFloyd, Digital Fundamentals, 10 th ed Digital Logic Design Dr. Oliver Faust.
1 Synchronous Sequential Logic Sequential Circuits Every digital system is likely to have combinational circuits, most systems encountered in practice.
Sequential Logic Computer Organization II 1 © McQuain A clock is a free-running signal with a cycle time. A clock may be either high or.
Synchronous Sequential Logic A digital system has combinational logic as well as sequential logic. The latter includes storage elements. feedback path.
5 Chapter Synchronous Sequential Circuits 1. Logic Circuits- Review 2 Logic Circuits Sequential Circuits Combinational Circuits Consists of logic gates.
Sahar Mosleh PageCalifornia State University San Marcos 1 More on Flip Flop State Table and State Diagram.
Sequential Circuit Latch & Flip-flop. Contents Introduction Memory Element Latch  SR latch  D latch Flip-flop  SR flip-flop  D flip-flop  JK flip-flop.
CO5023 Latches, Flip-Flops and Decoders. Sequential Circuit What does this do? The OUTPUT of a sequential circuit is determined by the current output.
Chapter5: Synchronous Sequential Logic – Part 1
Synchronous Sequential Circuits by Dr. Amin Danial Asham.
A combinational circuit is a connected arrangement of logic gate with a set of input and output.
 Flip-flops are digital logic circuits that can be in one of two states.  Flip-flops maintain their state indefinitely until an input pulse called a.
A latch is a temporary storage device that has two stable states (bistable). It is a basic form of memory. The S-R (Set-Reset) latch is the most basic.
Synchronous Sequential Circuits by Dr. Amin Danial Asham.
Sequential logic circuits First Class 1Dr. AMMAR ABDUL-HAMED KHADER.
LATCHED, FLIP-FLOPS,AND TIMERS
מבנה מחשב תרגול 3.
ECE 3130 – Digital Electronics and Design
Digital Design Lecture 9
Synchronous Sequential Circuits
Flip-Flop.
Sequential Circuits Most digital systems like digital watches, digital phones, digital computers, digital traffic light controllers and so on require.
CISE204: Design of Digital Systems Lecture 18 : Sequential Circuits
Flip Flop.
Assistant Prof. Fareena Saqib Florida Institute of Technology
ECE Digital logic Lecture 16: Synchronous Sequential Logic
Digital Design Fundamentals
LECTURE 15 – DIGITAL ELECTRONICS
Instructor: Alexander Stoytchev
Elec 2607 Digital Switching Circuits
Synchronous Sequential Circuits
Instructor: Alexander Stoytchev
Reference: Chapter 5 Sequential Circuits Moris Mano 4th Ediditon
Thought of the Day To be what we are, and to become
FLIP-FLOPS.
Instructor: Alexander Stoytchev
Synchronous sequential
Synchronous Sequential
Sequential Digital Circuits
Week 11 Flip flop & Latches.
Presentation transcript:

1 The Registers File l Modern digital systems are based on logic with state variables, which are changed according to a clock. – The system consists of two types of logic -- combinational and sequential. – Sequential logic contains state elements or memory elements. State element 1 State element 2 Combinational Logic The simplest type of clocking system to understand is built with edge triggered state elements. The diagram shows a system which clocks on the leading edge of the clock. leading edge leading edge clock period

2 Flip-Flop l An S-R flip-flop: R=1 S=0 Q=0 Q=1 R=0 S=1 Q=1 Q=0 R=0 S=0 Q=0 Q=1 R=0 S=0 Q=1 Q=0

3 Simple State Element S-R Latch (Or S-R Flip-Flop) – Feedback is the key to memory/state elements. – Once a value is fed to the element, it circulates inside the element and renews itself, even after the input is turned off. – Other memory devices can be built from the basic latch. R SR S Q Q QQRS Save Illegal

4 NAND Based S-R Flip-Flop QQRS Save 11 RSRS Q=0 Q=1 Illegal

5 Clocked "D" Latch l This latch has one input, called "D". l When the clock is low, AND gates force zero on all inputs to the S-R latch  no change in state. l When clock is high, the value at D sets the "S" input of the latch; inverted D sets the "R" input of the latch. Clock D Q Q

6 "D" Latch Clocking Waveforms The output "D" responds to the change in input, a characteristic delay after the clock goes high. Clock D Q Q DCQDCQ t delay t t

7 J-K Flip-Flop l The undefined state of the SR type is defined in the JK type. l Inputs J and K behave like inputs S and R to set and clear the flip-flop – note that in a JK flip-flop, the letter J is for set and the letter K is for clear). l When logic 1 inputs are applied to both J and K simultaneously, the flip-flop switches to its complement state, i.e. if Q=1, it switches to Q=0 and vice versa.

8 J-K Truth Table

9 T Flip-Flop l the T flip-flop is obtained from the JK type if both inputs are tied together. l If T=1, the output of the T flip-flop will "toggle" with each clock pulse. l If T=0, the output of the T flip-flop will not be changed

10 Q(t)Q(t+1)JK 000  011  10  1 11  0 JKFF Q(t)Q(t+1)SR 000   0 SRFF Q(t)Q(t+1)D DFF Q(t)Q(t+1)T TFF Excitation tables

11 Edge Triggered "D" flip-flop D Clock Q Q D Latch D C Q D Latch D C Q The first latch is called the master, the second latch is called the slave. l When the clock goes high, the first D latch (master) accepts the change in input l Because of the inverter, the change is blocked from moving on the second D latch (slave). l When the clock goes low, the slave latch accepts the change in input.

12 Edge Triggered Timing D Clock Q Q D Latch D C Q D Latch D C Q D Clock Master Clock Slave Q

13 Registers Registers can be built from a series of Edge Triggered (ET) D latches connected to the same clock. Clock ET-D Latch D C Q ET-D Latch D C Q ET-D Latch D C Q... ET-D Latch D C Q D0D1D2D(n-1) Q0Q1Q2Q(n-1)

14 Registers File Implementation of double read port read reg 1 read reg 2 write reg write data write enable read data 1 read data 2 register 0 register 1... register 30 register 31 MUXMUX MUXMUX data 1 data 2 read reg 1 read reg 2 5 bits 32 bits 5 bits 32 bits 1 bit

15 Write Port Implementation n-to-1 decoder register 0 register register 30 register 31 CDCD CDCD CDCD CDCD CDCD write enable write data Reg # 32 bits 1 bit 5 bits Clock 1 bit