Lecture 14: State Tables, Diagrams, Latches, and Flip Flop

Slides:



Advertisements
Similar presentations
Give qualifications of instructors: DAP
Advertisements

CS 151 Digital Systems Design Lecture 19 Sequential Circuits: Latches.
ECE 331 – Digital System Design Latches and Flip-Flops (Lecture #17) The slides included herein were taken from the materials accompanying Fundamentals.
Classification of Digital Circuits  Combinational. Output depends only on current input values.  Sequential. Output depends on current input values and.
Digital Logic Chapter 5 Presented by Prof Tim Johnson
Sequential Circuits1 DIGITAL LOGIC DESIGN by Dr. Fenghui Yao Tennessee State University Department of Computer Science Nashville, TN.
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.
CSCE 211: Digital Logic Design. Chapter 6: Analysis of Sequential Systems.
Circuits require memory to store intermediate data
1 © 2014 B. Wilkinson Modification date: Dec Sequential Logic Circuits – I Flip-Flops A sequential circuit is a logic components whose outputs.
+ CS 325: CS Hardware and Software Organization and Architecture Sequential Circuits 1.
EECC341 - Shaaban #1 Lec # 13 Winter Sequential Logic Circuits Unlike combinational logic circuits, the output of sequential logic circuits.
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.
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.
Digital Computer Design Fundamental
EE2174: Digital Logic and Lab Professor Shiyan Hu Department of Electrical and Computer Engineering Michigan Technological University CHAPTER 9 Sequential.
Synchronous Sequential Circuits by Dr. Amin Danial Asham.
Computer Organization & Programming Chapter 5 Synchronous Components.
Synchronous Sequential Logic A digital system has combinational logic as well as sequential logic. The latter includes storage elements. feedback path.
CO5023 Latches, Flip-Flops and Decoders. Sequential Circuit What does this do? The OUTPUT of a sequential circuit is determined by the current output.
Synchronous Sequential Circuits by Dr. Amin Danial Asham.
CS151 Introduction to Digital Design Chapter 5: Sequential Circuits 5-1 : Sequential Circuit Definition 5-2: Latches 1Created by: Ms.Amany AlSaleh.
Synchronous Sequential Circuits by Dr. Amin Danial Asham.
Chapter 6 Analysis of Sequential Systems Sequential Memory Feedback.
5 - 1 Chapter 6 Analysis of Sequential Systems Chapter 6 Analysis of Sequential Systems 6.0 Introduction  Clocked System Clock A signal that alternates.
CENG 241 Digital Design 1 Lecture 7 Amirali Baniasadi
4–1. BSCS 5 th Semester Introduction Logic diagram: a graphical representation of a circuit –Each type of gate is represented by a specific graphical.
Mealy and Moore Machines Lecture 8 Overview Moore Machines Mealy Machines Sequential Circuits.
Sequential logic circuits First Class 1Dr. AMMAR ABDUL-HAMED KHADER.
Computer Science 210 Computer Organization
2018/5/2 EE 4271 VLSI Design, Fall 2016 Sequential Circuits.
FLIP FLOPS Binary unit capable of storing one bit – 0 or 1
ECEN 248: INTRODUCTION TO DIGITAL SYSTEMS DESIGN
LATCHED, FLIP-FLOPS,AND TIMERS
Chapter #6: Sequential Logic Design
Clocks A clock is a free-running signal with a cycle time.
Computer Organization
Prof. Hsien-Hsin Sean Lee
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.
FIGURE 5.1 Block diagram of sequential circuit
Digital Design Lecture 9
2018/8/29 EE 4271 VLSI Design, Fall 2013 Sequential Circuits.
Synchronous Sequential Circuits
Sequential Circuits Most digital systems like digital watches, digital phones, digital computers, digital traffic light controllers and so on require.
Sequential Logic and Flip Flops
CISE204: Design of Digital Systems Lecture 18 : Sequential Circuits
Flip Flop.
Computer Science 210 Computer Organization
ECE Digital logic Lecture 16: Synchronous Sequential Logic
DIGITAL ELECTRONICS ТHEME 4: SEQUENTIAL LOGIC CIRCUITS. FLIP- FLOPS – ASYNCHRONOUS AND SYNCHRONOUS, R - S, D, T, J - K FLIP- FLOPS. The value of the outputs.
Sequential logic circuits
LECTURE 15 – DIGITAL ELECTRONICS
Chapter 6 -- Introduction to Sequential Devices
Sequential Logic and Flip Flops
Computer Science 210 Computer Organization
Elec 2607 Digital Switching Circuits
ECE 434 Advanced Digital System L04
Synchronous Sequential Circuits
Reference: Chapter 5 Sequential Circuits Moris Mano 4th Ediditon
FLIP-FLOPS.
Synchronous sequential
Synchronous Sequential
Flip-Flops.
Chapter 5 Sequential Circuits.
SEQUENTIAL CIRCUITS __________________________________________________
2019/9/26 EE 4271 VLSI Design, Fall 2012 Sequential Circuits.
Clocks A clock is a free-running signal with a cycle time.
Presentation transcript:

Lecture 14: State Tables, Diagrams, Latches, and Flip Flop EE210: Switching Systems Lecture 14: State Tables, Diagrams, Latches, and Flip Flop Prof. YingLi Tian March 26, 2015 Department of Electrical Engineering The City College of New York The City University of New York (CUNY)

What we learn so far… Basic Design Combinational Systems (have no memory ) Outputs are only function of current input combination Nothing is known about past events Repeating a sequence of inputs always gives the same output sequence Now – Sequential Systems (have memory) Repeating a sequence of inputs can result in an entirely different output sequence

Sequential Systems Combinational logic + memory devices System outputs Memory updates System inputs Memory contents (data & addresses)

Clocked (Synchronous) System Example of clock signal: T – length of one cycle 1/T – frequency ( 200 MHz -- T = 5 nanoseconds) Leading-edge and Trailing-edge Differences of these two signals?

Definitions of State Tables and Diagrams - 1 A State is a particular set of instructions which will be executed in response to the machine's input. A State Table shows, for each input combination and each state, what the output is and what the next state is. A State Diagram (state graph): a graphical representation of the state table. Timing trace: a set of values for the input and output (and sometimes the state or other variables of the system, as well) at consecutive clock times.

Definitions of State Tables and Diagrams - 2 Present State is the current state stored in memory. Next State is what will be stored in memory after this clock transition. Present output: Moore model -- output depends only on the present state of the system (not the present input). Mealy model – output depends on both the present state and the present input.

State Table and Diagram (Moore model) A system with one input x and one output z such that z=1 if and only if x has been 1 for at least three consecutive clock time. q is the present state: present state output possible clock transitions

State Table and Diagram (Mealy Model) A system with one input x and one output z such that z=1 if and only if x = 1 and has been 1 for at least two consecutive clock time. present state output input 1 Wrong in the textbook

Latches A latch is a binary storage device with feedback. SR NOR latch: (Q´) Set Reset S and R are active high P = (S + Q)´ Q = (R + P)´ If S = 0, R= 0, then P = Q´ & Q = P´ (hold) If S = 1, R= 0, then P = 0 & Q = 1 (store a 1 in the latch, on line Q) If S = 0, R= 1, then P = 1 & Q = 0 (Reset the latch to store a 0 on line Q) If S = 1, R= 1, then P = 0 & Q = 0 (the latch is not operated, forbidden state)

SR NAND Latch indicate active low If = 0, = 1, then Q = 1 (store a 1 in the latch, on line Q) If = 1, = 0, then Q = 0 (Reset the latch to store a 0 on line Q) If = 1, = 1 (hold) If = 0, = 0 (forbidden state)

A Gated Latch Adding a second level of AND gates to a SR latch. Enable signal When gate signal = 0 (disable), the latch remains unchanged (hold). When gate signal = 1 (enable), the latch acts at a SR latch.

Flip Flops A flip flop is a clocked binary storage device that stores either a 0 or a 1. Must have a clock signal (trigger). Leading-edge triggered Trailing-edge triggered Types of Flip Flops: D flip flops SR flip flops T flip flops JK flip flops

D (data or delay) Flip Flops D flip flop performs as its output Q looks like a delay of input D. The Q output takes on the state of the D input at the moment of a positive edge at the clock pin (or negative edge if the clock input is active low). It is called the D flip-flop for this reason, since the output takes the value of the D input or data input, and delays it by one clock cycle.

D (data or delay) Flip Flops q* = D The output depends only on the input. The D flip flop behavior table: State and output

A Trailing-edge Triggered D Flip Flop outputs ? ? The changes of D between a clock transition will not change output.

A Leading-edge Triggered D Flip Flop Summary: 1. Q = D (output depends only on the input value at the triggered edges but with a slight delay). 2. The output will not change if the input D changes between a clock period (non triggered edge part)

Announcement HW5 is due today, HW6 is out today, due on 3/31 Read Chapter 6.1, 6.2 Next class (Chapter 6.3): Flip Flops