ENGR-43_Lec-05c_Thevenin_AC_Power.pptx 1 Bruce Mayer, PE Engineering-43: Engineering Circuit Analysis Bruce Mayer, PE Licensed.

Slides:



Advertisements
Similar presentations
11/12/2004EE 42 fall 2004 lecture 311 Lecture #31 Flip-Flops, Clocks, Timing Last lecture: –Finite State Machines This lecture: –Digital circuits with.
Advertisements

Sequential Logic ENEL 111. Sequential Logic Circuits So far we have only considered circuits where the output is purely a function of the inputs With.
Sequential Digital Circuits Dr. Costas Kyriacou and Dr. Konstantinos Tatas.
1 Lecture 14 Memory storage elements  Latches  Flip-flops State Diagrams.
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.
ECE C03 Lecture 81 Lecture 8 Memory Elements and Clocking Hai Zhou ECE 303 Advanced Digital Design Spring 2002.
1 Sequential Ckts, Latches and Timing Issues Today: Sequential Circuits, LatchesFirst Hour: Sequential Circuits, Latches –Section of Katz’s Textbook.
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.
Classification of Digital Circuits  Combinational. Output depends only on current input values.  Sequential. Output depends on current input values and.
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 Latches & Flip-flops
1 Lecture 20 Sequential Circuits: Latches. 2 Overview °Circuits require memory to store intermediate data °Sequential circuits use a periodic signal to.
Page 1 Sequential Logic Basic Binary Memory Elements.
Circuits require memory to store intermediate data
Dr. ClincyLecture1 Appendix A – Part 2: Logic Circuits Current State or output of the device is affected by the previous states Circuit Flip Flops New.
EET 1131 Unit 10 Flip-Flops and Registers
EKT 124 / 3 DIGITAL ELEKTRONIC 1
INTRODUCTION TO SEQUENCIAL CIRCUIT
Homework Reading Machine Projects Labs Tokheim Chapter 9.1 – 9.6
ENGIN112 L20: Sequential Circuits: Flip flops October 20, 2003 ENGIN 112 Intro to Electrical and Computer Engineering Lecture 20 Sequential Circuits: Flip.
11/10/2004EE 42 fall 2004 lecture 301 Lecture #30 Finite State Machines Last lecture: –CMOS fabrication –Clocked and latched circuits This lecture: –Finite.
CS 151 Digital Systems Design Lecture 20 Sequential Circuits: Flip flops.
11/15/2004EE 42 fall 2004 lecture 321 Lecture #32 Registers, counters etc. Last lecture: –Digital circuits with feedback –Clocks –Flip-Flops This Lecture:
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.
Digital Logic Design CHAPTER 5 Sequential Logic. 2 Sequential Circuits Combinational circuits – The outputs are entirely dependent on the current inputs.
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.
ETE Digital Electronics Latches and Flip-Flops [Lecture:12] Instructor: Sajib Roy Lecturer, ETE, ULAB.
SEQUENTIAL CIRCUITS Introduction
Digital Computer Design Fundamental
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.
ENGR-43_Lec-05c_Thevenin_AC_Power.pptx 1 Bruce Mayer, PE Engineering-43: Engineering Circuit Analysis Bruce Mayer, PE Licensed.
Chap 4. Sequential Circuits
Unit 11 Latches and Flip-Flops Fundamentals of Logic Design By Roth and Kinney.
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.
Synchronous Sequential Circuits by Dr. Amin Danial Asham.
Instructor: Alexander Stoytchev CprE 281: Digital Logic.
Chapter 10 Flip-Flops and Registers 1. Objectives You should be able to: Explain the internal circuit operation of S-R and gated S-R flip-flops. Explain.
ECE C03 Lecture 81 Lecture 8 Memory Elements and Clocking Hai Zhou ECE 303 Advanced Digital Design Spring 2002.
Synchronous Sequential Logic A digital system has combinational logic as well as sequential logic. The latter includes storage elements. feedback path.
Synchronous Sequential Logic Part I
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.
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.
Dept. of Electrical Engineering
7. Latches and Flip-Flops Digital Computer Logic.
Flip-Flop Flip-flops Objectives Upon completion of this chapter, you will be able to :  Construct and analyze the operation of a latch flip-flop made.
1 Homework Reading –Tokheim Chapter 9.1 – 9.6 Machine Projects –Continue on mp3 Labs –Continue in labs with your assigned section.
Sequential logic circuits First Class 1Dr. AMMAR ABDUL-HAMED KHADER.
ECEN 248: INTRODUCTION TO DIGITAL SYSTEMS DESIGN
Chapter #6: Sequential Logic Design
Flip Flops.
ECE Digital logic Lecture 16: Synchronous Sequential Logic
LECTURE 15 – DIGITAL ELECTRONICS
CS Fall 2005 – Lec. #5 – Sequential Logic - 1
CSE 370 – Winter Sequential Logic-2 - 1
触发器 Flip-Flops 刘鹏 浙江大学信息与电子工程学院 March 27, 2018
CSE 370 – Winter Sequential Logic - 1
FLIP-FLOPS.
Synchronous sequential
Flip-Flops.
ECE 352 Digital System Fundamentals
Presentation transcript:

ENGR-43_Lec-05c_Thevenin_AC_Power.pptx 1 Bruce Mayer, PE Engineering-43: Engineering Circuit Analysis Bruce Mayer, PE Licensed Electrical & Mechanical Engineer Engineering 43 Sequential (FlipFlop) Logic

ENGR-43_Lec-05c_Thevenin_AC_Power.pptx 2 Bruce Mayer, PE Engineering-43: Engineering Circuit Analysis But First… WhiteBoard Work  For the Truth Table Shown at right Construct the Karnaugh Map Write The Minimized Function Q(A,B,C,D) Draw the Logic Circuit  Notice “1’s” in Rows 1, 5, 9, 13, 14, 15 –Need only put “1’s” in these locations; other cells Assumed to be Zero Row ABCDQ

ENGR-43_Lec-05c_Thevenin_AC_Power.pptx 3 Bruce Mayer, PE Engineering-43: Engineering Circuit Analysis Blank Map (NonStretching)  Can TYPE in these Maps AB\CD AB\CD A’B’C’D’A’B’C’DA’B’CDA’B’CD’ 01 A’BC’D’A’BC’DA’BCDA’BCD’ 11 ABC’D’ABC’DABCDABCD’ 10 AB’C’D’AB’C’DAB’CDAB’CD’

ENGR-43_Lec-05c_Thevenin_AC_Power.pptx 4 Bruce Mayer, PE Engineering-43: Engineering Circuit Analysis Stretchable Blank Map (by Hand)

ENGR-43_Lec-05c_Thevenin_AC_Power.pptx 5 Bruce Mayer, PE Engineering-43: Engineering Circuit Analysis New Subj: NAND Gate Synthesis  Implement Arbitrary SOP Logic Fcn in NAND Gates Only Check that Fcn can be placed in K-Map by putting Expression in CANONICAL form Minimize the K-Map if possible Use Inverter Made from NAND gate if needed (if only Positive InPuts Available) Invert entire Fcn Twice such that DeMorgan to converts the SOP to Nest-of-NANDS Check by Inverting a second time

ENGR-43_Lec-05c_Thevenin_AC_Power.pptx 6 Bruce Mayer, PE Engineering-43: Engineering Circuit Analysis De Morgan’s Laws

ENGR-43_Lec-05c_Thevenin_AC_Power.pptx 7 Bruce Mayer, PE Engineering-43: Engineering Circuit Analysis NAND Gate Synthesis PreReq  Assume that ALL Inputs are available ONLY in the HI, or 1, form.  If 0 needed use NAND-Based inverter: AB

ENGR-43_Lec-05c_Thevenin_AC_Power.pptx 8 Bruce Mayer, PE Engineering-43: Engineering Circuit Analysis More… WhiteBoard Work  Implement This New EXAMPLE Function using ONLY NAND Gates  An Example of NAND-Gate Synthesis NANDS are easier to construct than ANDs, ORs, NORs –NANDs are the preferred gate for logic circuits

ENGR-43_Lec-05c_Thevenin_AC_Power.pptx 9 Bruce Mayer, PE Engineering-43: Engineering Circuit Analysis NAND Synthesis

ENGR-43_Lec-05c_Thevenin_AC_Power.pptx 10 Bruce Mayer, PE Engineering-43: Engineering Circuit Analysis NAND Synthesis

ENGR-43_Lec-05c_Thevenin_AC_Power.pptx 11 Bruce Mayer, PE Engineering-43: Engineering Circuit Analysis “Memory Filled” Logic  The Invert/AND/OR Combinatorial Logic Circuits depended ONLY on the Current Inputs; previous states did Not affect the Current State Combinatorial Logic is MemoryLESS  In SEQUENTIAL Logic the Circuit Output CAN Depend on the Previous condition of the Circuit Sequential Logic is MemoryFUL

ENGR-43_Lec-05c_Thevenin_AC_Power.pptx 12 Bruce Mayer, PE Engineering-43: Engineering Circuit Analysis Sequential Circuit  A sequential circuit consists of a feedback path, and employs some memory elements  [Sequential circuit] = [Combinational logic] + [Memory Elements] Combinational logic Memory elements Combinational outputs Memory outputs External inputs

ENGR-43_Lec-05c_Thevenin_AC_Power.pptx 13 Bruce Mayer, PE Engineering-43: Engineering Circuit Analysis Synchronous vs Asynchronous  Almost all Logic “Chips” Include a Clock  The Clock helps to “Synchronize” the Operation of the Circuits.  The “Clock” is simply a very regular Hi/Lo Pulse train   Logic Forms are divided into two groups: SYNCHRONUS → Depend on Clock Asynchronous → NO Clock-Dependency

ENGR-43_Lec-05c_Thevenin_AC_Power.pptx 14 Bruce Mayer, PE Engineering-43: Engineering Circuit Analysis Asynchronous S-R FlipFlop  Cross-coupled NOR gates Similar to inverter pair, with capability to force Q = 0 ([S,R]=[0,1]) or Q = 1 ([S,R]=[1,0]) R S Q Q' R S Q R S Q R S Q n R S Q Q' ?? 1 1 Reset Set UnDet Memory [R,S] =[0,0] → [R’,S’] =[1,1] NOR → any HI = LO, else Hi

ENGR-43_Lec-05c_Thevenin_AC_Power.pptx 15 Bruce Mayer, PE Engineering-43: Engineering Circuit Analysis NAND based SR FlipFlop  Cross-Coupled NAND gates Similar to inverter pair, with capability to force Q = 0 ([S,R]=[0,1]) or Q = 1 ([S,R]=[1,0]) R' S' QQ Q' S' R' NOR notes  Any HI input → LO output Any HI → LO  All LO inputs → HI output All LO → HI (else HI)  Any LO input → HI output Any LO → HI  All HI inputs → LO output All HI → LO (else LO) NAND notes [R,S] =[0,0] → [R’,S’] =[1,1] NAND → any LO = HI, else Lo

ENGR-43_Lec-05c_Thevenin_AC_Power.pptx 16 Bruce Mayer, PE Engineering-43: Engineering Circuit Analysis State Behavior of SR FlipFlop  Transition (NOT Truth) Table  Sequential (output depends on history when inputs R=0, S=0) but asynchronous R S Q Q' SRQ n-1 Q n X 111X hold reset set not allowed characteristic equation Q n = S∙ R’ + R’∙Q n-1 SETREset NOR: Any “1” forces a “0”

ENGR-43_Lec-05c_Thevenin_AC_Power.pptx 17 Bruce Mayer, PE Engineering-43: Engineering Circuit Analysis NOR SR FlipFlop Timing Reset Hold Set Reset Race R S Q Q’ 100 R S Q Q'  “Races” Produce UnPredictable OutPuts  Any HI input → LO output Any HI → LO  All LO inputs → HI output All LO → HI Q n = R’∙(S + Q n-1 )

ENGR-43_Lec-05c_Thevenin_AC_Power.pptx 18 Bruce Mayer, PE Engineering-43: Engineering Circuit Analysis Clocked SR FlipFlop  Control times when R and S inputs matter Otherwise, the slightest glitch on R or S while enable is low could cause change in value stored Ensure R & S stable before utilized (to avoid transient R=1, S=1) NOR: Any “1” forces a “0”

ENGR-43_Lec-05c_Thevenin_AC_Power.pptx 19 Bruce Mayer, PE Engineering-43: Engineering Circuit Analysis Clocked SR FlipFlops  NOR-NOR Implementation  Truth Table For NOR: any-Hi→LO; ALL-LO→Hi R’S’En’RSQnQn 00011NotAllowed 01010Reset to Set to 1 11x00Q n−1 xx100 x → Don’t Care NOR → any HI = LO, else Hi

ENGR-43_Lec-05c_Thevenin_AC_Power.pptx 20 Bruce Mayer, PE Engineering-43: Engineering Circuit Analysis Clocked SR FlipFlops  AND-NOR Implementation AND: any-0 → 0 NOR: any-1 → 0  Truth Table RSCQnQn 00xQ n−1 011Set to 1 101Reset to 0 111NotAllowed xx0Q n−1 x → Don’t Care Circuit Symbol

ENGR-43_Lec-05c_Thevenin_AC_Power.pptx 21 Bruce Mayer, PE Engineering-43: Engineering Circuit Analysis SR FlipFlop Clock-Overide  Sometimes Need to Set or Reset the FlipFlop withOUT Regard to the Clock  Note the position of Pr & Cl on the 3 rd -Stage ORs (any Hi→Hi) Ensures Pr & Cl OverRide R, S, & C OR: Any “1” forces a “1” (toggle armed)

ENGR-43_Lec-05c_Thevenin_AC_Power.pptx 22 Bruce Mayer, PE Engineering-43: Engineering Circuit Analysis Edge Triggered D FlipFlop  sensitive to inputs only near edge of clock signal (not while steady ) Q D Clk=1 R S 0 D’ 0 D Q’ holds D' when clock goes low holds D when clock goes low NOR: Any “1” forces a “0” (toggle armed)

ENGR-43_Lec-05c_Thevenin_AC_Power.pptx 23 Bruce Mayer, PE Engineering-43: Engineering Circuit Analysis Edge-Triggered FlipFlop Flavors Edge-Triggered FlipFlop Flavors  POSITIVE edge-triggered flip-flops Inputs sampled on RISING edge; outputs change just after the RISING edge  NEGATIVE edge-triggered flip-flops Inputs sampled on falling edge; outputs change just after the falling edge positive edge-triggered FF negative edge-triggered FF D CLK Qpos Qpos' Qneg Qneg' 100  D=0  Reset  D=1  Set

ENGR-43_Lec-05c_Thevenin_AC_Power.pptx 24 Bruce Mayer, PE Engineering-43: Engineering Circuit Analysis Edge Triggered D FlipFlop  4-NAND, 1-NOT implementation  Truth Table for All Postive-Going Edge D-FF’s NAND: –any LO → Hi –All HI → LO CLKDQnQn 0xQ n−1 1x ↑00 ↑11 NAND → any LO = HI, else Lo

ENGR-43_Lec-05c_Thevenin_AC_Power.pptx 25 Bruce Mayer, PE Engineering-43: Engineering Circuit Analysis Edge Triggered JK FlipFlop  A “Toggling” Flip Flop Under a certain Control-Set: Q → Q’ –Notice that Q does NOT go HI-for-sure or LO-for-sure, and it does NOT remain STEADY  A NAND Nest: Circuit Symbol

ENGR-43_Lec-05c_Thevenin_AC_Power.pptx 26 Bruce Mayer, PE Engineering-43: Engineering Circuit Analysis JK FlipFlop Toggle TruthTable  The Simplified Ckt  Note that the outputs feed back to the enabling NAND gates. This is what gives the toggling action when J=K=1  ReCall NAND Any LO → Hi ALL Hi → LO CJKQnQn Notes 0xxQ n−1 No Chg 1xxQ n−1 No Chg ↓00Q n−1 No Chg ↓010Reset to 0 ↓101Set to 1 ↓11Q’ n−1 TOGGLE

ENGR-43_Lec-05c_Thevenin_AC_Power.pptx 27 Bruce Mayer, PE Engineering-43: Engineering Circuit Analysis Cascading FF → Shift Register  Serial-in/Parallel-out Shift register New value goes into first stage While previous value of 1 st stg goes into 2 nd stg The Q N can be SAMPLED any time CLK IN Q0Q1 DQDQOUT

ENGR-43_Lec-05c_Thevenin_AC_Power.pptx 28 Bruce Mayer, PE Engineering-43: Engineering Circuit Analysis Example: Eliminate Inconsistency DQ DQ Q0 Clock Q1 Async Input Clocked Synchronous System INput is asynchronous and fans out to D0 and D1 one FF catches the signal, one does not inconsistent state may be reached! In Q0 Q1 CLK DQ DQ Q0 Clock Q1 Async Input DQ Synchronizer Want to Send SAME Input Value to TWO Places Using Q0 & Q1

ENGR-43_Lec-05c_Thevenin_AC_Power.pptx 29 Bruce Mayer, PE Engineering-43: Engineering Circuit Analysis FlipFlops Summarized  Development of D-FF Level-sensitive used in custom integrated circuits –can be made with 4 pairs of gates –Usually follows multiphase non-overlapping clock discipline Edge-triggered used in programmable logic devices –Good choice for data storage register

ENGR-43_Lec-05c_Thevenin_AC_Power.pptx 30 Bruce Mayer, PE Engineering-43: Engineering Circuit Analysis FlipFlops Summarized  Historically the J-K FlipFlop was popular but now never used Similar to R-S but with 1-1 being used to toggle output (complement state) Same Operation Can always be implemented using D FlipFlops  Preset and Clear inputs are highly desirable on FlipFlops Used at start-up or to reset system to a known state

ENGR-43_Lec-05c_Thevenin_AC_Power.pptx 31 Bruce Mayer, PE Engineering-43: Engineering Circuit Analysis FlipFlops Summarized  Reset (set state to 0)  R Synchronous: D new = R' D old –Transition only when next clock edge arrives Asynchronous: doesn't wait for clock –quick but dangerous by “Race” Possibilities  Preset or Set (set state to 1)  S Synchronous: D new = D old + S –Transition only when next clock edge arrives Asynchronous: doesn't wait for clock –quick but dangerous by “Race” Possibilities

ENGR-43_Lec-05c_Thevenin_AC_Power.pptx 32 Bruce Mayer, PE Engineering-43: Engineering Circuit Analysis WhiteBoard Work  Use Gates and a D-FF to Implement the JK-FF operation CJKQnQn Notes 0xxQ n−1 No Chg 1xxQ n−1 No Chg ↓00Q n−1 No Chg ↓010Reset to 0 ↓101Set to 1 ↓11Q’ n−1 TOGGLE

ENGR-43_Lec-05c_Thevenin_AC_Power.pptx 33 Bruce Mayer, PE Engineering-43: Engineering Circuit Analysis All Done for Today IEEE Gates

ENGR-43_Lec-05c_Thevenin_AC_Power.pptx 34 Bruce Mayer, PE Engineering-43: Engineering Circuit Analysis Bruce Mayer, PE Licensed Electrical & Mechanical Engineer Engineering 43 Appendix Logic Syn

ENGR-43_Lec-05c_Thevenin_AC_Power.pptx 35 Bruce Mayer, PE Engineering-43: Engineering Circuit Analysis

ENGR-43_Lec-05c_Thevenin_AC_Power.pptx 36 Bruce Mayer, PE Engineering-43: Engineering Circuit Analysis

ENGR-43_Lec-05c_Thevenin_AC_Power.pptx 37 Bruce Mayer, PE Engineering-43: Engineering Circuit Analysis NAND Gate Synthesis PreReq  Assume that ALL Inputs are available ONLY in the HI, or 1, form.  If 0 needed use NAND-Based inverter: AB

ENGR-43_Lec-05c_Thevenin_AC_Power.pptx 38 Bruce Mayer, PE Engineering-43: Engineering Circuit Analysis NAND Gate Synthesis  With the expression in SOP form 1.After any needed inversions (using NAND inverter); In the first logic level there are as many logic gates as terms in the SOP expression 2.Each gate corresponds to a SINGLE Term, and has, as inputs, the variables in that term 3.The outputs of the First Logic-Level are ALL inputs to a SINGLE (multi-input if needed) NAND gate

ENGR-43_Lec-05c_Thevenin_AC_Power.pptx 39 Bruce Mayer, PE Engineering-43: Engineering Circuit Analysis F is an ARBITRARY Example as Previously Set by the logic Designer

ENGR-43_Lec-05c_Thevenin_AC_Power.pptx 40 Bruce Mayer, PE Engineering-43: Engineering Circuit Analysis

ENGR-43_Lec-05c_Thevenin_AC_Power.pptx 41 Bruce Mayer, PE Engineering-43: Engineering Circuit Analysis

ENGR-43_Lec-05c_Thevenin_AC_Power.pptx 42 Bruce Mayer, PE Engineering-43: Engineering Circuit Analysis

ENGR-43_Lec-05c_Thevenin_AC_Power.pptx 43 Bruce Mayer, PE Engineering-43: Engineering Circuit Analysis

ENGR-43_Lec-05c_Thevenin_AC_Power.pptx 44 Bruce Mayer, PE Engineering-43: Engineering Circuit Analysis

ENGR-43_Lec-05c_Thevenin_AC_Power.pptx 45 Bruce Mayer, PE Engineering-43: Engineering Circuit Analysis

ENGR-43_Lec-05c_Thevenin_AC_Power.pptx 46 Bruce Mayer, PE Engineering-43: Engineering Circuit Analysis

ENGR-43_Lec-05c_Thevenin_AC_Power.pptx 47 Bruce Mayer, PE Engineering-43: Engineering Circuit Analysis

ENGR-43_Lec-05c_Thevenin_AC_Power.pptx 48 Bruce Mayer, PE Engineering-43: Engineering Circuit Analysis

ENGR-43_Lec-05c_Thevenin_AC_Power.pptx 49 Bruce Mayer, PE Engineering-43: Engineering Circuit Analysis

ENGR-43_Lec-05c_Thevenin_AC_Power.pptx 50 Bruce Mayer, PE Engineering-43: Engineering Circuit Analysis