Analysis of clocked sequential networks

Similar documents
3. Complete the following table of equivalent values. Use binary numbers with a sign bit and 7 bits for the value

The Design Procedure. Output Equation Determination - Derive output equations from the state table

MAHALAKSHMI ENGINEERING COLLEGE TIRUCHIRAPALLI

King Fahd University of Petroleum and Minerals College of Computer Science and Engineering Computer Engineering Department

BER KELEY D AV IS IR VINE LOS AN GELES RIVERS IDE SAN D IEGO S AN FRANCISCO

Review for B33DV2-Digital Design. Digital Design

FSM model for sequential circuits

Digital Electronics Circuits 2017

EECS150 - Digital Design Lecture 23 - FSMs & Counters

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

Clocked Sequential Circuits UNIT 13 ANALYSIS OF CLOCKED SEQUENTIAL CIRCUITS. Analysis of Clocked Sequential Circuits. Signal Tracing and Timing Charts

Logic Design II (17.342) Spring Lecture Outline

Chapter 6. Synchronous Sequential Circuits


EE40 Lec 15. Logic Synthesis and Sequential Logic Circuits

King Fahd University of Petroleum and Minerals College of Computer Science and Engineering Computer Engineering Department

EECS Components and Design Techniques for Digital Systems. FSMs 9/11/2007

ECEN 248: INTRODUCTION TO DIGITAL SYSTEMS DESIGN. Week 9 Dr. Srinivas Shakkottai Dept. of Electrical and Computer Engineering

Ch 9. Sequential Logic Technologies. IX - Sequential Logic Technology Contemporary Logic Design 1

Appendix B. Review of Digital Logic. Baback Izadi Division of Engineering Programs

Finite State Machine. By : Ali Mustafa

MAHALAKSHMI ENGINEERING COLLEGE TIRUCHIRAPALLI

Chapter 5 Synchronous Sequential Logic

Chapter 7. Synchronous Sequential Networks. Excitation for

Lecture 10: Synchronous Sequential Circuits Design

Dept. of ECE, CIT, Gubbi Page 1

EECS150 - Digital Design Lecture 11 - Shifters & Counters. Register Summary

Decoding A Counter. svbitec.wordpress.com 1

Figure 1-1 Basic Gates

(Boolean Algebra, combinational circuits) (Binary Codes and -arithmetics)

EEE2135 Digital Logic Design

EECS150 - Digital Design Lecture 18 - Counters

EECS150 - Digital Design Lecture 18 - Counters

MAHARASHTRA STATE BOARD OF TECHNICAL EDUCATION (Autonomous) (ISO/IEC Certified) State any two Boolean laws. (Any 2 laws 1 mark each)

CPE/EE 422/522. Chapter 1 - Review of Logic Design Fundamentals. Dr. Rhonda Kay Gaede UAH. 1.1 Combinational Logic

Reg. No. Question Paper Code : B.E./B.Tech. DEGREE EXAMINATION, NOVEMBER/DECEMBER Second Semester. Computer Science and Engineering

CSE140: Digital Logic Design Registers and Counters

UNIVERSITY OF BOLTON SCHOOL OF ENGINEERING BENG (HONS) ELECTRICAL & ELECTRONICS ENGINEERING EXAMINATION SEMESTER /2017

Sequential Circuit Analysis

Mealy & Moore Machines

10/12/2016. An FSM with No Inputs Moves from State to State. ECE 120: Introduction to Computing. Eventually, the States Form a Loop

ELEC Digital Logic Circuits Fall 2014 Sequential Circuits (Chapter 6) Finite State Machines (Ch. 7-10)

Lecture (08) Synchronous Sequential Logic

EECS150 - Digital Design Lecture 17 - Sequential Circuits 3 (Counters)

Boolean Algebra and Digital Logic 2009, University of Colombo School of Computing

15.1 Elimination of Redundant States

DE58/DC58 LOGIC DESIGN DEC 2014

Models for representing sequential circuits

Review: Designing with FSM. EECS Components and Design Techniques for Digital Systems. Lec 09 Counters Outline.

Synchronous Sequential Circuit Design. Digital Computer Design

ENGG 1203 Tutorial _03 Laboratory 3 Build a ball counter. Lab 3. Lab 3 Gate Timing. Lab 3 Steps in designing a State Machine. Timing diagram of a DFF

Chapter 7 Logic Circuits

Lecture 14: State Tables, Diagrams, Latches, and Flip Flop

EECS150 - Digital Design Lecture 16 Counters. Announcements

DIGITAL LOGIC CIRCUITS

Philadelphia University Student Name: Student Number:

Review: Designing with FSM. EECS Components and Design Techniques for Digital Systems. Lec09 Counters Outline.

Show that the dual of the exclusive-or is equal to its compliment. 7

S.Y. Diploma : Sem. III [CO/CM/IF/CD/CW] Digital Techniques

Synchronous Sequential Logic Part I. BME208 Logic Circuits Yalçın İŞLER

Finite State Machine (FSM)

Philadelphia University Student Name: Student Number:

SIR C.R.REDDY COLLEGE OF ENGINEERING ELURU DIGITAL INTEGRATED CIRCUITS (DIC) LABORATORY MANUAL III / IV B.E. (ECE) : I - SEMESTER

FYSE420 DIGITAL ELECTRONICS

Counters. We ll look at different kinds of counters and discuss how to build them

Introduction EE 224: INTRODUCTION TO DIGITAL CIRCUITS & COMPUTER DESIGN. Lecture 6: Sequential Logic 3 Registers & Counters 5/9/2010

Department of Electrical & Electronics EE-333 DIGITAL SYSTEMS

ELE2120 Digital Circuits and Systems. Tutorial Note 9

XI STANDARD [ COMPUTER SCIENCE ] 5 MARKS STUDY MATERIAL.

LOGIC CIRCUITS. Basic Experiment and Design of Electronics

ECE/Comp Sci 352 Digital Systems Fundamentals. Charles R. Kime Section 2 Fall Logic and Computer Design Fundamentals

Lecture 17: Designing Sequential Systems Using Flip Flops

Digital Logic Design. Midterm #2

11.1 As mentioned in Experiment 10, sequential logic circuits are a type of logic circuit where the output of

CSE370 HW6 Solutions (Winter 2010)

Vidyalankar S.E. Sem. III [CMPN] Digital Logic Design and Analysis Prelim Question Paper Solution

Analysis and Design of Sequential Circuits: Examples

Digital Electronics. Part A

EE201l Homework #8. Datapath Design

Design at the Register Transfer Level

Design of Sequential Circuits

EE 209 Logic Cumulative Exam Name:

Unit 12 Problem Solutions

CSCI 2150 Intro to State Machines

Ch 7. Finite State Machines. VII - Finite State Machines Contemporary Logic Design 1

Total time is: 1 setup, 2 AND, 3 XOR, 1 delay = (1*1) + (2*2) + (3*3) + (1*1) = 15ns

LOGIC CIRCUITS. Basic Experiment and Design of Electronics. Ho Kyung Kim, Ph.D.

Synchronous Sequential Logic Part I

Parity Checker Example. EECS150 - Digital Design Lecture 9 - Finite State Machines 1. Formal Design Process. Formal Design Process

Lab 3 Revisited. Zener diodes IAP 2008 Lecture 4 1

Sequential Synchronous Circuit Analysis

UNIT 8A Computer Circuitry: Layers of Abstraction. Boolean Logic & Truth Tables

FSM Optimization. Counter Logic Diagram Q1 Q2 Q3. Counter Implementation using RS FF 10/13/2015

S No. Questions Bloom s Taxonomy Level UNIT-I

Chapter 3 Digital Logic Structures

ENGG 1203 Tutorial. Solution (b) Solution (a) Simplification using K-map. Combinational Logic (II) and Sequential Logic (I) 8 Feb Learning Objectives

Fundamentals of Digital Design

or 0101 Machine

Digital Logic Appendix A

( c) Give logic symbol, Truth table and circuit diagram for a clocked SR flip-flop. A combinational circuit is defined by the function

Transcription:

Analysis of clocked sequential networks keywords: Mealy, Moore Consider : a sequential parity checker an 8th bit is added to each group of 7 bits such that the total # of 1 bits is odd for odd parity if any odd # of bits in the 8 bit block changes value then the presence of this error can be detected we'll design a parity checker for serial data: first generate a state graph S0: even number of 1's received so far S1: odd number of 1's received so far generate the state table State Table X : input Present State Next State 0 S0 S0 1 S0 S1 0 S1 S1 1 S1 S0 Since we only have two states, one bit will be used (or a single flipflop) We set up a table showing the next state as a function of the present state and the value of the current input signal X. We will use a T flip flop X Q Q+ T

0 0 0 0 1 0 1 1 0 1 1 0 1 1 0 1 from this table note that T is 1 whenever X is 1. so we do not need to do any further simplification, our circuit solution is:. If the output of a sequential circuit is a function of the present state only the network is referred to as a MOORE machine. (has output associated with the state in the state graph) output can change only when the state changes. If the output is a function of both the present state and the input, the newtork is a MEALY machine ( has output associated with arrows). output can change when the input changes as well as when the state changes. Stages of Sequential network design 1. construct state graph 2. identify how many states are required, allocate bits to represent these states (State Assignment) 3. from state tables, implement karnaugh maps

4. complete design of meally or moore machine Designing with MSI components note: state graphs that have a loop of states, with few additional state transitions can be realized with a counter (synchronous counter with load and clear) Example, design a sequential network using 74S163 counter Function of 74S163 counter 1. clear = 0 all flipflops set to 0 following rising edge of clock. 2. clea = 1, load = 0, D inputs transferred in parallel to flipflops after rising edge of clock. 3. clear = load = 1 and P = T =1, count is enabled counter state incremented by 1 after each rising edge of clock. State Table (note: P = T enables count) clear load P = T Qd+ Qc+ Qb+ Qa+ function 0 X X 0 0 0 0 clear 1 0 X Dd Dc Db Da parallel load 1 1 0 Qd Qc Qb Qa no change 1 1 1 Present state + 1 increment counter Now consider designing with this counter to implement a state machine defined below, where the input signal is X. (note arcs shown with both "0,1" on them, indicate a mandatory transition to the next state for either case X=0 or X=1).

Note only 3 bits of state are used, ie. S1 = 001 = CBA. Create state table, derive counter inputs from state table X State C B A C+ B+ A+ clear load Dc Db Da P = T 0 S0 000 001 1 1 x x x 1 0 S1 001 010 1 1 x x x 1 0 S2 010 000 0 X x x x x 0 S3 011 110 1 0 1 1 0 x 0 S4 100 100 1 1 x x x 0 0 S5 101 011 1 0 0 1 1 x 0 S6 110 000 0 X x x x x 1 S0 000 001 1 1 x x x 1 1 S1 001 010 1 1 x x x 1 1 S2 010 011 1 1 x x x 1 1 S3 011 100 1 1 x x x 1 1 S4 100 101 1 1 x x x 1 1 S5 101 110 1 1 x x x 1 1 S6 110 000 0 X x x x x 0 or 1 Sx 111 XXX X X x x x x Then derive Kmaps for clear, load, PT, Da, Db, Dc Click here for kmaps ie. Kmap for PT X A \ B C 00 01 11 10 00 1 0 x x 01 1 x x x 11 1 1 x 1

10 1 1 x 1 therefore PT = (c' + x ) Circuit is given below, with Db=1 Three State Logic and Register Transfers 3 state logic facilitates transfer of data among a group of registers note: if outputs of 2 or more gates are connected together the circuit will not operate properly in general ie if one gate outputs 0 and the other gate outputs 1 then when the outputs are connected together the output may be 0 or 1 or some intermediate value. so we use tristate buffers (or 3-state buffers) A: data input, B: gate or control, C: output signal. When B=0, the buffer acts as an open circuit (output C is effectively disconnnected from the buffer output, so that no current can flow. This is called high-impedance state (Hi-Z) of the output. Ie. the circuit offers very high resistance or impedance to the flow of current). A B C 0 0 Z 1 0 Z 0 1 0 1 1 1 Z represents high impedance state. below, 74LS374 is an octal register with 3-state outputs.

Below is an example of a bus, where several outputs are connected to the same wire. Design of Sequential Networks Using ROMs Example of mealy network designed with ROM (similar to PLA, except in PLA design, assignment of states plays important role in reducing costs). For example ROM design may require 16 words by 4 bit ROM, or alternatively in PLA design 9 product terms. Design Using PLDs

Design with FPGA, involves mapping our design into a number of combinational logic blocks where each logic block may be ie. XC2000 series, 1 function of 4 variables 2 functions of 3 variables ie. XC3000 series 5-input look up table, 1 function of 5 variables 2 4-input look up tables, 2 functions of 4 variables Example: realize the following expression in XC2000 FPGA Qa+= (Sh Si) + Sh' L Da + Sh' L' Qa, a function of 5 variables, requiring two logic blocks in XC2000 technology. Factoring yields the expression Qa+= (Sh Si) + Sh' F1, where F1 =( L Da + L' Qa) In fact this equation is a part of the 74178 shift register defined by SH(shift) L(load) 0 0 0 1 1 X Qa+ Qb+ Qc+ Qd+ Qa Qb Qc Qd (no change) Da Db Dc Dd (parallel load) SI Qa Qb Qc (right shift) where the next state equation is Qa+ = (Sh Si) + Sh' L Da + Sh' L' Qa, realizing this as a sequential element using two logic blocks with the D flipflops(included in block in FPGA), we get:

Implementing a 5 variable logic function with XC2000 series requires the following arrangement in general: Iterative Design with multiple outputs Design with mealy state diagrams extract truth table design logic of cell (or block) Example: Design the following circuit: Zi is 1 iff input to cell i (Xi) is 0 and inputs to cells immediately to left of celli consists of group of an even # of consecutive 1's. X= 01100111011110000100 Z= 00010000000001000000 we need 3 states: reset S0, odd # 1's S1, S2 even # of 1's.

state diagram is: Si ai bi ai+1 bi+1 for ai+1 bi+1 for Zi : xi=0 xi=0 xi=1 xi=1 S0 00 00 01 0 0 S1 01 00 10 0 0 S2 10 00 01 1 0 so cell is Note: similarly with iterative binary adder network one can obtain sequential "serial adder", see below:

Other Sequential Designs Now we can make a parallel adder with accumulator parity checker (with input X) revisited as sequential circuit: magnitude comparator (with inputs X,Z) as sequential circuit: