2017/4/24 1.

Slides:



Advertisements
Similar presentations
State-machine structure (Mealy)
Advertisements

A. Abhari CPS2131 Sequential Circuits Most digital systems like digital watches, digital phones, digital computers, digital traffic light controllers and.
CHAPTER 3 Sequential Logic/ Circuits.  Concept of Sequential Logic  Latch and Flip-flops (FFs)  Shift Registers and Application  Counters (Types,
Sequential Circuits1 DIGITAL LOGIC DESIGN by Dr. Fenghui Yao Tennessee State University Department of Computer Science Nashville, TN.
Sequential Logic Computer Organization Ellen Walker Hiram College Figures from Computer Organization and Design 3ed, D.A. Patterson & J.L. Hennessey, Morgan.
Computing Machinery Chapter 5: Sequential Circuits.
Circuits require memory to store intermediate data
1 © 2014 B. Wilkinson Modification date: Dec Sequential Logic Circuits – I Flip-Flops A sequential circuit is a logic components whose outputs.
Sequential Circuit Analysis & Design Dr. Aiman H. El-Maleh Computer Engineering Department King Fahd University of Petroleum & Minerals Dr. Aiman H. El-Maleh.
CS 151 Digital Systems Design Lecture 21 Analyzing Sequential Circuits.
1 Lecture 23 More Sequential Circuits Analysis. 2 Analysis of Combinational Vs. Sequential Circuits °Combinational : Boolean Equations Truth Table Output.
ECE 331 – Digital System Design Introduction to and Analysis of Sequential Logic Circuits (Lecture #20) The slides included herein were taken from the.
1 Sequential logic networks I. Motivation & Examples  Output depends on current input and past history of inputs.  “State” embodies all the information.
Homework Reading Machine Projects Labs Tokheim Chapter 9.1 – 9.6
EECC341 - Shaaban #1 Lec # 14 Winter Clocked Synchronous State-Machines Such machines have the characteristics: –Sequential circuits designed.
Give qualifications of instructors: DAP
Contemporary Logic Design Finite State Machine Design © R.H. Katz Transparency No Chapter #8: Finite State Machine Design Finite State.
Logic and Computer Design Fundamentals Registers and Counters
Chapter 8 -- Analysis and Synthesis of Synchronous Sequential Circuits.
A clocked synchronous state-machine changes state only when a triggering edge or “tick” occurs on the clock signal. ReturnNext  “State-machine”: is a.
Digital Logic Design Lecture 26. Announcements Exams will be returned on Thursday Final small quiz on Monday, 12/8. Final homework will be assigned Thursday,
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)
Sequential Circuit Introduction to Counter
A.Abhari CPS2131 Registers A register is a group of n flip-flops each of them capable of storing one bit of information There are two types of registers:
Lecture 21 Overview Counters Sequential logic design.
Chapter 1_4 Part II Counters
1 Sequential Circuits Registers and Counters. 2 Master Slave Flip Flops.
Sequential Circuits Chapter 4 S. Dandamudi To be used with S. Dandamudi, “Fundamentals of Computer Organization and Design,” Springer,  S.
Lecture 10 Topics: Sequential circuits Basic concepts Clocks
Digital Computer Design Fundamental
Synchronous Circuit Design (Class 10.1 – 10/30/2012) CSE 2441 – Introduction to Digital Logic Fall 2012 Instructor – Bill Carroll, Professor of CSE.
Digital Logic Design Sequential circuits
Rabie A. Ramadan Lecture 3
Introduction to Sequential Logic Design Flip-flops FSM Analysis.
Sequential Circuits. Two primary differences between combinational circuits and sequential circuits –Sequential circuits are synchronous (use a clock)
Chapter 8 -- Analysis and Synthesis of Synchronous Sequential Circuits.
Introduction to Sequential Logic Design Finite State-Machine Design.
2017/4/24 CHAPTER 6 Counters Chapter 5 (Sections )
1 Lecture 22 Sequential Circuits Analysis. 2 Combinational vs. Sequential  Combinational Logic Circuit  Output is a function only of the present inputs.
Introduction to State Machine
Computer Organization & Programming Chapter 5 Synchronous Components.
Fall 2004EE 3563 Digital Systems Design EE3563 Chapter 7, 8, 10 Reading Assignments  7.1, 7.2, 7.3  8.1, ,   8.5.1, 8.5.2,
DLD Lecture 26 Finite State Machine Design Procedure.
ANALYSIS OF SEQUENTIAL CIRCUITS by Dr. Amin Danial Asham.
June 2005Computer Architecture, Background and MotivationSlide 1 Part I Background and Motivation.
Analysis and Synthesis of Synchronous Sequential Circuits A “synchronizing” pulse/edge signal (clock) controls the operation of the memory portion of the.
Registers; State Machines Analysis Section 7-1 Section 5-4.

Chapter 8 -- Analysis and Synthesis of Synchronous Sequential Circuits.
Introduction to Sequential Logic Design Finite State-Machine Analysis.
Cpe 252: Computer Organization1 Lo’ai Tawalbeh Lecture #3 Flip-Flops, Registers, Shift registers, Counters, Memory 3/3/2005.
State Machine Design State Machine Design Digital Electronics
Chapter 6 Analysis of Sequential Systems Sequential Memory Feedback.
Counters and registers Eng.Maha Alqubali. Registers Registers are groups of flip-flops, where each flip- flop is capable of storing one bit of information.
Logic Design (CE1111 ) Lecture 6 (Chapter 6) Registers &Counters Prepared by Dr. Lamiaa Elshenawy 1.
1 Registers A register is a group of n flip-flops each of them capable of storing one bit of information There are two types of registers: parallel and.
Chapter 35 Sequential Logic Circuits. Objectives After completing this chapter, you will be able to: –Describe the function of a flip-flop –Identify the.
1 Homework Reading –Tokheim Chapter 9.1 – 9.6 Machine Projects –Continue on mp3 Labs –Continue in labs with your assigned section.
Digital Design: With an Introduction to the Verilog HDL, 5e M. Morris Mano Michael D. Ciletti Copyright ©2013 by Pearson Education, Inc. All rights reserved.
Sequential Logic Design
2018/5/2 EE 4271 VLSI Design, Fall 2016 Sequential Circuits.
Homework Reading Machine Projects Labs Tokheim Chapter 9.1 – 9.6
ANALYSIS OF SEQUENTIAL CIRCUITS
FIGURE 5.1 Block diagram of sequential circuit
2018/8/29 EE 4271 VLSI Design, Fall 2013 Sequential Circuits.
Asynchronous Inputs of a Flip-Flop
29-Nov-18 Counters Chapter 5 (Sections ).
CSE 370 – Winter Sequential Logic-2 - 1
2019/9/26 EE 4271 VLSI Design, Fall 2012 Sequential Circuits.
Presentation transcript:

2017/4/24 1

2.1 Latches, Flip-Flops, and Registers 2017/4/24 2.1 Latches, Flip-Flops, and Registers Figure 2.1 Latches, flip-flops, and registers.

The required stability time for D before the falling edge is known as setup time, while that after the falling edge is hold time. Figure 2.2 Operations of D latch and negative-edge-triggered D flip-flop.

Interconnection of registers and combinational components in synchronous sequential system. Figure 2.3 Register-to-register operation with edge-triggered flip-flops.

2.2 Finite-State Machine (FSM) FSM: A model of computation consisting of a set of states, input symbols, and a transition function that maps input symbols and current states to a next state. State Table: The state table representation of a sequential circuit consists of three sections labelled present state, next state and output. The present state designates the state of flip-flops before the occurrence of a clock pulse. The next state shows the states of flip-flops after the clock pulse, and the output section lists the value of the output variables during the present state. State Diagram: In addition to graphical symbols, tables or equations, flip-flops can also be represented graphically by a state diagram. In this diagram, a state is represented by a circle, and the transition between states is indicated by directed lines (or arcs) connecting the circles.

State Machines: Definition of Terms State Diagram Illustrates the form and function of a state machine. Usually drawn as a bubble-and-arrow diagram. State A uniquely identifiable set of values measured at various points in a digital system. Next State The state to which the state machine makes the next transition, determined by the inputs present when the device is clocked. Branch A change from present state to next state. Mealy Machine A state machine that determines its outputs from the present state and the inputs. Moore Machine A state machine that determines its outputs from the present state only.

Example 2.1Coin Reception State Machine Figure 2.4 State table and state diagram for a vending machine coin reception unit.

2.3 Designing a sequential circuits General steps: (sometimes) draw a transition network for the circuit build a transition table use the transition table as the truth table for the "next state" combinatorial circuit convert this table to a circuit if necessary, build an output function truth table and convert it to a circuit example: binary up-counter; binary up-down counter example: "traffic light" circuit from text

Moore Machine: Outputs are derived only based on state variables. Mealy Machine: Outputs depends on both present state and the current inputs. Figure 2.5 Hardware realization of Moore and Mealy sequential machines.

Example 2.2 Building a JK-FF with D-FF Q+ 0 0 Q 0 1 1 0 1 1 1 Q’ Step 1: Derive the state table Step 2: state minimization

Q: present state, Q+: next state Step 3: apply state assignment There are two states. One FF is enough. Here D-FF is chosen. Step 4: Form the excitation table of the circuit. J K Q Q+ D 0 x 1 x 1 x 1 x 0 Q: present state, Q+: next state 1x JK=0x 1 x0 x1

Step 5: Form the minimized excitation and output functions JK 00 01 11 10 Q 1 1

Figure 2.6 Hardware realization of a JK flip-flop (Example 2.2).

Example 2.3 Sequential circuit for a coin reception Step 1: Derive the state table (see Example 2.1 on p24) Step 2: state minimization (S25 and S30 are merged into one state S25/S30) Step 3: apply state assignment There are five states, it needs 3 FFs. Here we use D-FFs. Table 2.2 State table for a coin reception unit after the state assignment chosen in Example 2.3.

Step 4: Form the excitation table of the circuit q d Q2Q1Q0 Q2+Q1+Q0+ D2D1D0 0 0 0 0 0 0 0 1 0 1 0 0 1 1 0 1 1 1 x x 1 x x 0 1 q d Q2Q1Q0 Q2+Q1+Q0+ D2D1D0 1 0 0 0 0 0 1 1 0 0 1 1 x x 1 x x 0 1 0 1 1 x x x

Five-Variable K-Map (Karnaugh-map) D2 Q1Q0 qd 00 01 11 10 Q2 = 0 00 1 x 01 11 10 Q1Q0 qd Q2 = 1 00 x 01 1 11 10

Five-Variable K-Map D1 Q1Q0 qd 00 01 11 10 00 x 01 11 10 Q1Q0 qd 00 x x 1 01 11 10

Five-Variable K-Map D0 Q1Q0 qd 00 01 11 10 00 x 01 11 10 Q1Q0 qd 00 1 1 x 01 11 10

Step 5: Form the minimized excitation and output functions Figure 2.7 Hardware realization of a coin reception unit (Example 2.3).

2.4 Useful Sequential Parts --- Shift register A register is an array of FFs. Figure 2.8 Register with single-bit left shift and parallel load capabilities. For logical left shift, the serial data in line is connected to 0.

Serial to parallel register Parallel to serial register

Register file: an array of registers FIFO: Figure 2.9 Register file with random access and FIFO.

SRAM:Single port register file DRAM? Figure 2.10 SRAM memory is simply a large, single-port register file.

Counter: Binary counter, BCD counter, Hexadecimal Counter Figure 2.11 Synchronous binary counter with initialization capability.

PAL, FPGA Figure 2.12 Examples of programmable sequential logic.

2.6 Clocks and Timing of Events Clock: a clock is a circuit that produce a periodic signal, usually at a constant frequency or rate. The clock signal is at 0 or 1 for about half the clock period. Clock period  tprop+tcomb+tsetup+tskew

Asynchronous input, synchronozer Figure 2.14 Synchronizers are used to prevent timing problems that might otherwise arise from untimely changes in asynchronous signals.

Two-phase clocking Figure 2.15 Two-phase clocking with nonoverlapping clock signals.