Digital Design 2010 DE2 1

Similar documents
FYSE420 DIGITAL ELECTRONICS

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

CPE100: Digital Logic Design I

Clocked Synchronous State-machine Analysis

Digital Circuits and Systems

Sequential logic and design

Digital Logic and Design (Course Code: EE222) Lecture 19: Sequential Circuits Contd..

Lecture 10: Synchronous Sequential Circuits Design

Synchronous Sequential Circuit Design. Digital Computer Design

Topic 8: Sequential Circuits

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

Chapter 5 Synchronous Sequential Logic

Digital Design. Sequential Logic

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

Finite State Machine. By : Ali Mustafa

CPE100: Digital Logic Design I

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

ELCT201: DIGITAL LOGIC DESIGN

Chapter 3. Digital Design and Computer Architecture, 2 nd Edition. David Money Harris and Sarah L. Harris. Chapter 3 <1>

Synchronous Sequential Logic

Topic 8: Sequential Circuits. Bistable Devices. S-R Latches. Consider the following element. Readings : Patterson & Hennesy, Appendix B.4 - B.

Logical design of digital systems

CprE 281: Digital Logic

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

ECE380 Digital Logic. Synchronous sequential circuits

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

Chapter 3. Chapter 3 :: Topics. Introduction. Sequential Circuits

Chapter 7 Sequential Logic

Models for representing sequential circuits

Digital Logic Design - Chapter 4

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

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

Mealy & Moore Machines

Chapter 6. Synchronous Sequential Circuits

Synchronous Sequential Circuit Design. Dr. Ehab A. H. AL-Hialy Page 1

Design of Datapath Controllers

FSM model for sequential circuits

CPE100: Digital Logic Design I

Synchronous Sequential Circuit

Review for B33DV2-Digital Design. Digital Design

EE 209 Logic Cumulative Exam Name:

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

COE 202: Digital Logic Design Sequential Circuits Part 3. Dr. Ahmad Almulhem ahmadsm AT kfupm Phone: Office:

Preparation of Examination Questions and Exercises: Solutions

I. Motivation & Examples

Chapter 14 Sequential logic, Latches and Flip-Flops

Different encodings generate different circuits

Analysis and Design of Sequential Circuits: Examples

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

Chapter 15 SEQUENTIAL CIRCUITS ANALYSIS, STATE- MINIMIZATION, ASSIGNMENT AND CIRCUIT IMPLEMENTATION

Chapter 7. Synchronous Sequential Networks. Excitation for

Digital Logic Design - Chapter 5

Sequential Logic. Handouts: Lecture Slides Spring /27/01. L06 Sequential Logic 1

CSE140: Components and Design Techniques for Digital Systems. Midterm Information. Instructor: Mohsen Imani. Sources: TSR, Katz, Boriello & Vahid

EE40 Lec 15. Logic Synthesis and Sequential Logic Circuits

Sequential Circuits Sequential circuits combinational circuits state gate delay

Topics for Lecture #9. Button input processor

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

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

COE 202: Digital Logic Design Sequential Circuits Part 3. Dr. Ahmad Almulhem ahmadsm AT kfupm Phone: Office:

EGR224 F 18 Assignment #4

6. Finite State Machines

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

Sequential Synchronous Circuit Analysis

Finite State Machine (FSM)

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

Digital Logic Design. Midterm #2

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

Lecture 17: Designing Sequential Systems Using Flip Flops

Philadelphia University Student Name: Student Number:

University of Guelph School of Engineering ENG 2410 Digital Design Fall There are 7 questions, answer all questions.

CMPE12 - Notes chapter 2. Digital Logic. (Textbook Chapters and 2.1)"

Homework #4. CSE 140 Summer Session Instructor: Mohsen Imani. Only a subset of questions will be graded

Finite State Machine (1A) Young Won Lim 6/9/18

EEE2135 Digital Logic Design

Y. Tsiatouhas. VLSI Systems and Computer Architecture Lab

Lecture 9: Digital Electronics

CSE140: Digital Logic Design Registers and Counters

Lecture 8: Sequential Networks and Finite State Machines

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

Lecture (08) Synchronous Sequential Logic

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

Last lecture Counter design Finite state machine started vending machine example. Today Continue on the vending machine example Moore/Mealy machines

State & Finite State Machines

Computers also need devices capable of Storing data and information Performing mathematical operations on such data

Faculty of Engineering. FINAL EXAMINATION FALL 2008 (December2008) ANSWER KEY

INF2270 Spring Philipp Häfliger. Lecture 8: Superscalar CPUs, Course Summary/Repetition (1/2)

Sequential Logic. Rab Nawaz Khan Jadoon DCS. Lecturer COMSATS Lahore Pakistan. Department of Computer Science

12. Finite State Machine Design

MAHALAKSHMI ENGINEERING COLLEGE TIRUCHIRAPALLI

ELCT201: DIGITAL LOGIC DESIGN

LOGIC CIRCUITS. Basic Experiment and Design of Electronics

Digital Electronics. Delay Max. FF Rate Power/Gate High Low (ns) (MHz) (mw) (V) (V) Standard TTL (7400)

ALU, Latches and Flip-Flops

ECE 341. Lecture # 3

Example: vending machine

Digital Electronics Sequential Logic

State and Finite State Machines

Department of Electrical and Computer Engineering University of Wisconsin Madison. Fall Final Examination

Lecture 13: Sequential Circuits, FSM

Transcription:

1 Underviser: D. M. Akbar Hussain Litteratur: Digital Design Principles & Practices 4 th Edition by yj John F. Wakerly 2 DE2 1

3 4 DE2 2

To enable students to apply analysis, synthesis and implementation of basic digital circuits. 5 Students can make analysis and should be able to design digital circuits which is a central feature of data or electrical engineering. 6 DE2 3

Multi-vibrators & Sequential circuits. Bi-stable Circuits, Structure of Mono-stable and A-stable circuits. Modeling, Analysis and Synthesizing of circuits. Mealy and Moore State Machines there analysis, design and realization. Counters and Shift Registers. 7 Modul 1 8 DE2 4

A circuit which is used to build most common two state systems, for example Oscillator, Timers and flip-flops. Astable: Circuit is not stable in either state and continuously oscillates from one state to the other and it does not require any input, for example clock etc. Monostable: Obviously as the name says it can have one stable state and one unstable state and it can flip into the unstable state for a determined period, but will eventually return to the stable state. Such a circuit is useful for creating a timing period of fixed duration in response to some external event. This circuit is also known as a one shot. Bistable: In such a circuit it will remain in one of the two states indefinitely. The circuit can be flipped from one state to the other by an external event or trigger. This type circuit is the fundamental building block of a register or memory device. This circuit is also known as a latch or a flip-flop. 9 10 DE2 5

Depend upon current input values as well as past sequence applied. A circuit with n binary state variables can have 2 n possible states. Always Finite Never Infinite 11 What is a FSM It is a quintuple (Σ, S, A, δ, F), where: Σ input alphabet (a finite set of symbols) S finite set of states A an initial state, an element of S δ the state transition function: δ: S x Σ S F set of final states, a subset of S. 12 DE2 6

13 Mealy & Moore Models Input Actions (State & Inputs) Entry Actions (State) 14 DE2 7

Clocked Synchronous State Machine (Mealy Machine) Next State = F (current state, input) Output = G (current state, input) 15 Clocked Synchronous State Machine (Moore Machine) Output = G (current state) 16 DE2 8

Mealy Machine with Pipelined Outputs 17 18 DE2 9

Micro-Architecture Pipeline Stages Intel P5 (Pentium) 5 Intel P6 (Pentium Pro) 14 Intel P6 (Pentium III) 10 IBM PowerPC 7 17 IBM Xenon 19 AMD Athlon 10 AMD Athlon XP 11 AMD Athlon64 12 AMD Phenom 12 AMD Opteron 15 19 Describing the function of a circuit: 20 DE2 10

Definition of a state machine: Next state = F (current state, input) Output = G (current state, input) 21 D0 = Q0 EN + Q0 EN D1 = Q1 EN + Q1 Q0 EN + Q1 Q0 EN 22 DE2 11

23 24 DE2 12

25 26 DE2 13

27 1. Determine the excitation equations for the flip-flops. flops. 2. Substitute them into the characteristics equations to get the transition equations. 3. Use the transition equations to construct a transition table. 4. Determine the output equations. 5. Create a transition/output table. 6. Name the states. 7. Draw a state diagram. 28 DE2 14

29 30 DE2 15

31 1. Construct a state / Output table. 2. If possible minimise the number of states. 3. Choose a set of state variable for state assignments. 4. Create a transition/output table by substituting state variable combinations into state/output table. 5. Select / Choose a flip flop, almost always it is D type flip flop. 6. Construct an excitation table, which shows the excitation values required to get to the next desired state for all possible state/input combinations. 7. Derive excitation equations from excitation table. 8. Derive output equations from the transition table. 9. Draw a logic diagram. 32 DE2 16

33 1. From this verbal description create/construct a state / Output table. 2. Minimise the number of states. The basic idea is that two or more states are equivalent if it is impossibleibl to distinguishi i by observing the current and future output of the machine. Typically, these techniques are rarely used, because some time increasing the number of states simplifies the design, most engineers simplify the machine during state assignment (next step). A B Q1Q2Q3 00 01 11 10 Z A B B C C 0 B D D C C 0 C B B E E 0 D D D E C 1 E B D E E 1 34 DE2 17

35 Minimal Risk Minimal Cost 36 DE2 18

37 Transition & Output Table 38 DE2 19

Excitation & Output Table 39 D1 = Q2. Q3 + Q1 D2 = Q1. Q3. A + Q1. Q3. A + Q1. Q2. B D3 = Q1. A + Q2. Q3. A Z = Q1. Q2. Q3 + Q1 Q2 Q3 Z = Q1. Q2 40 DE2 20

Design aclocked synchronous state machine with 2inputs X, Y and output Z. The output should be 1if the number of inputs on Xand Ysince reset is a multiple of 4and 0 otherwise. 41 42 DE2 21

D1 = Q2. X. Y + Q1. X. Y + Q1. X. Y + Q2. X. Y D2 = Q1. X. Y + Q1. X. Y + Q2. X. Y + Q2. X. Y Z = Q1. Q2 43 44 DE2 22

45 D1 = Q1. Q2. X + Q1. Q2. Q3 + Q1. Q2. Q3 D2 = Q2. Q3. X + Q2. Q3. X D3 = Q1. Q2. Q3 + Q1. Q3. X + Q2. X. + Q3. Q1. X + Q2. Q3. X 46 DE2 23

UNLK = Q1. Q2. Q3. X HINT = Q1. Q2. Q3. X + Q1. Q2. X + Q2. Q3. X + Q2. Q3. X + Q2. Q3. X 47 48 DE2 24