Instructor: Alexander Stoytchev

Slides:



Advertisements
Similar presentations
Analysis of Clocked Sequential Circuits
Advertisements

Instructor: Alexander Stoytchev CprE 281: Digital Logic.
Instructor: Alexander Stoytchev CprE 281: Digital Logic.
Instructor: Alexander Stoytchev CprE 281: Digital Logic.
Instructor: Alexander Stoytchev CprE 281: Digital Logic.
Instructor: Alexander Stoytchev CprE 281: Digital Logic.
Instructor: Alexander Stoytchev CprE 281: Digital Logic.
Instructor: Alexander Stoytchev CprE 281: Digital Logic.
Figure 8.1. The general form of a sequential circuit.
Instructor: Alexander Stoytchev
Instructor: Alexander Stoytchev
Instructor: Alexander Stoytchev
Introduction to Advanced Digital Design (14 Marks)
Instructor: Alexander Stoytchev
Instructor: Alexander Stoytchev
Instructor: Alexander Stoytchev
FIGURE 5.1 Block diagram of sequential circuit
Digital Design Lecture 9
Instructor: Alexander Stoytchev
Instructor: Alexander Stoytchev
Instructor: Alexander Stoytchev
Instructor: Alexander Stoytchev
Instructor: Alexander Stoytchev
Instructor: Alexander Stoytchev
Instructor: Alexander Stoytchev
Instructor: Alexander Stoytchev
Instructor: Alexander Stoytchev
Instructor: Alexander Stoytchev
Instructor: Alexander Stoytchev
Instructor: Alexander Stoytchev
Instructor: Alexander Stoytchev
Instructor: Alexander Stoytchev
Instructor: Alexander Stoytchev
Instructor: Alexander Stoytchev
Instructor: Alexander Stoytchev
Instructor: Alexander Stoytchev
Instructor: Alexander Stoytchev
Instructor: Alexander Stoytchev
Instructor: Alexander Stoytchev
Instructor: Alexander Stoytchev
Instructor: Alexander Stoytchev
Instructor: Alexander Stoytchev
Instructor: Alexander Stoytchev
Instructor: Alexander Stoytchev
Instructor: Alexander Stoytchev
Instructor: Alexander Stoytchev
Instructor: Alexander Stoytchev
Instructor: Alexander Stoytchev
Instructor: Alexander Stoytchev
Instructor: Alexander Stoytchev
Instructor: Alexander Stoytchev
Instructor: Alexander Stoytchev
Instructor: Alexander Stoytchev
Instructor: Alexander Stoytchev
Instructor: Alexander Stoytchev
Instructor: Alexander Stoytchev
Instructor: Alexander Stoytchev
Instructor: Alexander Stoytchev
Instructor: Alexander Stoytchev
Guest Lecture by David Johnston
Instructor: Alexander Stoytchev
Instructor: Alexander Stoytchev
Instructor: Alexander Stoytchev
Instructor: Alexander Stoytchev
Instructor: Alexander Stoytchev
Instructor: Alexander Stoytchev
EGR 2131 Unit 12 Synchronous Sequential Circuits
Instructor: Alexander Stoytchev
Instructor: Alexander Stoytchev
Instructor: Alexander Stoytchev
Presentation transcript:

Instructor: Alexander Stoytchev CprE 281: Digital Logic Instructor: Alexander Stoytchev http://www.ece.iastate.edu/~alexs/classes/

Mealy State Model CprE 281: Digital Logic Iowa State University, Ames, IA Copyright © Alexander Stoytchev

Administrative Stuff Homework 9 is due today

Administrative Stuff Homework 10 is out It is due on Monday Dec 2, 2013

Administrative Stuff Homework 10 is out It is due on Monday Dec 2, 2013

Administrative Stuff Extra Credit Homework #2 is out Posted on the class web page There are 4 problems Due no later than the last lab for this semester Submit your design on paper and demonstrate your circuit to the lab TAs using the boards in the lab.

Administrative Stuff Final Project Posted on the class web page (Labs section) Pick one of the 4 problems and solve it. Your grade will not depend on which project you pick By this Friday you need to select your project number and e-mail that number to your lab TAs

Sample E-mail Hello TAs, I decided to pick problem number x for my final project in CprE 281. Thanks, [your name]

The general form of a synchronous sequential circuit W Combinational Combinational Flip-flops Z circuit circuit Q Clock [ Figure 6.1 from the textbook ]

Moore Type W Combinational Combinational Flip-flops Z circuit circuit Q Clock

Mealy Type W Combinational Combinational Flip-flops Z circuit circuit Q Clock

Sample Problem Implement a 11 detector. In other words, the output should be equal to 1 if two consecutive 1’s have been detected on the input line. The output should become 1 as soon as the second 1 is detected in the input.

Sequences of input and output signals Clock cycle: t 1 2 3 4 5 6 7 8 9 10 w : z [ Figure 6.22 from the textbook ]

Sequences of input and output signals Clock cycle: t 1 2 3 4 5 6 7 8 9 10 w : z input output [ Figure 6.22 from the textbook ]

Sequences of input and output signals Clock cycle: t 1 2 3 4 5 6 7 8 9 10 w : z input output [ Figure 6.22 from the textbook ]

Sequences of input and output signals Clock cycle: t 1 2 3 4 5 6 7 8 9 10 w : z input output [ Figure 6.22 from the textbook ]

Sequences of input and output signals Clock cycle: t 1 2 3 4 5 6 7 8 9 10 w : z input output [ Figure 6.22 from the textbook ]

Sequences of input and output signals Clock cycle: t 1 2 3 4 5 6 7 8 9 10 w : z input output [ Figure 6.22 from the textbook ]

Sequences of input and output signals Clock cycle: t 1 2 3 4 5 6 7 8 9 10 w : z input output [ Figure 6.22 from the textbook ]

Sequences of input and output signals Clock cycle: t 1 2 3 4 5 6 7 8 9 10 w : z input output [ Figure 6.22 from the textbook ]

State diagram of an FSM that realizes the task w = z ¤ 1 B Reset [ Figure 6.23 from the textbook ]

Let’s Do a Simulation input output Clock cycle: t w : z ¤ A w = z 1 B 1 2 3 4 5 6 7 8 9 10 w : z input output A w = z ¤ 1 B Reset

Let’s Do a Simulation input output Clock cycle: t w : z ¤ A w = z 1 B 1 2 3 4 5 6 7 8 9 10 w : z input output A w = z ¤ 1 B Reset

Let’s Do a Simulation input output Clock cycle: t w : z ¤ A w = z 1 B 1 2 3 4 5 6 7 8 9 10 w : z input output A w = z ¤ 1 B w = 0 z = 0 Reset

Let’s Do a Simulation input output Clock cycle: t w : z ¤ A w = z 1 B 1 2 3 4 5 6 7 8 9 10 w : z input output A w = z ¤ 1 B w = 0 z = 0 Reset

Let’s Do a Simulation input output Clock cycle: t w : z ¤ A w = z 1 B 1 2 3 4 5 6 7 8 9 10 w : z input output A w = z ¤ 1 B w = 0 z = 0 Reset

Let’s Do a Simulation input output Clock cycle: t w : z ¤ A w = z 1 B 1 2 3 4 5 6 7 8 9 10 w : z input output A w = z ¤ 1 B w = 0 z = 0 Reset

Let’s Do a Simulation input output Clock cycle: t w : z ¤ A w = z 1 B 1 2 3 4 5 6 7 8 9 10 w : z input output A w = z ¤ 1 B w = 0 z = 0 Reset w = 1

Let’s Do a Simulation input output Clock cycle: t w : z ¤ A w = z 1 B 1 2 3 4 5 6 7 8 9 10 w : z input output A w = z ¤ 1 B w = 0 z = 0 Reset w = 1

Let’s Do a Simulation input output Clock cycle: t w : z ¤ A w = z 1 B 1 2 3 4 5 6 7 8 9 10 w : z input output A w = z ¤ 1 B w = 0 z = 0 Reset w = 1

Let’s Do a Simulation input output Clock cycle: t w : z ¤ A w = z 1 B 1 2 3 4 5 6 7 8 9 10 w : z input output A w = z ¤ 1 B w = 0 z = 0 Reset w = 1

Let’s Do a Simulation input output Clock cycle: t w : z ¤ A w = z 1 B 1 2 3 4 5 6 7 8 9 10 w : z input output A w = z ¤ 1 B w = 0 z = 0 Reset w = 1

Let’s Do a Simulation input output Clock cycle: t w : z ¤ A w = z 1 B 1 2 3 4 5 6 7 8 9 10 w : z input output A w = z ¤ 1 B w = 0 z = 0 Reset w = 1

Let’s Do a Simulation input output Clock cycle: t w : z ¤ A w = z 1 B 1 2 3 4 5 6 7 8 9 10 w : z input output A w = z ¤ 1 B w = 0 z = 0 Reset w = 1

Let’s Do a Simulation input output Clock cycle: t w : z ¤ A w = z 1 B 1 2 3 4 5 6 7 8 9 10 w : z input output A w = z ¤ 1 B w = 0 z = 0 Reset w = 1

Let’s Do a Simulation input output Clock cycle: t w : z ¤ A w = z 1 B 1 2 3 4 5 6 7 8 9 10 w : z input output A w = z ¤ 1 B w = 0 z = 0 Reset w = 1

Let’s Do a Simulation input output Clock cycle: t w : z ¤ A w = z 1 B 1 2 3 4 5 6 7 8 9 10 w : z input output A w = z ¤ 1 B w = 0 z = 0 Reset w = 1

Let’s Do a Simulation input output Clock cycle: t w : z ¤ A w = z 1 B 1 2 3 4 5 6 7 8 9 10 w : z input output A w = z ¤ 1 B w = 0 z = 0 Reset w = 1

Let’s Do a Simulation input output Clock cycle: t w : z ¤ A w = z 1 B 1 2 3 4 5 6 7 8 9 10 w : z input output A w = z ¤ 1 B w = 0 z = 0 Reset w = 1

Let’s Do a Simulation input output Clock cycle: t w : z ¤ A w = z 1 B 1 2 3 4 5 6 7 8 9 10 w : z input output A w = z ¤ 1 B w = 0 z = 0 Reset w = 1

Now Let’s Do the State Table for this FSM = z ¤ 1 B Reset Present Next state Output z state w = 1 A B

Now Let’s Do the State Table for this FSM = z ¤ 1 B Reset Present Next state Output z state w = 1 A B

The State Table for this FSM Present Next state Output z state w = 1 A B [ Figure 6.24 from the textbook ]

Let’s Do the State-assigned Table Present Next state Output z state w = 1 A B Next state Output Present state w = w = 1 w = w = 1 y Y Y z z A B 1

Let’s Do the State-assigned Table Present Next state Output z state w = 1 A B Next state Output Present state w = w = 1 w = w = 1 y Y Y z z A 1 B 1 1 1

The State-assigned Table Present Next state Output state w = 1 y Y z A B [ Figure 6.25 from the textbook ]

The State-assigned Table Present Next state Output state w = 1 y Y z A B Y = D = w z = wy [ Figure 6.25 from the textbook ]

The State-assigned Table Present Next state Output state w = 1 y Y z A B Y = D = w z = wy This assumes D flip-flop [ Figure 6.25 from the textbook ]

Circuit Implementation of the FSM Clock Resetn D Q w z y Y = D = w z = wy [ Figure 6.26 from the textbook ]

Circuit & Timing Diagram z w D Q y Clock Q Resetn (a) Circuit t t t t t t t t t t t 1 2 3 4 5 6 7 8 9 10 1 Clock 1 w 1 y 1 z [ Figure 6.26 from the textbook ] (b) Timing diagram

What if we wanted the output signal to be delayed by 1 clock cycle?

Circuit Implementation of the Modified FSM [ Figure 6.27a from the textbook ]

Circuit Implementation of the Modified FSM This flip-flop delays the output signal by one clock cycle [ Figure 6.27a from the textbook ]

Circuit & Timing Diagram [ Figure 6.27 from the textbook ]

The general form of a synchronous sequential circuit W Combinational Combinational Flip-flops Z circuit circuit Q Clock [ Figure 6.1 from the textbook ]

Moore Type W Combinational Combinational Flip-flops Z circuit circuit Q Clock

Mealy Type W Combinational Combinational Flip-flops Z circuit circuit Q Clock

Moore Mealy

Moore Mealy

Mealy Moore

Questions?

THE END