Overview. Example 1: State Diagram. State Diagrams. CPEN Digital System Design. Spring 2007

Similar documents
ENEE 244 (01**). Spring Homework 5. Due back in class on Friday, April 28.

Lecture 8: Synchronous Digital Systems

Engr354: Digital Logic Circuits

Having read this workbook you should be able to: recognise the arrangement of NAND gates used to form an S-R flip-flop.

Experiment # 9. Clock generator circuits & Counters. Eng. Waleed Y. Mousa

IE1204 Digital Design F12: Asynchronous Sequential Circuits (Part 1)

SEQUENTIAL CIRCUITS. Block diagram. Flip Flop. S-R Flip Flop. Block Diagram. Circuit Diagram

NAND and NOR Implementation

L4: Sequential Building Blocks (Flip-flops, Latches and Registers)

Karnaugh Maps (K-map) Alternate representation of a truth table

ETEC 2301 Programmable Logic Devices. Chapter 10 Counters. Shawnee State University Department of Industrial and Engineering Technologies

Combinational Logic Design Process

WEEK 8.1 Registers and Counters. ECE124 Digital Circuits and Systems Page 1

Lecture 10 Sequential Circuit Design Zhuo Feng. Z. Feng MTU EE4800 CMOS Digital IC Design & Analysis 2010

Topics of Chapter 5 Sequential Machines. Memory elements. Memory element terminology. Clock terminology

So far we have investigated combinational logic for which the output of the logic devices/circuits depends only on the present state of the inputs.

Register File, Finite State Machines & Hardware Control Language

Lesson 12 Sequential Circuits: Flip-Flops

Set-Reset (SR) Latch

Counters and Decoders

ECE380 Digital Logic

EE 42/100 Lecture 24: Latches and Flip Flops. Rev B 4/21/2010 (2:04 PM) Prof. Ali M. Niknejad

Flip-Flops and Sequential Circuit Design. ECE 152A Winter 2012

Flip-Flops and Sequential Circuit Design

(1) /30 (2) /30 (3) /40 TOTAL /100

Lecture 7: Clocking of VLSI Systems

To design digital counter circuits using JK-Flip-Flop. To implement counter using 74LS193 IC.

Counters are sequential circuits which "count" through a specific state sequence.

7. Latches and Flip-Flops

CHAPTER 11 LATCHES AND FLIP-FLOPS

Introduction to CMOS VLSI Design (E158) Lecture 8: Clocking of VLSI Systems

CS311 Lecture: Sequential Circuits

ASYNCHRONOUS COUNTERS

Module 3: Floyd, Digital Fundamental

CDA 3200 Digital Systems. Instructor: Dr. Janusz Zalewski Developed by: Dr. Dahai Guo Spring 2012

Systems I: Computer Organization and Architecture

Memory unit. 2 k words. n bits per word

ECE232: Hardware Organization and Design. Part 3: Verilog Tutorial. Basic Verilog

Sequential Logic. (Materials taken from: Principles of Computer Hardware by Alan Clements )

DIGITAL COUNTERS. Q B Q A = 00 initially. Q B Q A = 01 after the first clock pulse.

A New Paradigm for Synchronous State Machine Design in Verilog

Course Requirements & Evaluation Methods

Chapter 5. Sequential Logic

Counters & Shift Registers Chapter 8 of R.P Jain

Lecture 10: Sequential Circuits

Digital Logic Design. Basics Combinational Circuits Sequential Circuits. Pu-Jen Cheng

Upon completion of unit 1.1, students will be able to

UNIVERSIDADE DE SÃO PAULO

Design: a mod-8 Counter

Sequential Logic Design Principles.Latches and Flip-Flops

Understanding Logic Design

DIGITAL TECHNICS II. Dr. Bálint Pődör. Óbuda University, Microelectronics and Technology Institute 5. LECTURE: REGISTERS AND RELATED

COMBINATIONAL and SEQUENTIAL LOGIC CIRCUITS Hardware implementation and software design

Digital Electronics Detailed Outline

Chapter 1 An Introduction to Computers and Problem Solving

Sequential Circuits. Combinational Circuits Outputs depend on the current inputs

University of St. Thomas ENGR Digital Design 4 Credit Course Monday, Wednesday, Friday from 1:35 p.m. to 2:40 p.m. Lecture: Room OWS LL54

Asynchronous Counters. Asynchronous Counters

Lecture 11: Sequential Circuit Design

Chapter 2 Logic Gates and Introduction to Computer Architecture

Elementary Logic Gates

Mixed Logic A B A B. 1. Ignore all bubbles on logic gates and inverters. This means

Chapter 8. Sequential Circuits for Registers and Counters

Sequential Circuit Design

Theory of Logic Circuits. Laboratory manual. Exercise 3

Basic Logic Gates Richard E. Haskell

Digital Systems Based on Principles and Applications of Electrical Engineering/Rizzoni (McGraw Hill

CPSC 121: Models of Computation Assignment #4, due Wednesday, July 22nd, 2009 at 14:00

Digital Electronics Part I Combinational and Sequential Logic. Dr. I. J. Wassell

Simplifying Logic Circuits with Karnaugh Maps

CpE358/CS381. Switching Theory and Logical Design. Class 10

Counters. Present State Next State A B A B

Lecture-3 MEMORY: Development of Memory:

Latches, the D Flip-Flop & Counter Design. ECE 152A Winter 2012

1. True or False? A voltage level in the range 0 to 2 volts is interpreted as a binary 1.

We r e going to play Final (exam) Jeopardy! "Answers:" "Questions:" - 1 -

Design and Development of Virtual Instrument (VI) Modules for an Introductory Digital Logic Course

earlier in the semester: The Full adder above adds two bits and the output is at the end. So if we do this eight times, we would have an 8-bit adder.

CHAPTER 3 Boolean Algebra and Digital Logic

Flip-Flops, Registers, Counters, and a Simple Processor

CHAPTER IX REGISTER BLOCKS COUNTERS, SHIFT, AND ROTATE REGISTERS

EXPERIMENT 2 TRAFFIC LIGHT CONTROL SYSTEM FOR AN INTERSECTION USING S7-300 PLC

Digital Logic Design Sequential circuits

Take-Home Exercise. z y x. Erik Jonsson School of Engineering and Computer Science. The University of Texas at Dallas

FORDHAM UNIVERSITY CISC Dept. of Computer and Info. Science Spring, Lab 2. The Full-Adder

Cascaded Counters. Page 1 BYU

ENGI 241 Experiment 5 Basic Logic Gates

2 n. (finite state machines).

Memory Elements. Combinational logic cannot remember

PROGETTO DI SISTEMI ELETTRONICI DIGITALI. Digital Systems Design. Digital Circuits Advanced Topics

Design Example: Counters. Design Example: Counters. 3-Bit Binary Counter. 3-Bit Binary Counter. Other useful counters:

Sequential Logic: Clocks, Registers, etc.

SOLUTIONS MANUAL DIGITAL DESIGN FOURTH EDITION M. MORRIS MANO California State University, Los Angeles MICHAEL D.

RAM & ROM Based Digital Design. ECE 152A Winter 2012

Gray Code Generator and Decoder by Carsten Kristiansen Napier University. November 2004

DIGITAL TECHNICS II. Dr. Bálint Pődör. Óbuda University, Microelectronics and Technology Institute

EXPERIMENT 8. Flip-Flops and Sequential Circuits

NTE2053 Integrated Circuit 8 Bit MPU Compatible A/D Converter

BINARY CODED DECIMAL: B.C.D.

Transcription:

PEN 315 - igital System esign Spring 2007 hapter 6 - Sequential ircuits Sequential ircuit esign. Gerousis Logic and omputer esign Fundamentals, 3 rd Ed., Mano Prentice Hall harles Kime & Thomas Kaminski 2004 Pearson Education, Inc. Overview Part 1 - Storage Elements and nalysis eview of sequential circuits Types of sequential circuits Storage elements Latches Flip-flops Sequential circuit analysis State tables State diagrams Part 2 - Sequential ircuit esign Specification ssignment of State odes Implementation State iagrams Example 1: State iagram Label form: On circle with output included: state/output Moore type output depends only on state On directed arc with the output included: input/output Mealy type output depends on state and input Which type? iagram gets confusing for large circuits For small circuits, usually easier to understand than the state table x=0/y=0 0 0 x=0/y=1 x=0/y=1 1 0 x=0/y=1 0 1 1 1 1

Moore and Mealy Models Example 2 Sequential ircuits or Sequential Machines are also called Finite State Machines (FSMs). Two formal models exist: Moore Model Named after E.F. Moore. Outputs are a function ONLY of states Usually specified on the states. Mealy Model Named after G. Mealy Outputs are a function of inputs N states Usually specified on the state transition arcs. In contemporary design, models are sometimes mixed Moore and Mealy What is the Next State Function/Equation? What is the Output Equation? What model is this FSM? Example 2 State Table/iagram The esign Procedure ( =t Z + 1) = X Y Specification Write a specification of the circuit Formulation - Obtain a state diagram or state table State ssignment - ssign binary codes to the states Flip-Flop Input Equation etermination - Select flip-flop types and derive flip-flop equations from next state entries in the table Output Equation etermination - erive output equations from output entries in the table Optimization - Optimize the equations Technology Mapping - Find circuit from equations and map to flip-flops and gate technology Verification - Verify correctness of final design 2

Formulation: Finding a State iagram In specifying a circuit, we use states to remember meaningful properties of past input sequences that are essential to predicting future output values. sequence recognizer is a sequential circuit that produces a distinct output value whenever a prescribed pattern of input symbols occur in sequence, i.e, recognizes an input sequence occurence. We will develop a procedure specific to sequence recognizers to convert a problem statement into a state diagram. Next, the state diagram, will be converted to a state table from which the circuit will be designed. Sequence ecognizer Example Example: ecognize the sequence 1101 Note that the sequence 1111101 contains 1101 and "11" is a proper sub-sequence of the sequence. lso, the sequence 1101101 contains 1101 as both an initial subsequence and a final subsequence with some overlap, i. e., 1101101 or 1101101. nd, the 1 in the middle, 1101101, is in both subsequences. The sequence 1101 must be recognized each time it occurs in the input sequence. Example: ecognize 1101 efine states for the sequence to be recognized: assuming it starts with first symbol, continues through each symbol in the sequence to be recognized, and uses output 1 to mean the full sequence has occurred, with output 0 otherwise. Starting in the initial state (rbitrarily named ""): dd a state that recognizes the first "1. State "" is the initial state, and state "" is the state which represents the fact that the "first" one in the input subsequence has occurred. The output symbol "0" means that the full recognized sequence has not yet occurred. Example: ecognize 1101 (continued) fter one more 1, we have: is the state obtained when the input sequence has two "1"s. Finally, after 110 and a 1, we have: Transition arcs are used to denote the output function (Mealy Model) Output 1 on the arc from means the sequence has been recognized To what state should the arc from state go? emember: 1101101? 3

Example: ecognize 1101 (continued) learly the final 1 in the recognized sequence 1101 is a sub-sequence of 1101. It follows a 0 which is not a sub-sequence of 1101. Thus it should represent the same state reached from the initial state after a first 1 is observed. We obtain? Example: ecognize 1101 (continued) The state have the following abstract meanings: : No proper sub-sequence of the sequence has occurred. : The sub-sequence 1 has occurred. : The sub-sequence 11 has occurred. : The sub-sequence 110 has occurred. The on the arc from to means that the last 1 has occurred and thus, the sequence is recognized. Example: ecognize 1101 (continued) The other arcs are added to each state for inputs not yet listed. Which arcs are missing? nswer: "0" arc from "0" arc from "1" arc from "0" arc from. Example: ecognize 1101 (continued) State transition arcs must represent the fact that an input subsequence has occurred. Thus we get: Note that the 1 arc from state to state implies that State means two or more 1's have occurred. * : The occurrence of the first 1 in the sequence * 4

Formulation: Find State Table Formulation: Find State Table From the State iagram, we can fill in the State Table. There are 4 states, one input, and one output. We will choose the form with four rows, one for each current state. From State, the 0 and 1 input transitions have been filled in along with the outputs. Present State Next State Output x=0 x=1 x=0 x=1 0 0 From the state diagram, we complete the state table. Present Next State Output State x=0 x=1 x=0 x=1 0 0 0 0 0 0 0 1 State ssignment = 0 0, = 0 1, = 1 1, = 1 0 The resulting coded state table: Part 2- Sequential ircuit esign Part 2 - Sequential ircuit esign Specification ssignment of State odes Implementation 5

State ssignment FF I/O Equations = 0 0, = 0 1, = 1 1, = 1 0 The resulting coded state table: Maps for Input and output ( 1) =Σm(3,6,7) ( 1) =Σm(1,3,5,7) Z(,, X ) =Σm(5) ( 1) =Σm(3,6,7) ( 1) =Σm(1,3,5,7) Z(,, X ) =Σm(5) Map Technology Mapped ircuit - Final esult Library: Flip-flops with eset (not inverted) NN gates with up to 4 inputs and inverters X Initial ircuit: Y 1 Y 2 Z X Y 1 Y 2 Z lock eset lock eset 6

Table 6-7 ecause of their lesser importance in contemporary design relative to -flip-flops, analysis and design examples for JK and T flip flops circuits are given on the companion website. 7