Sequential Circuits. Two primary differences between combinational circuits and sequential circuits –Sequential circuits are synchronous (use a clock)

Slides:



Advertisements
Similar presentations
EE 5900 Advanced Algorithms for Robust VLSI CAD, Spring 2009 Sequential Circuits.
Advertisements

COE 202: Digital Logic Design Sequential Circuits Part 1 Dr. Ahmad Almulhem ahmadsm AT kfupm Phone: Office: Ahmad Almulhem, KFUPM.
EECS 465: Digital Systems Lecture Notes # 7
A. Abhari CPS2131 Sequential Circuits Most digital systems like digital watches, digital phones, digital computers, digital traffic light controllers and.
1 Fundamentals of Computer Science Sequential Circuits.
CHAPTER 3 Sequential Logic/ Circuits.  Concept of Sequential Logic  Latch and Flip-flops (FFs)  Shift Registers and Application  Counters (Types,
ECE 331 – Digital System Design Latches and Flip-Flops (Lecture #17) The slides included herein were taken from the materials accompanying Fundamentals.
Computer Architecture CS 215
Classification of Digital Circuits  Combinational. Output depends only on current input values.  Sequential. Output depends on current input values and.
1 Kuliah Rangkaian Digital Kuliah 8: Rangkaian Logika Sekuensial Teknik Komputer Universitas Gunadarma.
Princess Sumaya University
Sequential Circuits1 DIGITAL LOGIC DESIGN by Dr. Fenghui Yao Tennessee State University Department of Computer Science Nashville, TN.
Multiplexors Sequential Circuits and Finite State Machines Prof. Sin-Min Lee Department of Computer Science.
ReturnNext  Latch : a sequential device that watches all of its inputs continuously and changes its outputs at any time, independent of a clocking signal.
1 Sequential Circuits –Digital circuits that use memory elements as part of their operation –Characterized by feedback path –Outputs depend not only on.
Nonlinear & Neural Networks LAB. CHAPTER 11 LATCHES AND FLIP-FLOPS 11.1Introduction 11.2Set-Reset Latch 11.3Gated D Latch 11.4Edge-Triggered D Flip-Flop.
CSCE 211: Digital Logic Design. Chapter 6: Analysis of Sequential Systems.
Circuits require memory to store intermediate data
Charles Kime & Thomas Kaminski © 2008 Pearson Education, Inc. (Hyperlinks are active in View Show mode) Chapter 5 – Sequential Circuits Part 1 – Storage.
1 © 2014 B. Wilkinson Modification date: Dec Sequential Logic Circuits – I Flip-Flops A sequential circuit is a logic components whose outputs.
EKT 124 / 3 DIGITAL ELEKTRONIC 1
Sequential circuit Digital electronics is classified into combinational logic and sequential logic. In combinational circuit outpus depends only on present.
Sequential Logic Flip-Flops and Related Devices Dr. Rebhi S. Baraka Logic Design (CSCI 2301) Department of Computer Science Faculty.
1 Sequential logic networks I. Motivation & Examples  Output depends on current input and past history of inputs.  “State” embodies all the information.
ENGIN112 L20: Sequential Circuits: Flip flops October 20, 2003 ENGIN 112 Intro to Electrical and Computer Engineering Lecture 20 Sequential Circuits: Flip.
EECC341 - Shaaban #1 Lec # 14 Winter Clocked Synchronous State-Machines Such machines have the characteristics: –Sequential circuits designed.
CHAPTER 3 Digital Logic Structures
CS 151 Digital Systems Design Lecture 20 Sequential Circuits: Flip flops.
Sequential Circuits. 2 Sequential vs. Combinational Combinational Logic:  Output depends only on current input −TV channel selector (0-9) Sequential.
EE 4271 VLSI Design, Fall 2010 Sequential Circuits.
Overview Part 1 - Storage Elements and Sequential Circuit Analysis
Chapter 3: Sequential Logic Circuit EKT 121 / 4 ELEKTRONIK DIGIT 1.
Digital Logic Design CHAPTER 5 Sequential Logic. 2 Sequential Circuits Combinational circuits – The outputs are entirely dependent on the current inputs.
Flip Flops. Clock Signal Sequential logic circuits have memory Output is a function of input and present state Sequential circuits are synchronized by.
Lecture 10 Topics: Sequential circuits Basic concepts Clocks
Digital Computer Design Fundamental
COE 202: Digital Logic Design Sequential Circuits Part 1
Flip Flop
EE2174: Digital Logic and Lab Professor Shiyan Hu Department of Electrical and Computer Engineering Michigan Technological University CHAPTER 9 Sequential.
Synchronous Sequential Logic Part I
Chap 4. Sequential Circuits
Synchronous Sequential Logic Chapter 5. Digital Circuits Sequential Circuits Combinational circuits contains no memory elements the outputs depends.
Chap 4. Sequential Circuits
Company LOGO DKT 122/3 DIGITAL SYSTEM 1 WEEK #12 LATCHES & FLIP-FLOPS.
Topic: Sequential Circuit Course: Logic Design Slide no. 1 Chapter #6: Sequential Logic Design.
Flip Flop Chapter 15 Subject: Digital System Year: 2009.
1 Lecture #11 EGR 277 – Digital Logic Ch. 5 - Synchronous Sequential Logic There are two primary classifications of logic circuits: 1.Combinational logic.
1 COMP541 Sequential Circuits Montek Singh Feb 1, 2007.
Princess Sumaya University
Synchronous Sequential Logic A digital system has combinational logic as well as sequential logic. The latter includes storage elements. feedback path.
EKT 121 / 4 ELEKTRONIK DIGIT I
Synchronous Sequential Logic Part I
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.
Chapter 6 – Digital Electronics – Part 1 1.D (Data) Flip Flops 2.RS (Set-Reset) Flip Flops 3.T Flip Flops 4.JK Flip Flops 5.JKMS Flip Flops Information.
Chapter5: Synchronous Sequential Logic – Part 1
Synchronous Sequential Circuits by Dr. Amin Danial Asham.
 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.
Synchronous Sequential Circuits by Dr. Amin Danial Asham.
Instructor: Alexander Stoytchev CprE 281: Digital Logic.
CHAPTER 11 LATCHES AND FLIP-FLOPS This chapter in the book includes: Objectives Study Guide 11.1Introduction 11.2Set-Reset Latch 11.3Gated D Latch 11.4Edge-Triggered.
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.
LATCHES AND FLIP-FLOPS
Digital Design Lecture 9
CISE204: Design of Digital Systems Lecture 18 : Sequential Circuits
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
Reference: Chapter 5 Sequential Circuits Moris Mano 4th Ediditon
FLIP-FLOPS.
Flip-Flops.
Presentation transcript:

Sequential Circuits

Two primary differences between combinational circuits and sequential circuits –Sequential circuits are synchronous (use a clock) –Sequential circuits have memory (current state)

Clock A series of pulses –Sometimes referred to as a pulse train –Basically, it’s an digital signal just oscillates between 0 and One period Rising edge Falling edge

Clock Clock period is specified in units of time –Seconds, milliseconds, microseconds… Clock frequency is specified in units of frequency – 1/period – pulses per time- unit –Hertz, Megahertz, Gigahertz…

Memory Devices Flip flops –Four basic types SR, D, JK, T –Each type stores 1-bit (two states: 0/1) –Each maintains its current state until a clock pulse arrives i.e. Ignores input lines until a clock pulse reaches the clock input

SR Flip-Flop “Set/Reset” –Two input lines –One clock input line –Two output lines S R C Q Q’ SRQ(t+1)Comments 00Q(t)No change 010Reset to 0 101Set to 1 11?Unspecified Clock symbol means that this flip-flop responds to the rising edge of a clock pulse Characteristic Table Q(t) refers to the current state Q(t+1) refers to the next state

D Flip-Flop “Delay” –One input line –One clock input line –Two output lines D C Q Q’ DQ(t+1)Comments 00Clear to 0 11Set to 1 Clock symbol means that this flip-flop responds to the rising edge of a clock pulse Characteristic Table Q(t+1) refers to the next state

JK Flip-Flop “JK” –Two input lines –One clock input line –Two output lines J K C Q Q’ JKQ(t+1)Comments 00Q(t)No change 010Reset to 0 101Set to 1 11Q’(t)Complemen t Clock symbol means that this flip-flop responds to the rising edge of a clock pulse Characteristic Table Q(t) refers to the current state Q(t+1) refers to the next state

T Flip-Flop “Toggle” –One input line –One clock input line –Two output lines T C Q Q’ TQ(t+1)Comments 0Q(t)No change 1Q’(t)Complemen t Clock symbol means that this flip-flop responds to the rising edge of a clock pulse Characteristic Table Q(t+1) refers to the next state

Edge-Triggering Output of the flip-flop occurs on the edge of a pulse –Rising edge (0 to 1 transition) –Falling edge (1 to 0 transition) Clock symbol means that this flip-flop responds to the rising edge of a clock pulse Clock symbol means that this flip-flop responds to the falling edge of a clock pulse

Edge-Triggering 1 0 positive clock transition output frozen Positive (rising) edge-triggered 1 0 negative clock transitionoutput frozen Negative (falling) edge-triggered

Edge-Triggering Setup time –This is the minimum time that the inputs must remain constant before the edge transition Hold time –This is the amount of time in which the inputs must not change after the edge transition These values are not to interesting from a theoretical point of view but can make or break a circuit in practice

Master-Slave Flip-Flops Two flip-flops of the same type wired together –Master Rising edge triggered Receives inputs from “outside world” Sends outputs to the slave –Slave is falling edge triggered Falling edge triggered Receives inputs from master Sends outputs to the “outside world” This set-up basically creates a more stable flip-flop in terms of set-up and hold times

Master-Slave JK Flip-Flop J K C Q Q’ J K C Q MasterSlave Don’t be overly concerned with this configuration!

Additional Inputs May have… –Preset and Clear inputs which are used to set the flip flop to a predetermined state prior to starting the clock –Initialization

Excitation Tables In performing circuit design using flip- flops we often know the state transition Q(t) → Q(t+1) and need to find the appropriate input values To do so we use an excitation table It’s basically the reverse of the characteristic table

Flip-Flop Excitation Tables SR flip-flop Q(t)Q(t+1)SR 000x x0 D flip-flop Q(t)Q(t+1)D JK flip-flop Q(t)Q(t+1)JK 000x 011x 10x1 11x0 T flip-flop Q(t)Q(t+1)T x – don’t care input value

Sequential Circuits Combination of logic gates, flip-flops (memory elements), and a clock signal The circuit can be described in two parts –The combinational part –The sequential part

The Combinational Part Nothing more than what we’ve been doing so far –Describe outputs in terms of logic gates and flip-flop outputs

The Sequential Part Flip-flop input equations –Describe the inputs to flip-flop elements in terms of logic gates and flip-flop elements

clock x A A’ B B’ y Consider The Circuit DBDB DADA Input(s) Output(s) Flip-flop Input(s)

Describe The Circuit Flip-flop input equations: –D A = Ax + Bx –D B = A’x –Note that the input(s) to the flip-flop also determines its next-state based on its characteristic table Output equation –y = Ax’ + Bx’

State Table Sequential circuits are described in terms of time –Since they have a memory and a clock –At any give time (relative to the clock) we can describe the internal state (values in flip-flops) of a sequential circuit The state table describes outputs and next states as functions of inputs and current states –It’s nothing more than a truth table

State Table Present State (time t) InputNext State (time t+1) Output ABxDADA DBDB y D A = Ax + Bx D B = A’x Flip-flop Equation(s) y = Ax’ + Bx’ Output Equation(s) State Table

State Diagram Graphical representation of the state table –States are represented by circles Value inside the circle represents the contents of flip-flops –Transitions between states are represented by arcs between circles Values on the arcs represent the inputs that cause the transition and, possibly, the outputs as a result of the transition

State Diagram 0/0 0/1 1/0 0/1 1/0

State Tables/Diagrams Represent the same information Are derivable from one another They exist solely to support design and understanding of sequential circuit behavior One form may be more suitable for a given task than the other

Designing a Circuit The goal of circuit design is to convert a specification (a bunch of words) into a circuit –No different than software development! Consider this example from the book –Design a circuit that counts modulo 4 every time it receives a 1 on the input line

State Diagram X = 0 X = 1

State Table Present State (time t) InputNext State (time t+1) ABxAB

Flip-Flop Usage We know we need 2 flip-flops since the counter must count modulo 4 (2 bits) We can choose any type we want –D, T, SR, JK –By looking at the excitation table for the chosen type we can create flip-flop equations

JK Flip-Flop Based Design Present State (time t) InputNext State (time t+1) Flip-Flop Inputs ABxABJAJA KAKA JBJB KBKB x0x x1x xx xx x00x 10111x01x 11011x0x x1x1 JK flip-flop Q(t)Q(t+1)JK 000x 011x 10x1 11x0 JK Excitation Table State Table Excitation Table

Simplification Need to specify combination circuits for –J A input –K A input –J B input –K B input Use 3-variable K-maps –One for each required input –Map/simplify the “Flip-Flop Input” columns of the table

K-Map Simplification xxxx xx 101xx xx10 1xx xxxx A BxBx A BxBx A BxBx A BxBx JAJA KAKA JBJB KBKB

Draw The Logic Gates A B x clock

Homework Pages –Problems 1-8, 1-9, 1-10, 1-11, 1-12, 1-13, 1-15, 1-16 Due next lecture

Exam #1 Chapters 1 and 3 –Binary number representations –2’s complement arithmetic –Boolean logic Axioms K-maps –Flip-flops State tables, state diagrams –Circuit design Closed book, closed notes – I’ll give you all you need