Sequential Circuits.

Slides:



Advertisements
Similar presentations
CENG 241 Digital Design 1 Lecture 8 Amirali Baniasadi
Advertisements

1 Fundamentals of Computer Science Sequential Circuits.
Multiplexors Sequential Circuits and Finite State Machines Prof. Sin-Min Lee Department of Computer Science.
Module 12.  In Module 9, 10, 11, you have been introduced to examples of combinational logic circuits whereby the outputs are entirely dependent on the.
Sequential logic circuits. 2 Outline Sequential Circuit Models –Asynchronous –Synchronous Latches Flip-Flops.
1 Sequential Circuits –Digital circuits that use memory elements as part of their operation –Characterized by feedback path –Outputs depend not only on.
CSCE 211: Digital Logic Design. Chapter 6: Analysis of Sequential Systems.
Digital Logic Design Brief introduction to Sequential Circuits and Latches.
ENGIN112 L20: Sequential Circuits: Flip flops October 20, 2003 ENGIN 112 Intro to Electrical and Computer Engineering Lecture 20 Sequential Circuits: Flip.
CS 151 Digital Systems Design Lecture 20 Sequential Circuits: Flip flops.
Digital Logic Design CHAPTER 5 Sequential Logic. 2 Sequential Circuits Combinational circuits – The outputs are entirely dependent on the current inputs.
BY: TRAVIS HOOVER 2/22/2011 CS 147 DR. LEE JK flip-flops.
COE 202: Digital Logic Design Sequential Circuits Part 1
EE2174: Digital Logic and Lab Professor Shiyan Hu Department of Electrical and Computer Engineering Michigan Technological University CHAPTER 9 Sequential.
ECA1212 Introduction to Electrical & Electronics Engineering Chapter 9: Digital Electronics – Sequential Logic by Muhazam Mustapha, November 2011.
Sequential Logic Combinatorial components: the output values are computed only from their present input values. Sequential components: their output values.
Synchronous Sequential Circuits by Dr. Amin Danial Asham.
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.
Chapter5: Synchronous Sequential Logic – Part 1
Synchronous Sequential Circuits by Dr. Amin Danial Asham.
Synchronous Sequential Circuits by Dr. Amin Danial Asham.
ECE 331 – Digital System Design Introduction to Sequential Circuits and Latches (Lecture #16)
Instructor: Alexander Stoytchev CprE 281: Digital Logic.
7. Latches and Flip-Flops Digital Computer Logic.
INTRODUCTION FLIP FLOPS: Flip flop is the basic memory element in a digital computer. It is used to store one bit of information with a 0 (or) 1. It is.
Sequential logic circuits First Class 1Dr. AMMAR ABDUL-HAMED KHADER.
Sequential Circuits.
ECEN 248: INTRODUCTION TO DIGITAL SYSTEMS DESIGN
Flip Flops.
Computer Organization
ECE 3130 – Digital Electronics and Design
Lecture 8 Dr. Nermi Hamza.
CSCE 211: Digital Logic Design
Learning Outcome By the end of this chapter, students are expected to refresh their knowledge on sequential logic related to HDL.
Flip Flops.
FIGURE 5.1 Block diagram of sequential circuit
Digital Design Lecture 9
Synchronous Sequential Circuits
Flip Flops.
Flip-Flop.
Sequential Circuits Most digital systems like digital watches, digital phones, digital computers, digital traffic light controllers and so on require.
CS1104 – Computer Organization
CISE204: Design of Digital Systems Lecture 18 : Sequential Circuits
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.
ECE Digital logic Lecture 16: Synchronous Sequential Logic
Princess Sumaya University
Sequential logic circuits
LECTURE 15 – DIGITAL ELECTRONICS
Chapter 6 -- Introduction to Sequential Devices
Synchronous Sequential Circuits
Instructor: Alexander Stoytchev
Instructor: Alexander Stoytchev
Sequential Circuits: Latches
Reference: Chapter 5 Sequential Circuits Moris Mano 4th Ediditon
Sequential circuit analysis: kale
University of Maryland Baltimore County Department of Computer Science and Electrical Engineering   CMPE 212 Laboratory (Discussion 10) Hasib Hasan
Synchronous Sequential Logic
FLIP-FLOPS.
Instructor: Alexander Stoytchev
Synchronous sequential
Synchronous Sequential
Flip-Flops.
ECE 352 Digital System Fundamentals
Sequential circuit analysis
Chapter 5 Sequential Circuits.
Sequential Digital Circuits
Week 11 Flip flop & Latches.
Presentation transcript:

Sequential Circuits

Sequential Circuits In the previous session, we said that the output of a combinational circuit depends solely upon the input. The implication is that combinational circuits have no memory. In order to build sophisticated digital logic circuits, including computers, we need more a powerful model. We need circuits whose output depends upon both the input of the circuit and its previous state. In other words, we need circuits that have memory.

Sequential Circuits For a device to serve as a memory, it must have three characteristics: the device must have two stable states there must be a way to read the state of the device there must be a way to set the state at least once.

Latches and Flip Flop In the same way that gates are the building blocks of combinatorial circuits, latches and flip-flops are the building blocks of sequential circuits. While gates had to be built directly from transistors, latches can be built from gates, and flip-flops can be built from latches. This fact will make it somewhat easier to understand latches and flip-flops.

Latches and Flip Flop Both latches and flip-flops are circuit elements whose output depends not only on the current inputs, but also on previous inputs and outputs. The difference between a latch and a flip-flop is that a latch does not have a clock signal, whereas a flip-flop always does. Common examples of latches: S-R latch, S-R latch, D latch (= gated D latch) Common examples of flip-flops (FF): D-FF, D-FF with enable, Scan-FF, JK-FF, T-FF

S-R Latch Circuit Design Using NOR gates Function Table: hold, no change Reset Set not allowed, unstable (Q=QN)

S-R latch Function table:

Clocked (NOR) S-R Latch Clk=0: input has no effect: latch is always in “hold” mode (retain its previous state) Clk=1: latch is a regular S-R latch

D latch Function table:

Flip-Flop Latches are a synchronous, which means that the output changes very soon after the input changes. Most computers today, on the other hand, are synchronous, which means that the outputs of all the sequential circuits change simultaneously to the rhythm of a global clock signal. A flip-flop is a synchronous version of the latch.

Latches vs. Flip Flops Latches are flip-flops for which the timing of the output changes are not controlled. For a latch, the output responds immediately to changes on the input lines. i.e the timing of output changes are not controlled. A flip-flop is designed to change its output at the edge of a controlling clock signal.

Flip-Flop A flip-flop circuit can be constructed from two NAND gates or two NOR gates. Each flip-flop has two outputs, Q and Q′, and two inputs, set and reset. This type of flip-flop is referred to as an SR flip-flop or SR latch. The flip-flop in has two useful states. When Q=1 and Q′=0, it is in the set state (or 1 -state). When Q =0 an d Q′=1, it is in the clear state (or 0 -state).

Flip-Flop The outputs Q and Q′ are complements of each other and are referred to as the normal and complement outputs, respectively. The binary state of the flip-flop is taken to be the value of the normal output.

D Flip-Flop If D input is 1, the flip-flop is switched to the set state (unless it was already set). If it is 0, the flip-flop switches to the clear state.

J-K Flip-flop Behavior of JK flip-flop: Same as S-R flip-flop with J analogous to S and K analogous to R Except that J = K = 1 is allowed, and For J = K = 1, the flip-flop changes to the opposite state (toggle) Behavior described by the characteristic table (function table): J C K Q J K Q(t+1) 0 0 Q(t) no change 0 1 0 reset 0 1 set 1 1 Q(t) toggle

T Flip-flop Behavior described by its characteristic table: T Q(t+1) Has a single input T For T = 0, no change to state For T = 1, changes to opposite state T Q(t+1) 0 Q(t) no change 1 Q(t) complement Characteristic equation: Q(t+1)=T’Q(t) + TQ’(t) = TQ(t) T C

Flip-Flop Characteristic Tables Princess Sumaya University Flip-Flop Characteristic Tables 4241 - Digital Logic Design D Q D Q(t+1) 1 Reset Set J K Q(t+1) Q(t) 1 Q’(t) J Q K No change Reset Set Toggle T Q T Q(t+1) Q(t) 1 Q’(t) No change Toggle Dr. Bassam Kahhaleh

Characteristics Equation Specify next state as a function of its current state and inputs Q(t) current state Q(t+1) next state For example: SR latch: Q(t+1) = S + R’Q(t) D flip-flop: Q(t+1) = D JK flip-flop: Q(t+1) = JQ’(t)+K’Q(t) T flip-flop: Q(t+1) = T⊕Q(t)= TQ’(t)+T’Q(t)

Flip-Flop Characteristic Equations Princess Sumaya University Flip-Flop Characteristic Equations 4241 - Digital Logic Design D Q D Q(t+1) 1 Q(t+1) = D J K Q(t+1) Q(t) 1 Q’(t) J Q K Q(t+1) = JQ’ + K’Q T Q T Q(t+1) Q(t) 1 Q’(t) Q(t+1) = T  Q Dr. Bassam Kahhaleh