Digital Computer Design Fundamental

Slides:



Advertisements
Similar presentations
State-machine structure (Mealy)
Advertisements

EE 5900 Advanced Algorithms for Robust VLSI CAD, Spring 2009 Sequential Circuits.
COE 202: Digital Logic Design Sequential Circuits Part 1 Dr. Ahmad Almulhem ahmadsm AT kfupm Phone: Office: Ahmad Almulhem, KFUPM.
A. Abhari CPS2131 Sequential Circuits Most digital systems like digital watches, digital phones, digital computers, digital traffic light controllers and.
1 Fundamentals of Computer Science Sequential Circuits.
Computer Architecture CS 215
Classification of Digital Circuits  Combinational. Output depends only on current input values.  Sequential. Output depends on current input values and.
Sequential Circuits1 DIGITAL LOGIC DESIGN by Dr. Fenghui Yao Tennessee State University Department of Computer Science Nashville, TN.
Synchronous Sequential Logic
Multiplexors Sequential Circuits and Finite State Machines Prof. Sin-Min Lee Department of Computer Science.
Sequential circuits The digital circuits considered thus far have been combinational, where the outputs are entirely dependent on the current inputs. Although.
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.
Asynchronous Sequential Logic
Circuits require memory to store intermediate data
Charles Kime & Thomas Kaminski © 2008 Pearson Education, Inc. (Hyperlinks are active in View Show mode) Chapter 5 – Sequential Circuits Part 1 – Storage.
Sequential Circuit Analysis & Design Dr. Aiman H. El-Maleh Computer Engineering Department King Fahd University of Petroleum & Minerals Dr. Aiman H. El-Maleh.
1. 2 Logic Circuits Sequential Circuits Combinational Circuits Consists of logic gates whose outputs are determined from the current combination of inputs.
1 Lecture 23 More Sequential Circuits Analysis. 2 Analysis of Combinational Vs. Sequential Circuits °Combinational : Boolean Equations Truth Table Output.
The Map Method Boolean expressions may be simplified by algebraic means as discussed in Previous lecture However, this procedure of minimization is awkward.
EE 4271 VLSI Design, Fall 2010 Sequential Circuits.
So far, all of the logic circuits we have studied were basically based on the analysis and design of combinational digital circuits. The other major aspect.
Digital Logic Design CHAPTER 5 Sequential Logic. 2 Sequential Circuits Combinational circuits – The outputs are entirely dependent on the current inputs.
COE 202: Digital Logic Design Sequential Circuits Part 1
1 Chapter 5 Synchronous Sequential Logic 5-1 Sequential Circuits Every digital system is likely to have combinational circuits, most systems encountered.
Chapter 5 - Part Sequential Circuit Design Design Procedure  Specification  Formulation - Obtain a state diagram or state table  State Assignment.
EE2174: Digital Logic and Lab Professor Shiyan Hu Department of Electrical and Computer Engineering Michigan Technological University CHAPTER 9 Sequential.
Chap 4. Sequential Circuits
Synchronous Sequential Logic Chapter 5. Digital Circuits Sequential Circuits Combinational circuits contains no memory elements the outputs depends.
Chap 4. Sequential Circuits
ENG241 Digital Design Week #6 Sequential Circuits (Part A)
Sequential Circuits. Two primary differences between combinational circuits and sequential circuits –Sequential circuits are synchronous (use a clock)
1 Lecture 22 Sequential Circuits Analysis. 2 Combinational vs. Sequential  Combinational Logic Circuit  Output is a function only of the present inputs.
ANALYSIS OF SEQUENTIAL CIRCUITS by Dr. Amin Danial Asham.
1 Lecture #11 EGR 277 – Digital Logic Ch. 5 - Synchronous Sequential Logic There are two primary classifications of logic circuits: 1.Combinational logic.
1 Synchronous Sequential Logic Sequential Circuits Every digital system is likely to have combinational circuits, most systems encountered in practice.
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
5 Chapter Synchronous Sequential Circuits 1. Logic Circuits- Review 2 Logic Circuits Sequential Circuits Combinational Circuits Consists of logic gates.
Sahar Mosleh PageCalifornia State University San Marcos 1 More on Flip Flop State Table and State Diagram.
ENG241 Digital Design Week #7 Sequential Circuits (Part B)
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.
1. 2 Logic Circuits Sequential Circuits Combinational Circuits Consists of logic gates whose outputs are determined from the current combination of inputs.
Lecture 1 Gunjeet kaur Dronacharya group of institutions.
2018/5/2 EE 4271 VLSI Design, Fall 2016 Sequential Circuits.
Week #7 Sequential Circuits (Part B)
4.
FIGURE 5.1 Block diagram of sequential circuit
Digital Design Lecture 9
2018/8/29 EE 4271 VLSI Design, Fall 2013 Sequential Circuits.
Synchronous Sequential Circuits
EKT 121 / 4 DIGITAL ELECTRONICS I
Sequential Circuits Most digital systems like digital watches, digital phones, digital computers, digital traffic light controllers and so on require.
CISE204: Design of Digital Systems Lecture 18 : Sequential Circuits
ECE Digital logic Lecture 16: Synchronous Sequential Logic
Digital Design Fundamentals
LECTURE 15 – DIGITAL ELECTRONICS
Chapter 5 Synchronous Sequential Logic 5-1 Sequential Circuits
Synchronous Sequential Circuits
Sequential Circuit Analysis & Design
FLIP-FLOPS.
Synchronous sequential
Synchronous Sequential
Flip-Flops.
Sequential Circuits UNIT- IV
Chapter 5 Sequential Circuits.
SEQUENTIAL CIRCUITS __________________________________________________
2019/9/26 EE 4271 VLSI Design, Fall 2012 Sequential Circuits.
Presentation transcript:

Digital Computer Design Fundamental Sequential Circuits Digital Computer Design Fundamental Kashif Bashir

Module Outline Sequential Circuit Definitions Latches Flip-Flops Sequential Circuit Analysis Sequential Circuit Design Designing with D Flip-Flops

Block Diagram of Sequential Circuit Combinational Circuit Memory Elements Outputs Inputs Next state Present state A combinational circuit and storage elements are interconnected to form a sequential circuit. The storage elements are circuits that are capable of storing binary information. The binary information stored in these elements at any given time defines the state of the sequential circuit at that time.

Sequential Circuit The outputs in a sequential circuit are a function not only of the inputs, but also of the present state of the storage elements. The next state of the storage elements is also a function of the inputs and the present state. A sequential circuit is specified by a time sequence of inputs, internals states, and outputs.

Types of Sequential Circuits Two main types – based on the times at which their inputs are observed and their internal state changes. Synchronous – the behavior can be defined from the knowledge of its signals at discrete instants of time. Asynchronous – the behavior depends on the inputs at any instant of time and the order in continuous time in which the inputs change.

Problems with Asynchronous Sequential Circuits Examples of asynchronous sequential circuits are latches. More complex asynchronous sequential circuits are very difficulty to design – their behavior depends highly on the propagation delay of the gates and the timing of the input changes. Almost all digital design done today is synchronous sequential design.

Synchronous Clocked Sequential Circuit

Latches Latches are used to build flip-flops. Flip-flops are used as storage elements in sequential circuits. A storage element can maintain a binary state indefinitely (as long as power is delivered to the circuit), until directed by an input signal to switch states. We will look at several basic types of latches and then look at flip-flops that can be built from them.

S-R Latch with NOR Gates Two cross-coupled NOR gates. Two inputs: S for Set and R for Reset Two useful states: when output Q = 1 and Q’ = 0 the latch is said to be in set state; when output Q = 0 and Q’ = 1 the latch is said to be in reset state.

S’-R’ Latch with NAND Gates Two cross-coupled NAND gates. Two inputs: S’ for Set and R’ for Reset Both inputs are normally 1, unless the state of the latch has to be changed.

SR Latch with Control Input An additional control input can control when the state of the latch can be changed. The control input C acts as an enable for the two other inputs. An undefined state occurs when all three inputs are equal to 1.

D Latch D latch eliminates the undesirable undefined state on the SR latch by ensuring that S and R are never equal to 1 at the same time. D latch has only two inputs D (data) and C (control). Gets its name from its ability to hold data in its internal storage. Whenever C is enabled whatever is D gets transferred to Q and stays there till control is enabled again.

Graphic Symbols for Latches Q Q’ SR Latch S’R’ Latch D C D Latch SR Latch with Control

Flip-Flops The state of a latch in a flip-flop is allowed to switch by a momentary change in the value of the control input – trigger. A latch is transparent – its input value can be seen from the outputs. Due to the feedback in a sequential circuit the state may keep changing In a flip-flop before an output can change the, the path from its input to output is broken. A flip-flop cannot see the change of its output.

S-R Master-Slave Flip-Flop C R Y Y’ Q Q’ Consists of two latches and an inverter. The left clocked SR latch is called the master and the right the slave. When C = 0, the output of the inverter is 1, the slave latch is then enabled and its output Q is equal to the master output Y. The master latch is disabled. When C =1, the values of S and R control the value stored in the master latch Y. The slave, however, is disabled as long as C = 1 and any change in the external S and R cannot effect the slave output Q.

Master-Slave D Flip-Flop

J-K Flip-Flop

D Flip-Flop with Reset

Level Triggered vs. Edge Triggered

Positive Edge Triggered Flip-Flop

Graphic Symbols for D Flip-Flop

T Flip-Flop

Quick Review of What We Have Learnt What are sequential circuits? Asynchronous vs. Synchronous Sequential Circuits Latches (SR, S’R’, SR with Control, D) Problems with latches Flip Flops (Master Slave, D Type Edge Triggered, JK, T)

Flip-Flop Characteristic Tables A characteristic table defines the logical properties of a flip-flop by describing its operation in tabular form.

JK Flip-Flop with Direct Set and Reset Direct set is also called preset and direct reset is also called clear. Direct inputs are useful for bringing all the flip-flops in a digital system to a known initial state prior to the normal clocked operation. Take a note of the Control Dependency Notation (C1, 1J, 1K)

Sequential Circuit Analysis The analysis of a sequential circuit consists of obtaining a suitable description that demonstrates the time sequence of inputs, outputs and states. A logic diagram is recognized as a synchronous sequential circuit if it contains flip-flops with control inputs driven directly or indirectly by a clock signal and direct sets and resets unused during normal functioning of the circuit.

Input Equations A flip-flop input equation is a Boolean expression for a combinational circuit Flip-flop input symbol denotes the flip-flip input variable and the flip-flop output is used as a subscript JA = (XB + Y’C) KA = (YB’ + C)

Example of a Sequential Circuit DA = (AX + BX) DB = A’X Y = (A + B)X’

State Table Like the Truth Tables for Combinational Circuits, Sequential Circuits have their State Tables. Describes the functional relationship between the inputs, outputs, and flip-flop states of a sequential circuit. Consists of four sections: Present State Input Next State Output In general, a sequential circuit with m flip-flops and n inputs needs 2m+n rows in the state table.

State Table for Circuit of Figure 4-18

Mealy Model Circuits and Moore Model Circuits Mealy Model Circuits – the outputs depend on the inputs as well as present states Moore Model Circuits – the output only depends the present states

Two-Dimensional State Table for the Circuit in Figure 4-18

Logic Diagram and State Table for DA = A  X  Y Flip-flop input equation: DA = A  X  Y Z = A

State Diagrams The information in a state table is represented graphically in a state diagram A state is represented by a circle Transitions between states are represented by directed lines connecting the circles (states) Binary number inside the circle identifies the state of the flip-flops The directed lines are labeled with two binary numbers separated by a slash The number before the slash indicates the input and number following the slash indicates the output 1/0 0/1 1

Interpreting State Diagrams (b) is the state diagram for a Moore model circuit

Sequential Circuit Design Procedure Obtain either the state diagram or the state table from the statement of the problem If only a state diagram is available from step 1 above obtain the state table Assign binary codes the states Derive the flip-flop input equations from the next-state entries in the encoded state table Derive the output entries from the state table Simplify the flip-flop input equations and output equations Draw the logic diagram with D flip-flops and combinational gates, as specified by the flip-flop input equations and output equations

A Design Example The specification of a circuit is often in the form of a verbal description of the behavior of the circuit Interpretation of the description results in the state diagram or state table as a first step in the design procedure Construct the state diagram for a circuit that recognizes a sequence of 1101 The circuit has one input (X) and one output (Z)

Construction of a State Diagram

State Table for State Diagram in Figure 4-21

State Diagram with Codes Assigned to States Z = m(5) DA = m(3, 6, 7) DB = m(1, 3, 5, 7) Z = AB’X DA = BX + AB DB = X

Karnaugh Maps for Sequence Detector Example DA BX A 00 01 1 11 10 1 BX A 00 01 11 10 DB

Another Design Example Design a clocked sequential circuit that operates according to the state diagram given:

State Table for Design Example

Minimizing the Input Equations and Outputs

Logic Diagram for Sequential Circuit with D Flip-Flops

Yet Another Design Example

Minimization with Don’t Care Conditions

Flip-flop Excitation Tables Flip-flop characteristic tables provide the value of the next state when the present state and inputs are known. These tables are used to analyze sequential circuits and to define the operations of the flip-flops A table which lists the required inputs to cause a given change of state is called an Excitation Table

Flip-flop Excitation Tables