Lecture 16 Logistics Last lecture Today HW5 out, due next wednesday

Slides:



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

1 Lecture 14 Memory storage elements  Latches  Flip-flops State Diagrams.
ECE 331 – Digital System Design Latches and Flip-Flops (Lecture #17) The slides included herein were taken from the materials accompanying Fundamentals.
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.
Sequential Circuits. 2 Sequential vs. Combinational Combinational Logic:  Output depends only on current input −TV channel selector (0-9) Sequential.
Contemporary Logic Design Sequential Logic © R.H. Katz Transparency No Chapter #6: Sequential Logic Design Sequential Switching Networks.
1 CSE370, Lecture 14 Lecture 14 u Logistics n Midterm 1: Average 90/100. Well done! n Midterm solutions online n HW5 due date delayed until this Friday.
Flip Flops. Clock Signal Sequential logic circuits have memory Output is a function of input and present state Sequential circuits are synchronized by.
COE 202: Digital Logic Design Sequential Circuits Part 1
1 CSE370, Lecture 15 Lecture 15 u Logistics n HW5 due this Friday n HW6 out today, due Friday Feb 20 n I will be away Friday, so no office hour n Bruce.
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.
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.
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)
Sequential logic circuits First Class 1Dr. AMMAR ABDUL-HAMED KHADER.
Digital Design: Sequential Logic Principles
CSE 140 Lecture 8 Sequential Networks
Digital Design - Sequential Logic Design
LATCHES AND FLIP-FLOPS
ECEN 248: INTRODUCTION TO DIGITAL SYSTEMS DESIGN
Lab 08: SR Flip Flop Fundamentals:
LATCHED, FLIP-FLOPS,AND TIMERS
Chapter #6: Sequential Logic Design
ECE 3130 – Digital Electronics and Design
Lecture 8 Dr. Nermi Hamza.
Flip-FLops and Latches
Prof. Hsien-Hsin Sean Lee
Flip Flops.
Digital Design Lecture 9
Flip-Flop.
6. Sequential circuits (v2)
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-FLops and Latches
ECE Digital logic Lecture 16: Synchronous Sequential Logic
Flip-FLops and Latches
Yee-Wing Hsieh Steve Jacobs
Digital Logic Design Sequential Circuits (Chapter 6)
Sequential logic circuits
LECTURE 15 – DIGITAL ELECTRONICS
CS Fall 2005 – Lec. #5 – Sequential Logic - 1
COMP541 Sequential Circuits
Elec 2607 Digital Switching Circuits
Flip-FLops and Latches
Flip-FLops and Latches
触发器 Flip-Flops 刘鹏 浙江大学信息与电子工程学院 March 27, 2018
Synchronous Sequential Circuits
Instructor: Alexander Stoytchev
CSE 370 – Winter Sequential Logic - 1
Lecture 15 Logistics Last lecture Today HW4 is due today
Lecture 16 Logistics Last lecture Today HW5 out, due next wednesday
Instructor: Alexander Stoytchev
CSE 370 – Winter Sequential Logic-2 - 1
Lecture 17 Logistics Last lecture Today HW5 due on Wednesday
CSE 370 – Winter Sequential Logic-2 - 1
1) Latched, initial state Q =1
FLIP-FLOPS.
Synchronous sequential
Synchronous Sequential
Flip-Flops.
Flip Flops Unit-4.
Lecture 19 Logistics Last lecture Today
Lecture 17 Logistics Last lecture Today HW5 due on Wednesday
Flip-FLops and Latches
SEQUENTIAL CIRCUITS __________________________________________________
Sequential Digital Circuits
FLIPFLOPS.
Presentation transcript:

Lecture 16 Logistics Last lecture Today HW5 out, due next wednesday Finished combinational logic Introduction to sequential logic and systems Today Memory storage elements Latches Flip-flops State Diagrams 16

Example from last time Door combination lock Enter three numbers in sequence and the door opens When one number is entered, press ‘enter’ If there is an error the lock must be reset After the door opens the lock must be reset Inputs: Sequence of numbers, reset, enter Outputs: Door open/close Memory: Must remember the combination Memory: Must remember which state we are in 16

The “WHY” slide Memory storage elements State diagrams In order to do fun problems like the door combination lock, we must know the building blocks (like how you had to learn AND and OR before you could do functional things). Be patient --- once you know these elements, you can build a lot of meaningful functions State diagrams For combinational logic, truth table was an invaluable visualization tool for a function. For sequential logic, state diagram serves as a way to visualize a function. 16

The D latch: store it and look it up Output depends on clock Clock high: Input passes to output Clock low: Latch holds its output Latch are level sensitive and transparent D Q CLK Input Output Output CLK D Qlatch 16

How do we store info like the latch? Two inverters hold a bit As long as power is applied Storing a new memory Temporarily break the feedback path "1" "0" "stored bit" "remember" "load" "data" "stored bit" 16

The D flip-flop Input sampled at clock edge Rising edge: Input passes to output Otherwise: Flip-flop holds its output Flip-flops are rising-edge triggered or falling-edge triggered D Q CLK Input Output Output CLK D Qff 16

How do we make a D flip flop? Q D Clk W Y X Z Q’ Edge triggering is difficult You can do this at home: Label the internal nodes Draw a timing diagram Start with Clk=1 16

Terminology & notation D Q CLK Input Output Rising-edge triggered D flip-flop Positive D latch Input D Q Output Q Output CLK Falling-edge triggered D flip-flop Negative D latch D Q CLK Input Output Input D Q Output Output Q Output CLK 16

Latches versus flip-flops D Q CLK CLK D Qff Qlatch D Q CLK behavior is the same unless input changes while the clock is high 16

T flip-flop Full name: Toggle flip-flop Output toggles when input is asserted If T=1, then Q  Q' when CLK  If T=0, then Q  Q when CLK  Input Q Input(t) Q(t) Q(t + t) T Q > 1 1 1 1 CLK 1 1 16

The SR latch Cross-coupled NOR gates Can set (S=1, R=0) or reset (R=1, S=0) the output S R Q 0 0 hold 0 1 0 1 0 1 1 1 disallow R Q S Reset Set 16

SR latch behavior Truth table and timing NOR output is 1 Only when both inputs are 0 SR latch behavior Truth table and timing S R Q 0 0 hold 0 1 0 1 0 1 1 1 disallow R S Q Q' Reset Hold Set Reset Set Race 100 R S Q Q' 16

SR latch is glitch sensitive Static 0 hazards can set/reset latch Glitch on S input sets latch Glitch on R input resets latch R Q S Q' 16

The master-slave D Master D latch Slave D latch X Input D Q D Q Output CLK 16

Clear and preset in flip-flops Clear and Preset set flip-flop to a known state Used at startup, reset Clear or Reset to a logic 0 Synchronous: Q=0 when next clock edge arrives Asynchronous: Q=0 when reset is asserted Doesn't wait for clock Quick but dangerous Preset or Set the state to logic 1 Synchronous: Q=1 when next clock edge arrives Asynchronous: Q=1 when reset is asserted 16

State diagrams How do we characterize logic circuits? Combinational circuits: Truth tables Sequential circuits: State diagrams First draw the states States  Unique circuit configurations Second draw the transitions between states Transitions  Changes in state caused by inputs 16

Example: SR latch Begin by drawing the states States  Unique circuit configurations Possible values for feedback (Q, Q') SR=10 SR=00 SR=01 SR=00 SR=10 S R Q 0 0 hold 0 1 0 1 0 1 1 1 disallow Q Q' 0 1 SR=01 Q Q' 1 0 SR=01 SR=10 SR=11 Q Q' 0 0 R S Q Q' SR=11 SR=11 SR=00 SR=11 SR=00 SR=01 SR=10 possible oscillation between states 00 and 11 Q Q' 1 1 16

Observed SR latch behavior The 1–1 state is transitory Either R or S “gets ahead” Latch settles to 0–1 or 1–0 state ambiguously Race condition  non-deterministic transition Disallow (R,S) = (1,1) R S Q Q' SR=00 SR=10 Q Q' 0 1 Q Q' 1 0 SR=01 16