CSE 140 Lecture 8 Sequential Networks

Slides:



Advertisements
Similar presentations
CS 140 Lecture 10 Sequential Networks: Implementation Professor CK Cheng CSE Dept. UC San Diego 1.
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.
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.
Circuits require memory to store intermediate data
Digital Logic Design Brief introduction to Sequential Circuits and Latches.
CS 140 Lecture 7 Professor CK Cheng 4/23/02. Part II. Sequential Network (Ch ) 1.Flip-flops SR, D, T, JK, 2.SpecificationState Table 3.Implementation.
CSE 140 Lecture 8 Sequential Networks Professor CK Cheng CSE Dept. UC San Diego 1.
CS 140 Lecture 8 Sequential Networks Professor CK Cheng CSE Dept. UC San Diego.
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.
CS 140 Lecture 8 Professor CK Cheng 10/22/02. Part II. Sequential Network 1.Flip-flops SR, D, T, JK, State Table Characteristic Eq. Q(t+1) = f(x(t), Q(t)).
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.
Components used in the the Project J-K Flip Flop Switch Power Alternator 7-Segment Display Coded Decimal (BCD) Display.
Lecture 10 Topics: Sequential circuits Basic concepts Clocks
Lecture 7: Sequential Networks CSE 140: Components and Design Techniques for Digital Systems Fall 2014 CK Cheng Dept. of Computer Science and Engineering.

Sahar Mosleh PageCalifornia State University San Marcos 1 More on Flip Flop State Table and State Diagram.
Lecture 5. Sequential Logic 1 Prof. Taeweon Suh Computer Science Education Korea University 2010 R&E Computer System Education & Research.
CSE 140: Components and Design Techniques for Digital Systems Lecture 7: Sequential Networks CK Cheng Dept. of Computer Science and Engineering University.
CSE 140: Components and Design Techniques for Digital Systems Lecture 9: Sequential Networks: Implementation CK Cheng Dept. of Computer Science and Engineering.
ECE 331 – Digital System Design Introduction to Sequential Circuits and Latches (Lecture #16)
Sequential logic circuits First Class 1Dr. AMMAR ABDUL-HAMED KHADER.
CS1103 Arunima Shukla Asim Marchant Urja Kantharia Harsh kosambia Digital Electronics Mini Project.
Digital Design: Sequential Logic Principles
Lecture 4. Sequential Logic #1
Lecture 7: Sequential Networks
Sequential Networks and Finite State Machines
LATCHED, FLIP-FLOPS,AND TIMERS
Chapter #6: Sequential Logic Design
Lecture 6: Universal Gates
Lecture 8 Dr. Nermi Hamza.
Flip-FLops and Latches
Flip Flops.
FIGURE 5.1 Block diagram of sequential circuit
Digital Design Lecture 9
Overview Introduction Logic Gates Flip Flops Registers Counters
Flip Flops.
CISE204: Design of Digital Systems Lecture 18 : Sequential Circuits
Flip-FLops and Latches
CSE 140 MT 2 Review By Daniel Knapp.
Introduction to Sequential Logic Design
ECE Digital logic Lecture 16: Synchronous Sequential Logic
Chapter 11 Sequential Circuits.
Flip-FLops and Latches
Digital Logic Design Sequential Circuits (Chapter 6)
Sequential logic circuits
Sequential Networks and Finite State Machines
Chapter 6 -- Introduction to Sequential Devices
Lecture 7: Sequential Networks
Flip-FLops and Latches
Flip-FLops and Latches
CSE 140 Lecture 10 Sequential Networks: Implementation
CSE 140: Components and Design Techniques for Digital Systems
Lecture 16 Logistics Last lecture Today HW5 out, due next wednesday
Sequential Circuits: Latches
Lecture 6: Universal Gates
Reference: Chapter 5 Sequential Circuits Moris Mano 4th Ediditon
Lecture 16 Logistics Last lecture Today HW5 out, due next wednesday
CS 140 Lecture 6: Other Types of Gates
Flip-Flops.
CSC3050 – Computer Architecture
CSE 140 Lecture 9 Sequential Networks
Flip-FLops and Latches
SEQUENTIAL CIRCUITS __________________________________________________
Sequential Digital Circuits
Week 11 Flip flop & Latches.
FLIPFLOPS.
Lecture 3: Timing & Sequential Circuits
Presentation transcript:

CSE 140 Lecture 8 Sequential Networks Professor CK Cheng CSE Dept. UC San Diego

Part II. Sequential Networks (Ch. 3) Memory / Time steps si xi yi yi=fi(St,X) sit+1=gi(St,X) Clock A combinational logic cannot have some sort of feedback loop where the output of a logic is also the input of it. A sequential network on the other hand can have this feature. Memory: Flip flops Specification: Finite State Machines Implementation: Excitation Tables

iClicker Sequential Network vs. Combinational Logic: A. Combinational logic can replace any sequential network to realize the same function. B. Sequential network uses the same set of logic gates as combinational logic. C. Sequential network can implement a CPU. D. Sequential network requires a precise clock for its timing. E. Most of the above.

Memory Devices Memory Storage Latches Flip-Flops SR, D, T, JK State Tables Characteristic Expressions

Memory Storage: Capacitive Loads Fundamental building block of state elements Two outputs: Q, Q No inputs

Capacitive Loads Consider the two possible cases: Q = 0: then Q’ = 1 and Q = 0 (consistent) Q = 1: then Q’ = 0 and Q = 1 (consistent) Bistable circuit stores 1 bit of state in the state variable, Q (or Q’ ) But there are no inputs to control the state

iClicker Given a memory component out of a loop of inverters, the number of inverters has to be A. Even B. Odd

SR (Set/Reset) Latch SR Latch Consider the four possible cases:

SR Latch Analysis S = 1, R = 0: then Q = 1 and Q = 0

SR Latch Analysis S = 1, R = 0: then Q = 1 and Q = 0

SR Latch Analysis S = 0, R = 0: then Q = Qprev S = 1, R = 1: then Q = 0 and Q = 0

y S y = (S+Q)’ Q Q = (R+y)’ R

Flip-flop Components SR F-F (Set-Reset) y S R Q Inputs: S, R State: (Q, y)

State Q y SR Transition State Diagram 10 Id Q(t) y(t) S R Q(t1) y(t1) Q(t2)y(t2) Q(t3) y(t3) 0 0 0 0 0 1 1 0 0 1 1 1 0 0 0 1 0 1 0 1 0 1 2 0 0 1 0 1 0 1 0 1 0 3 0 0 1 1 0 0 0 0 0 0 4 0 1 0 0 0 1 0 1 0 1 5 0 1 0 1 0 1 0 1 0 1 6 0 1 1 0 0 0 1 0 1 0 7 0 1 1 1 0 0 0 0 0 0 8 1 0 0 0 1 0 1 0 1 0 9 1 0 0 1 0 0 0 1 0 1 10 1 0 1 0 1 0 1 0 1 0 11 1 0 1 1 0 0 0 0 0 0 12 1 1 0 0 0 0 1 1 0 0 13 1 1 0 1 0 0 0 1 0 1 14 1 1 1 0 0 0 1 0 1 0 15 1 1 1 1 0 0 0 0 0 0 State Q y SR Transition State Diagram 00 01 10 00 10 01 10 10 01 11 10 01 11 10 SR 00 11 01 00 11 00 11

iClicker Should we choose 1 or 2? 1 2 CASES: SR=01, (Q,y) = (0,1) SR = 00 => if (Q,y) = (0,0) or (1,1), the output keeps changing Solutions: 1) SR = (0,0), or 2) SR = (1,1). iClicker Should we choose 1 or 2? 1 2

SR = 00 => if (Q,y) = (0,0) or (1,1), the output keeps changing CASES: SR=01, (Q,y) = (0,1) SR=10, (Q,y) = (1,0) SR=11, (Q,y) = (0,0) SR = 00 => if (Q,y) = (0,0) or (1,1), the output keeps changing Solutions: 1) SR = (0,0), or 2) SR = (1,1). State table SR inputs 00 01 10 11 PS 0 0 0 1 - 1 1 0 1 - Characteristic Expression Q(t+1) = S(t)+R’(t)Q(t) Q(t) Q(t+1) NS (next state)

SR Latch Analysis S = 0, R = 0: then Q = Qprev and Q = Qprev (memory!) S = 1, R = 1: then Q = 0 and Q = 0 (invalid state: Q ≠ NOT Q)

SR Latch Symbol SR stands for Set/Reset Latch Stores one bit of state (Q) Control what value is being stored with S, R inputs Set: Make the output 1 (S = 1, R = 0, Q = 1) Reset: Make the output 0 (S = 0, R = 1, Q = 0) Must do something to avoid invalid state (when S = R = 1)

D Latch Two inputs: CLK, D Function Avoids invalid case when Q ≠ NOT Q CLK: controls when the output changes D (the data input): controls what the output changes to Function When CLK = 1, D passes through to Q (the latch is transparent) When CLK = 0, Q holds its previous value (the latch is opaque) Avoids invalid case when Q ≠ NOT Q

D Latch Internal Circuit

D Latch Internal Circuit

D Flip-Flop Two inputs: CLK, D Function The flip-flop “samples” D on the rising edge of CLK When CLK rises from 0 to 1, D passes through to Q Otherwise, Q holds its previous value Q changes only on the rising edge of CLK A flip-flop is called an edge-triggered device because it is activated on the clock edge

D Flip-Flop Internal Circuit Two back-to-back latches (L1 and L2) controlled by complementary clocks When CLK = 0 L1 is transparent, L2 is opaque D passes through to N1 When CLK = 1 L2 is transparent, L1 is opaque N1 passes through to Q Thus, on the edge of the clock (when CLK rises from 0 1) D passes through to Q

D Flip-Flop vs. D Latch

D Flip-Flop vs. D Latch

Latch and Flip-flops (two latches) Latch can be considered as a door CLK = 0, door is shut CLK = 1, door is unlocked A flip-flop is a two door entrance CLK = 1 CLK = 0 CLK = 1

D Flip-Flop (Delay) Characteristic Expression Q(t+1) = D(t) Q D CLK Q’ Id D Q(t) Q(t+1) 0 0 0 0 1 0 1 0 2 1 0 1 3 1 1 1 Q D CLK Q’ State table Characteristic Expression Q(t+1) = D(t) D PS 0 1 0 0 1 1 0 1 NS= Q(t+1)

iClicker Can D flip-flip serve as a memory component? Yes No

JK F-F State table Q J 00 01 10 11 CLK 0 0 0 1 ? Q’ 1 1 0 1 ? K Q(t+1) PS 00 01 10 11 CLK 0 0 0 1 ? 1 1 0 1 ? Q’ K Q(t+1)

JK F-F Characteristic Expression Q(t+1) = Q(t)K’(t)+Q’(t)J(t) State table J Q JK PS 00 01 10 11 CLK 0 0 0 1 1 1 1 0 1 0 Q’ K Q(t+1) Characteristic Expression Q(t+1) = Q(t)K’(t)+Q’(t)J(t)

T Flip-Flop (Toggle) Characteristic Expression State table Q T T PS 0 1 CLK 0 0 1 1 1 0 Q’ Q(t+1) Characteristic Expression Q(t+1) = Q’(t)T(t) + Q(t)T’(t)

Using a JK F-F to implement a D and T F-F x J K Q Q’ CLK iClicker What is the function of the above circuit? D F-F T F-F None of the above

Using a JK F-F to implement a D and T F-F Q Q’ T CLK T flip flop