(Sequential Logic Circuit)

Slides:



Advertisements
Similar presentations
CS1104 – Computer Organization
Advertisements

STATE DIAGRAM AND STATE TABLES
State-machine structure (Mealy)
COE 202: Digital Logic Design Sequential Circuits Part 3
Princess Sumaya University
Sequential Circuits1 DIGITAL LOGIC DESIGN by Dr. Fenghui Yao Tennessee State University Department of Computer Science Nashville, TN.
Synchronous Sequential Logic
CS2100 Computer Organisation
CSE 205: D IGITAL L OGIC D ESIGN Prepared By, Dr. Tanzima Hashem, Assistant Professor, CSE, BUET Updated By, Fatema Tuz Zohora, Lecturer, CSE, BUET.
Sequential Design Part II. Output A(t+1) =D A = AX + BX B(t+1) =D B = AX Y = AX + BX.
Sequential Logic Design with Flip-flops
Registers.1. Register  Consists of N Flip-Flops  Stores N bits  Common clock used for all Flip-Flops Shift Register  A register that provides the.
Contemporary Logic Design Sequential Case Studies © R.H. Katz Transparency No Chapter #7: Sequential Logic Case Studies 7.4 Counters.
ECE 301 – Digital Electronics
ECE 301 – Digital Electronics Introduction to Sequential Logic Circuits (aka. Finite State Machines) and FSM Analysis (Lecture #17)
ECE 331 – Digital Systems Design Introduction to Sequential Logic Circuits (aka. Finite State Machines) and FSM Analysis (Lecture #19)
ECE C03 Lecture 91 Lecture 9 Registers, Counters and Shifters Hai Zhou ECE 303 Advanced Digital Design Spring 2002.
Asynchronous and Synchronous Counters
9/15/09 - L22 Sequential Circuit Design Copyright Joanne DeGroat, ECE, OSU1 Sequential Circuit Design Creating a sequential circuit to address a.
MOHD. YAMANI IDRIS/ NOORZAILY MOHAMED NOOR1 Sequential Circuit Design.
L5 – Sequential Circuit Design
1 Chapter 5 Synchronous Sequential Logic 5-1 Sequential Circuits Every digital system is likely to have combinational circuits, most systems encountered.
Rabie A. Ramadan Lecture 2
Synchronous Sequential Logic Part I
Digital Design Lecture 10 Sequential Design. State Reduction Equivalent Circuits –Identical input sequence –Identical output sequence Equivalent States.
Synchronous Sequential Logic Part II
CSCE 211: Digital Logic Design Chin-Tser Huang University of South Carolina.
Chap 4. Sequential Circuits
Chapter 6 Sequential Logic. Combinational circuit outputs depend on present inputs. Sequential circuit outputs depend on present inputs and the state.
(Combinational Logic Circuit)
CENG 241 Digital Design 1 Lecture 10 Amirali Baniasadi
Sequential Circuit Design. Outline  Flip-flop Excitation Tables  Sequential Circuit Design  Design: Example #1  Design: Example #2  Design: Example.
1 Lecture 22 Sequential Circuits Analysis. 2 Combinational vs. Sequential  Combinational Logic Circuit  Output is a function only of the present inputs.
9/15/09 - L21 Sequential Circuit Analaysis Copyright Joanne DeGroat, ECE, OSU1 Sequential Circuit Analysis.
Boolean Algebra and Logic Gates 1 Computer Engineering (Logic Circuits) Lec. # 10 (Sequential Logic Circuit) Dr. Tamer Samy Gaafar Dept. of Computer &
9/15/09 - L24 Other FF TypesCopyright Joanne DeGroat, ECE, OSU1 Other FF Types.
DLD Lecture 26 Finite State Machine Design Procedure.
Digital Circuits State Reduction and Assignment State Reduction reductions on the number of flip-flops and the number of gates a reduction in the.
1 State Reduction Goal: reduce the number of states while keeping the external input-output requirements unchanged. State reduction example: a: input 0.
C HAPTER F IVE S YNCHRONOUS S EQUENTIAL L OGIC 1.
Princess Sumaya University
Lecture 20: Sequential Logic (5)
C HAPTER F IVE S YNCHRONOUS S EQUENTIAL L OGIC 1.
Learning to Design Counters
ENG241 Digital Design Week #7 Sequential Circuits (Part B)
CS2100 Computer Organisation
Week #7 Sequential Circuits (Part B)
Lecture 13 State Machines / ROMs
FIGURE 5.1 Block diagram of sequential circuit
CSCE 211: Digital Logic Design
ECE 301 – Digital Electronics
CSCE 211: Digital Logic Design
FINITE STATE MACHINES (FSMs)
Princess Sumaya University
CENG 241 Digital Design 1 Lecture 11
CSCE 211: Digital Logic Design
CSCE 211: Digital Logic Design
Chapter 5 Synchronous Sequential Logic 5-1 Sequential Circuits
Analysis of Synchronous Sequential Circuits
INTRODUCTION TO LOGIC DESIGN Chapter 5 Synchronous Sequential Logic
MTE 202, Summer 2016 Digital Circuits Dr.-Ing. Saleh Hussin
DESIGN OF SEQUENTIAL CIRCUITS
Chapter5: Synchronous Sequential Logic – Part 4
A B x y A+ B+ z 1 Q X Y Q(t+1) S 1.
FINITE STATE MACHINES.
CSCE 211: Digital Logic Design
Chapter5: Synchronous Sequential Logic – Part 3
A B x y A+ B+ z 1 Q X Y Q(t+1) S 1.
A x A+ Y 1 A B C A+ B+ C+ TA TB Tc 1.
COE 202: Digital Logic Design Sequential Circuits Part 3
Presentation transcript:

(Sequential Logic Circuit) Computer Engineering (Logic Circuits) Lec. # 11 (Sequential Logic Circuit) Dr. Tamer Samy Gaafar Dept. of Computer & Systems Engineering Faculty of Engineering Zagazig University

Course Web Page http://www.tsgaafar.faculty.zu.edu.eg Email: tsgaafar@yahoo.com

Flip-Flop Excitation Tables Present State Next State F.F. Input Q(t) Q(t+1) D 1 Present State Next State F.F. Input Q(t) Q(t+1) J K 1 0 0 (No change) 0 1 (Reset) 1 0 x 1 x x 1 x 0 1 0 (Set) 1 1 (Toggle) 0 1 (Reset) 1 1 (Toggle) 0 0 (No change) 1 0 (Set) Present State Next State F.F. Input Q(t) Q(t+1) S R x 1 Q(t) Q(t+1) T 1 1

Copyright 2009 - Joanne DeGroat, ECE, OSU Mealy and Moore Sequential machines are typically classified as either a Mealy machine or a Moore machine implementation. Moore machine: The outputs of the circuit depend only upon the current state of the circuit. Mealy machine: The outputs of the circuit depend upon both the current state of the circuit and the inputs. Copyright 2009 - Joanne DeGroat, ECE, OSU 9/15/09 - L22 Sequential Circuit Design

Mealy and Moore Models Mealy Moore Present State I/P Next State O/P A B x y 1 Present State I/P Next State O/P A B x y 1 For the same state, the output changes with the input For the same state, the output does not change with the input

Moore State Diagram State / Output 1 0 0 / 0 0 1 / 0 1 1 1 1 / 1 1 0 0 / 0 0 1 / 0 1 1 1 1 / 1 1 0 / 0 1

Sequential Circuit Design Design procedure: Start with circuit specifications – description of circuit behavior. Derive the state table. Perform state reduction if necessary. Perform state assignment. Determine number of flip-flops and label them. Choose the type of flip-flop to be used. Derive circuit excitation and output tables from the state table. Derive circuit output functions and flip-flop input functions. Draw the logic diagram.

Design: Example #1 Given the following state diagram, design the sequential circuit using JK flip-flops. 00 10 11 1 01

Design: Example #1 Circuit state/excitation table, using JK flip-flops. 00 10 11 1 01 JK Flip-flop’s excitation table. 0 X 0 X 1 X X 1 X 0 0 X 1 X 0 X X 0 X 0 X 0 X 1

Design: Example #1 Block diagram. J Q Q' K What are to go in here? Combinational circuit A' A B B' x KA JA KB JB B’ A’ External input(s) CP output(s) (none) J Q Q' K What are to go in here?

Design: Example #1 From state table, get flip-flop input functions. A 1 00 01 11 10 x Bx X JA = B.x' KA = B.x A B 1 00 01 11 10 x Bx X JB = x A B 1 00 01 11 10 x Bx X KB = (A  x)' A B 1 00 01 11 10 x Bx X

Design: Example #1 Flip-flop input functions. JA = B.x' JB = x KA = B.x KB = (A  x)' Logic diagram: x B A CP J Q Q' K

Design: Example #2 Design, using D flip-flops, the circuit based on the state table below. CS1104-12

Design: Example #2 Determine expressions for flip-flop inputs and the circuit output y. A B 1 00 01 11 10 x Bx DA = A.B' + B.x' A B 1 00 01 11 10 x Bx DB = A'.x + B'.x + A.B.x' A B 1 00 01 11 10 x Bx DA(A, B, x) = S m(2,4,5,6) DB(A, B, x) = S m(1,3,5,6) y(A, B, x) = S m(1,5) y = B'.x

Design: Example #2 From derived expressions, draw logic diagram: D Q DA = A.B' + B.x' DB = A'.x + B'.x + A.B.x' y = B'.x D Q Q' A A' B B' y CP x

Design: Example #3 Design with unused states. Given these Derive these CS1104-12

Design: Example #3 From state table, obtain expressions for flip-flop inputs. A C 00 01 11 10 00 01 11 10 x AB Cx 1 B X A C 00 01 11 10 00 01 11 10 x AB Cx 1 B X SA = B.x RA = C.x' B A C 00 01 11 10 00 01 11 10 x AB Cx 1 X A C 00 01 11 10 00 01 11 10 x AB Cx B X 1 RB = B.C + B.x' SB = A'.B'.x CS1104-12

Design: Example #3 From state table, obtain expressions for flip-flop inputs (cont’d). A C 00 01 11 10 00 01 11 10 x AB Cx 1 B X A C 00 01 11 10 00 01 11 10 x AB Cx 1 B X SC = x' RC = x B A C 00 01 11 10 00 01 11 10 x AB Cx 1 X y = A.x CS1104-12

Design: Example #3 From derived expressions, draw logic diagram: A A' SA = B.x SB = A'.B'.x SC = x' RA = C.x' RB = B.C + B.x' RC = x y = A.x A A' B B' y CP x S Q Q' R C Design: Example #3 CS1104-12

Design of Synchronous Counters Counter: a sequential circuit that cycles through a sequence of states. Binary counter: follows the binary sequence. An n-bit binary counter (with n flip-flops) counts from 0 to 2n-1. Example 1: A 3-bit binary counter (using T flip-flops). 001 000 111 010 011 100 110 101 Design of Synchronous Counters CS1104-12

Design of Synchronous Counters 3-bit binary counter (cont’d). A2 A1 A0 1 A2 A1 A0 1 A2 A1 A0 1 TA2 = A1.A0 TA1 = A0 TA0 = 1 Design of Synchronous Counters CS1104-12

Design of Synchronous Counters 3-bit binary counter (cont’d). TA2 = A1.A0 TA1 = A0 TA0 = 1 1 A2 CP T Q A1 A0 Design of Synchronous Counters CS1104-12

Design of Synchronous Counters Example 2: Counter with non-binary sequence: 000  001  010  100  101  110 and back to 000 001 000 010 100 110 101 JA = B JB = C JC = B' KA = B KB = 1 KC = 1 Design of Synchronous Counters CS1104-12

Design of Synchronous Counters Counter with non-binary sequence (cont’d). JA = B JB = C JC = B' KA = B KB = 1 KC = 1 CP A 1 J Q Q' K B C 001 000 010 100 110 101 111 011 Design of Synchronous Counters CS1104-12

Design of Clocked Sequential Circuits Example: Detect 3 or more consecutive 1’s 1 S0 / 0 S1 / 0 State A B S0 0 0 S1 0 1 S2 1 0 S3 1 1 1 S3 / 1 S2 / 0 1 1

Design of Clocked Sequential Circuits Example: Detect 3 or more consecutive 1’s Present State Input Next State Output A B x y 1 S0 / 0 S1 / 0 S3 / 1 S2 / 0 1 0 0 0 0 1 0 1 0 0 1 1 0 0 0 1 1 1 1

Design of Clocked Sequential Circuits Example: Detect 3 or more consecutive 1’s Present State Input Next State Output A B x y 1 Synthesis using D Flip-Flops 0 0 0 0 1 0 1 0 0 1 1 0 0 0 1 1 1 1 A(t+1) = DA (A, B, x) = ∑ (3, 5, 7) B(t+1) = DB (A, B, x) = ∑ (1, 5, 7) y (A, B, x) = ∑ (6, 7)

Design of Clocked Sequential Circuits with D F.F. Example: Detect 3 or more consecutive 1’s Synthesis using D Flip-Flops B 1 A x DA (A, B, x) = ∑ (3, 5, 7) = A x + B x DB (A, B, x) = ∑ (1, 5, 7) = A x + B’ x y (A, B, x) = ∑ (6, 7) = A B B 1 A x B A 1 x

Design of Clocked Sequential Circuits with D F.F. Example: Detect 3 or more consecutive 1’s Synthesis using D Flip-Flops DA = A x + B x DB = A x + B’ x y = A B

Design of Clocked Sequential Circuits with JK F.F. Example: Detect 3 or more consecutive 1’s Present State Input Next State Flip-Flop Inputs A B x JA KA JB KB 1 Synthesis using JK F.F. JA (A, B, x) = ∑ (3) KA (A, B, x) = ∑ (4, 6) JB (A, B, x) = ∑ (1, 5) KB (A, B, x) = ∑ (2, 3, 6) 0 x 1 x x 1 x 0 0 x 1 x x 1 x 0

Design of Clocked Sequential Circuits with JK F.F. Example: Detect 3 or more consecutive 1’s Synthesis using JK Flip-Flops JA = B x KA = x’ JB = x KB = A’ + x’ B 1 A x B x A 1 B 1 x A B x 1 A

Design of Clocked Sequential Circuits with T F.F. Example: Detect 3 or more consecutive 1’s Present State Input Next State F.F. A B x TA TB 1 Synthesis using T Flip-Flops 1 1 TA (A, B, x) = ∑ (3, 4, 6) TB (A, B, x) = ∑ (1, 2, 3, 5, 6)

Design of Clocked Sequential Circuits with T F.F. Example: Detect 3 or more consecutive 1’s Synthesis using T Flip-Flops TA = A x’ + A’ B x TB = A’ B + B  x B 1 A x B 1 A x