B0010 Time for Time ENGR xD52 Eric VanWyk Fall 2012.

Slides:



Advertisements
Similar presentations
01 Introduction to Digital Logic
Advertisements

Give qualifications of instructors: DAP
COE 202: Digital Logic Design Sequential Circuits Part 1 Dr. Ahmad Almulhem ahmadsm AT kfupm Phone: Office: Ahmad Almulhem, KFUPM.
Computer Science 210 Computer Organization Clocks and Memory Elements.
Latches CS370 –Spring 2003 Section 4-2 Mano & Kime.
CHAPTER 3 Sequential Logic/ Circuits.  Concept of Sequential Logic  Latch and Flip-flops (FFs)  Shift Registers and Application  Counters (Types,
CS 151 Digital Systems Design Lecture 19 Sequential Circuits: Latches.
CPS3340 COMPUTER ARCHITECTURE Fall Semester, /23/2013 Lecture 7: Computer Clock & Memory Elements Instructor: Ashraf Yaseen DEPARTMENT OF MATH &
1 Kuliah Rangkaian Digital Kuliah 8: Rangkaian Logika Sekuensial Teknik Komputer Universitas Gunadarma.
Digital Logic Design Lecture # 17 University of Tehran.
Fall 2004EE 3563 Digital Systems Design EE 3563 Sequential Logic Design Principles  A sequential logic circuit is one whose outputs depend not only on.
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.
1 Sequential Circuits –Digital circuits that use memory elements as part of their operation –Characterized by feedback path –Outputs depend not only on.
1 EE121 John Wakerly Lecture #8 Sequential Circuits Flip-flops Sequential PALs.
Sequential Logic Computer Organization Ellen Walker Hiram College Figures from Computer Organization and Design 3ed, D.A. Patterson & J.L. Hennessey, Morgan.
Digital Logic Circuits (Part 2) Computer Architecture Computer Architecture.
EET 1131 Unit 10 Flip-Flops and Registers
EKT 124 / 3 DIGITAL ELEKTRONIC 1
+ CS 325: CS Hardware and Software Organization and Architecture Sequential Circuits 1.
B0101 Time for Time ENGR xD52 Eric VanWyk Fall 2012.
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.
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.
CS 151 Digital Systems Design Lecture 20 Sequential Circuits: Flip flops.
Contemporary Logic Design Sequential Logic © R.H. Katz Transparency No Chapter #6: Sequential Logic Design Sequential Switching Networks.
Chapter 3: Sequential Logic Circuit EKT 121 / 4 ELEKTRONIK DIGIT 1.
Flip Flops. Clock Signal Sequential logic circuits have memory Output is a function of input and present state Sequential circuits are synchronized by.
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
B0010 Boolean Logic ENGR xD52 Eric VanWyk Fall 2012.
Flip Flops 3.1 Latches and Flip-Flops 3 ©Paul Godin Created September 2007 Last Edit Aug 2013.
FLIP FLOP By : Pn Siti Nor Diana Ismail CHAPTER 1.
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.
1 COMP541 Sequential Circuits Montek Singh Feb 1, 2012.
SEQUENTIAL LOGIC By Tom Fitch. Types of Circuits Combinational: Gates Combinational: Gates Sequential: Flip-Flops Sequential: Flip-Flops.

Flip Flop Chapter 15 Subject: Digital System Year: 2009.
LECTURE X CH 5 CONTINUED JK and Master Slave Flip Flops.
CEC 220 Digital Circuit Design Latches and Flip-Flops Monday, March 03 CEC 220 Digital Circuit Design Slide 1 of 19.
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
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.
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.
Flip Flops 3.1 Latches and Flip-Flops 3 ©Paul Godin Created September 2007 Last Edit Aug 2013.
74 Combinational Logic Design Process 1. Understand the Problem what is the circuit supposed to do? write down inputs (data, control) and outputs draw.
B0001 Boolean Logic ENGR xD52 Eric VanWyk Fall 2013.
Sequential Logic Circuit Design Eng.Maha Alqubali.
b0000 Zero Day ENGR xD52 Eric VanWyk Fall 2014 Agenda General Awkwardness Basic Orientation Information Course Objectives & Details Eric’s guide to getting.
b0000 Zero Day ENGR xD52 Eric VanWyk Fall 2013 Agenda General Awkwardness Basic Orientation Information Course Objectives & Details VDub‘s guide to getting.
Sequential logic circuits First Class 1Dr. AMMAR ABDUL-HAMED KHADER.
B0101 Time for Time ENGR xD52 Eric VanWyk Fall 2012.
Computer Science 210 Computer Organization
LATCHES AND FLIP-FLOPS
ECEN 248: INTRODUCTION TO DIGITAL SYSTEMS DESIGN
LATCHED, FLIP-FLOPS,AND TIMERS
Flip Flops.
ECE 4110–5110 Digital System Design
CISE204: Design of Digital Systems Lecture 18 : Sequential Circuits
Computer Science 210 Computer Organization
Introduction to Sequential Logic Design
ECE Digital logic Lecture 16: Synchronous Sequential Logic
Sequential logic circuits
Computer Science 210 Computer Organization
Elec 2607 Digital Switching Circuits
FLIP-FLOPS.
Presentation transcript:

b0010 Time for Time ENGR xD52 Eric VanWyk Fall 2012

Acknowledgements Mark L. Chang lecture notes for Computer Architecture (Olin ENGR3410) Patterson & Hennessy: Book & Lecture Notes Patterson’s 1997 course notes (U.C. Berkeley CS 152, 1997) Tom Fountain 2000 course notes (Stanford EE182) Michael Wahl 2000 lecture notes (U. of Siegen CS 3339) Ben Dugan 2001 lecture notes (UW-CSE 378) Professor Scott Hauck lecture notes (UW EE 471) Mark L. Chang lecture notes for Digital Logic (NWU B01) Texas Instruments Data Sheets

Today The ravages of time Latches, Flip Flops

Combinational vs. Sequential Logic Combinational logic no feedback among inputs and outputs outputs are a pure function of the inputs e.g., seat belt light: (Dbelt, Pbelt, Passenger) mapped into (Light) Network implemented from logic gates. The presence of feedback distinguishes between sequential and combinational networks X 1 X 2 X n Logic Network Z 1 Z 2 Z m Logic Circuit Driver_belt Passenger_belt Passenger Seat Belt Light

Circuit Timing Behavior Simple model: gates react after fixed delay ABCDEFABCDEF A B C D E F

Circuit Timing Behavior Simple model: gates react after fixed delay ABCDEFABCDEF A B C D E F

Circuit can temporarily go to incorrect states Hazards/Glitches Copilot Autopilot Request Pilot Autopilot Request Pilot in Charge? Autopilot Engaged A B C CAR PIC PAR A B C AE Must filter out temporary states

Circuit can temporarily go to incorrect states Hazards/Glitches Copilot Autopilot Request Pilot Autopilot Request Pilot in Charge? Autopilot Engaged A B C CAR PIC PAR A B C AE Must filter out temporary states OH NO

9 Safe Sequential Circuits Clocked elements on feedback, perhaps outputs – Clock signal synchronizes operation – Clocked elements hide glitches/hazards Clock X 1 X 2 X n Logic Network Z 1 Z 2 Z m Clock Data Valid Compute Valid Compute

Safe Sequential Circuits Clocked elements on feedback, perhaps outputs – Clock signal synchronizes operation – Clocked elements hide glitches/hazards Clock X 1 X 2 X n Logic Network Z 1 Z 2 Z m Clock Data Stable GLITCHES Stable GLITCHES

“Clocked” Elements Two main categories: – Flip Flops and Latches “Hold on” to state until triggered to update. Many kinds

Vocab! Setup – Required stability before Hold – Required stability after Propagation Delay – Until outputs update

Reinventing the SR Latch “SR” for “Set Reset” Cross-coupled NOR/NAND SRQ Next

Reinventing the SR Latch “SR” for “Set Reset” Cross-coupled NOR/NAND SRQ Next 00Q X

SR Latch Timing S R Q Q ̅

SR Latch Timing S R Q Q ̅

SR Latch Timing S R Q Q ̅

Design Time!

Boards Gated SR latch – Enable is True, S/R behave like a standard SR latch – When Enable is false, S/R have no effect Outputs remain the same Design a Gated D Latch – One Data input instead of Set Reset. – Output follows D input while enabled – When Enable is false, Output holds last value Smallest design? Fastest?

You promised a Flop Confusing vocab – they are similar A latch is typically Enabled – Updates continuously or holds value A Flip Flop is typically Clocked – Updates only at a specific moment All are forms of ‘Bistable Multivibrators’

Master Slave D-Flip Flop Two D-Latches in series with opposite polarity Enable lines Pulse Triggered – Capture on one edge – Display on the other

Edge Triggered D-Flip Flop Functionally similar to Master Slave Edge Triggered, not Pulse – Don’t waste half your clock period! Construction highly process dependent – Can be roughly three SR Latches – Can be “Dynamic Logic” – Learn in VLSI

Edge Triggered D-Flip Flop Always has: – Clk, D, Q May also have: – S, R, ~Q – Set and Reset are asynchronous (ignore clock) Can be used to define initial conditions (e.g. at boot) ClkDQ ↑00 ↑11 OtherXQ

Common Uses In between processing stages “Debounce” inputs – Hide external noise / uncertainty from the inputs Synchronization

Other Flops Ternary: Flip-Flap-Flop. T Flip Flop – Output toggles if input “T” is high – Stays the same if low – Good for cutting frequency in half JK Flip Flop – Clocked SR flip flop that also supports toggling

Final Board Create a T Flip Flop from an D Flip Flop Create 16x frequency divider from T Flip Flops – 10x? Design an Elevator Controller – Start with a two story building – What Inputs? – What Outputs? – What Memory? – Don’t worry if you don’t finish TFF DFF ??

TFF (no input T)

TFF (with T input)

Divide by 16

Divide by 10 Divide by 5 followed by divide by 2 Single pulse runs through the 4 flip flops:

Edge Triggered D-Flip Flop

Elevator Request Floor 1, Request Floor 2, At Floor 1, At Floor 2 Moving, Direction

Possible Circuit?