EGR224 F 18 Assignment #4

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

Synchronous Sequential Circuit Design. Digital Computer Design

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

Example: vending machine

Finite State Machine (FSM)

CPE100: Digital Logic Design I

Digital Logic Design - Chapter 5

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

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

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

Sequential Circuit Design

Different encodings generate different circuits

Chapter 6. Synchronous Sequential Circuits

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

Finite State Machine. By : Ali Mustafa

Lecture 10: Synchronous Sequential Circuits Design

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

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

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

or 0101 Machine

CE1911 LECTURE FSM DESIGN PRACTICE DAY 1

ECE 341. Lecture # 3

Generalized FSM model: Moore and Mealy

EECS150 - Digital Design Lecture 18 - Counters

EECS150 - Digital Design Lecture 18 - Counters

CPE100: Digital Logic Design I

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

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

Appendix A: Digital Logic. Principles of Computer Architecture. Principles of Computer Architecture by M. Murdocca and V. Heuring

EECS150 - Digital Design Lecture 23 - FSMs & Counters

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

CSEE W3827 Fundamentals of Computer Systems Homework Assignment 3

FYSE420 DIGITAL ELECTRONICS

ECE380 Digital Logic. Synchronous sequential circuits

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

Clocked Synchronous State-machine Analysis

CPE100: Digital Logic Design I

FSM model for sequential circuits

CprE 281: Digital Logic

CSEE W3827 Fundamentals of Computer Systems Homework Assignment 3 Solutions

Synchronous Sequential Circuit Design

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

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

Sequential Synchronous Circuit Analysis

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

ENEL Digital Circuit Design. Final Examination

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

Models for representing sequential circuits

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

Lecture 17: Designing Sequential Systems Using Flip Flops

Analysis and Design of Sequential Circuits: Examples

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

State & Finite State Machines

IE1204 Digital Design. L10: State Machines (Part 2) Masoumeh (Azin) Ebrahimi Elena Dubrova

Sequential logic and design

5 State Minimisation. university of applied sciences hamburg. Digital Systems. Prof. Dr. J. Reichardt Prof. Dr. B. Schwarz

EECS150 - Digital Design Lecture 16 Counters. Announcements

Present Next state Output state w = 0 w = 1 z A A B 0 B A C 0 C A C 1

EXPERIMENT Traffic Light Controller

Lecture 8: Sequential Networks and Finite State Machines

Example: A vending machine

CS/ECE 252: INTRODUCTION TO COMPUTER ENGINEERING COMPUTER SCIENCES DEPARTMENT UNIVERSITY OF WISCONSIN-MADISON

University of California at Berkeley College of Engineering Department of Electrical Engineering and Computer Sciences

Appendix A: Digital Logic. CPSC 352- Computer Organization

State and Finite State Machines

Sequential Logic Optimization. Optimization in Context. Algorithmic Approach to State Minimization. Finite State Machine Optimization

Laboratory Exercise #11 A Simple Digital Combination Lock

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

Appendix A: Digital Logic. Principles of Computer Architecture. Principles of Computer Architecture by M. Murdocca and V. Heuring

State & Finite State Machines

ELCT201: DIGITAL LOGIC DESIGN

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

Written reexam with solutions for IE1204/5 Digital Design Monday 14/

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

CSE 140 Midterm 2 Tajana Simunic Rosing. Spring 2008

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

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

Digital Design. Sequential Logic

Mealy & Moore Machines

Lecture 7: Logic design. Combinational logic circuits

L10 State Machine Design Topics

12. Finite State Machine Design

Synchronous Sequential Logic

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

Lab #10: Design of Finite State Machines

ECE20B Final Exam, 200 Point Exam Closed Book, Closed Notes, Calculators Not Allowed June 12th, Name

ASYNCHRONOUS SEQUENTIAL CIRCUITS

Written exam for IE1204/5 Digital Design with solutions Thursday 29/

State Graphs FSMs. Page 1

Digital Electronics Sequential Logic

EE 209 Logic Cumulative Exam Name:

Module 10: Sequential Circuit Design

Philadelphia University Student Name: Student Number:

Finite State Machines CS 64: Computer Organization and Design Logic Lecture #15 Fall 2018

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

Sequential Logic Circuits

6 Synchronous State Machine Design

Lecture 13: Sequential Circuits, FSM

CMSC 313 Lecture 16 Announcement: no office hours today. Good-bye Assembly Language Programming Overview of second half on Digital Logic DigSim Demo

CHW 261: Logic Design

Transcription:

EGR224 F 18 Assignment #4 ------------------------------------------------------------------------------------------------------------- Due Date: Friday (Section 10), October 19, by 5 pm (slide it under my office door) Friday (Section 20), October 19, by 5 pm (slide it under my office door) Assigned Readings: Lecture notes pages 52 68 1. [5 pts] Consider the following circuit. Complete the timing diagram below. The initial values of Q1 and Q0 are both 1. NOTE: Please re-draw the timing diagram on a separate sheet of paper as part of your homework submission. The timing diagram: Must occupy a whole page in landscape mode Must be drawn either with a software program (AutoCad, Word, anything that can draw straight lines) or very neatly by hand using straight edges Must be clearly legible and easy to understand 2. [5 pts] Complete the timing diagram on the right based on the schematic shown on the left. Same rules apply as Problem #1 above. The initial values of Q1 and Q0 are both 0. 1

3. [15 pts] Design a counter which counts in the following sequence: 000, 001, 011, 111, 110, 100, 000, Use positive edge triggered D-type flip-flops a. [2 pts] Derive the truth table consisting of current states of the counter (QNQN-1 Q0) as the inputs and next states of the counter (QN * QN-1 * Q0 * ) as outputs. Show the complete truth table. b. [3 pts] Derive the equations for each output. Minimize them (using any approach) as much as you can. Show your work! c. [5 pts] Draw the final schematic using the D-type flip-flops and provide proper connections between inputs and outputs. d. [5 pts] Draw the timing diagram for the schematic obtained in Part c above. The timing diagram should cover all the possible state transition mentioned in the problem statement. Please draw timing diagram on a separate sheet of paper as part of your homework submission. Assume all QN s to be 0 to begin with. NOTE: Include following signals in your timing diagram i.e., CLK, all the Q s and all the D s. 4. [5 pts] Given the following State Transition Diagram (STD), complete the timing chart below: 2

5. [5 pts] Consider the following state transition table: INPUT CURRENT STATE NEXT STATE OUTPUTS Is X a Mealy or Moore output? Is Y a Mealy or Moore output? Justify your answer Justify your answer 6. [5 pts] Given the Timing Diagram below, for a state machine that has one input (EN) and two state variables Q1 and Q0, derive a state transition diagram (STD): 3

7. [35 points] Design an FSM for the vending machine. A sequential network is used to control the operation of a vending machine which dispenses a $0.15 product. The network has two inputs, Nickel (N), and Dime (D), and has two outputs, Change Returned (C), and Product Delivered (P). The coin detector mechanism in the vending machine is synchronized with the same clock as the sequential network you are to design. The coin detector outputs a single 1 to the N, or D input for every nickel or dime, respectively that the customer inserts. Only one input will be 1 at a time. When the customer has inserted at least $0.15 in any combination of nickels and dimes, the vending machine must give change and dispense the product. The coin return mechanism gives change by returning nickels to the customer. For every 1 output on C, the coin return mechanism will return one nickel to the customer. The product is dispensed when the network outputs a single 1 on output R. The network should reset after dispensing the product. EXAMPLE: look like this: The customer inserts two nickels and a dime. The network inputs and outputs could INPUTS: N = 0 0 0 1 0 0 0 1 0 0 0 0 0 0 0 D = 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 OUTPUTS: R = 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 C = 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 Note that any number of zeros can occur between two 1 inputs. Your deliverables are: [1 pt] A description of your design, explaining your design choices, challenges, etc. [4 pts] A clearly drawn, neat, legible state transition diagram (using Word, Dia, Visio, or similar). Figure 1 on page 56 of your lecture notes is a standard that you can use to measure your own drawing s quality. [1 pt] The state assignment (Using minimum number of bits) [3 pts] The next-state transition table [3 pts] The logic equations derived from your table (minimize them) [1 pt] Now, do the state assignment (One hot encoding) 4

[3 pts] The next-state transition table [3 pts] The logic equations derived from your table (minimize them) [1 pt] Which one of the encoding scheme provides simpler expression? Choose that one to implement. [1 pt] Output logic table (using the above chosen encoding scheme) [2 pts] Output logic equation [5 pts] A final, complete schematic for the whole FSM, professionally drawn (using Xilinx ISE). [7 pts] Simulations of your FSM s behavior in Xilinx. Make sure you annotate your simulations or somehow otherwise indicate to your instructor what each simulation means. Do not expect your instructor to look at a bunch of signals going high and low and be able to figure out what it means! 5