Lecture 6 Coffee Vending Machine using FPGA

Slides:



Advertisements
Similar presentations
ENGIN112 L23: Finite State Machine Design Procedure October 27, 2003 ENGIN 112 Intro to Electrical and Computer Engineering Lecture 23 Finite State Machine.
Advertisements

Chapter #8: Finite State Machine Design 8
Finite State Machines (FSMs)
TOPIC : Finite State Machine(FSM) and Flow Tables UNIT 1 : Modeling Module 1.4 : Modeling Sequential circuits.
Give qualifications of instructors: DAP
Sequential Circuits1 DIGITAL LOGIC DESIGN by Dr. Fenghui Yao Tennessee State University Department of Computer Science Nashville, TN.
Digital Electronics Chapter 5 Synchronous Sequential Logic.
SYEN 3330 Digital SystemsJung H. Kim 1 SYEN 3330 Digital Systems Chapter 6 – Part 1.
Circuits require memory to store intermediate data
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 37 Register Transfer Level
CS 151 Digital Systems Design Lecture 25 State Reduction and Assignment.
Sequential Circuit Design
ECE 331 – Digital System Design Introduction to and Analysis of Sequential Logic Circuits (Lecture #20) The slides included herein were taken from the.
ECE 331 – Digital System Design
ECE C03 Lecture 101 Lecture 10 Finite State Machine Design Hai Zhou ECE 303 Advanced Digital Design Spring 2002.
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.
11/10/2004EE 42 fall 2004 lecture 301 Lecture #30 Finite State Machines Last lecture: –CMOS fabrication –Clocked and latched circuits This lecture: –Finite.
Sequential Circuit Design
Spring 2002EECS150 - Lec15-seq2 Page 1 EECS150 - Digital Design Lecture 15 - Sequential Circuits II (Finite State Machines revisited) March 14, 2002 John.
Contemporary Logic Design FSM Optimization © R.H. Katz Transparency No Chapter #9: Finite State Machine 9.4 Choosing Flip-Flops 9.5 Machine Partitioning.
ENEE 408C Lab Capstone Project: Digital System Design Fall 2005 Sequential Circuit Design.
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)
ENGIN112 L25: State Reduction and Assignment October 31, 2003 ENGIN 112 Intro to Electrical and Computer Engineering Lecture 25 State Reduction and Assignment.
9/15/09 - L22 Sequential Circuit Design Copyright Joanne DeGroat, ECE, OSU1 Sequential Circuit Design Creating a sequential circuit to address a.
ECE/CS 352 Digital System Fundamentals© T. Kaminski & C. Kime 1 ECE/CS 352 Digital Systems Fundamentals Spring 2001 Chapter 4 – Part 3 Tom Kaminski & Charles.
FPGA-Based System Design: Chapter 5 Copyright  2004 Prentice Hall PTR Topics n Basics of sequential machines. n Sequential machine specification. n Sequential.
Digital Computer Design Fundamental
Chapter 5 - Part Sequential Circuit Design Design Procedure  Specification  Formulation - Obtain a state diagram or state table  State Assignment.
Lecture 1 Combinational Logic Design & Flip Flop 2007/09/07 Prof. C.M. Kyung.
1 COMP541 State Machines Montek Singh Feb 8, 2012.
Lecture 5 Key Locker using FPGA 2007/10/05 Prof. C.M. Kyung.
Lecture 2 Sequential Logic Design 2007/09/14 Prof. C.M. Kyung.
Chap 4. Sequential Circuits
Chapter 10 State Machine Design. 2 State Machine Definitions State Machine: A synchronous sequential circuit consisting of a sequential logic section.
1/8/ L20 Project Step 8 - Data Path Copyright Joanne DeGroat, ECE, OSU1 State Machine Design with an HDL A methodology that works for documenting.
Lecture 18 More Moore/Mealy machines.
Introduction to Sequential Logic Design Finite State-Machine Design.
CPEN Digital System Design Chapter 5 - Sequential Circuits Sequential Circuit Design C. Gerousis © Logic and Computer Design Fundamentals, 4 rd Ed.,
Topic: Sequential Circuit Course: Logic Design Slide no. 1 Chapter #6: Sequential Logic Design.
CSIE.NCTU, DL-6-1 Basic Design Approach of FSM Six Step Process 1. Understand the statement of the Specification 2. Obtain an abstract specification of.
DLD Lecture 26 Finite State Machine Design Procedure.
1 Finite State Machines (FSMs) Now that we understand sequential circuits, we can use them to build: Synchronous (Clocked) Finite State Machines Finite.
1 State Reduction Goal: reduce the number of states while keeping the external input-output requirements unchanged. State reduction example: a: input 0.
1 COMP541 State Machines – 2 Registers and Counters Montek Singh Feb 11, 2010.
1 COMP541 Finite State Machines - 1 Montek Singh Sep 22, 2014.
© 2009 Pearson Education, Upper Saddle River, NJ All Rights ReservedFloyd, Digital Fundamentals, 10 th ed Digital Logic Design Dr. Oliver Faust.
1 Overview of CS 151 Fall Combinational Logic Design –Simplifying a logic function using algebraic method –Truth table and logic function representation.
ACCESS IC LAB Graduate Institute of Electronics Engineering, NTU 99-1 Under-Graduate Project Design of Datapath Controllers Speaker: Shao-Wei Feng Adviser:
Common Elements in Sequential Design. Lecture 3 topics  Registers and Register Transfer  Shift Registers  Counters Basic Counter Partial sequence counters.
EMT 351/4 DIGITAL IC DESIGN Verilog Behavioral Modeling  Finite State Machine -Moore & Mealy Machine -State Encoding Techniques.
Pusat Pengajian Kejuruteraan Mikroelektronik EMT 351/4 DIGITAL IC DESIGN Verilog Behavioural Modeling (Part 4) Week #
1 COMP541 Sequential Logic – 2: Finite State Machines Montek Singh Feb 29, 2016.
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.
State Machine Design with an HDL
Chapter #6: Sequential Logic Design
COMP541 Sequential Logic – 2: Finite State Machines
Learning Outcome By the end of this chapter, students are expected to refresh their knowledge on sequential logic related to HDL.
FIGURE 5.1 Block diagram of sequential circuit
Digital Design Lecture 9
332:437 Lecture 12 Finite State Machine Design
Lecture Part A Combinational Logic Design & Flip Flop
State Machine Design with an HDL
Lecture 20 Logistics Last lecture Today HW6 due Wednesday
Lecture 22 Logistics Last lecture Today HW7 is due on Friday
Lecture 22 Logistics Last lecture Today HW7 is due on Friday
Presentation transcript:

Lecture 6 Coffee Vending Machine using FPGA 2007/10/12 Prof. C.M. Kyung

Vending Machine Design Using FPGA 1. GOAL is ~ (1) Understanding of FSM and Its Sequential Behaviors (2) Understanding of the Design Procedure for FSM (3) Design of the FSM for Vending Machine and Implementation

Vending Machine Design Using FPGA 2. Moore machine and Mealy machine Moore Machine Outputs are function solely of the current state Outputs change synchronously with state changes Mealy Machine Outputs depend on state AND inputs Input change causes an immediate output change Asynchronous signals

Vending Machine Design Using FPGA 2. FSM Design Procedure Step1 : Understand the statement of specification Step2 : Obtain an abstract specification of the FSM Step3 : Perform state minimization Step4 : Perform state assignment Step5 : Choose FF types for implementing the FSM’s state Step 6: Implement the finite state machine

Vending Machine Design Using FPGA 3. Design Procedure for State Machines (1) Description of SM - State diagram, SM chart, … (2) State Optimization - Elimination of redundant states, … (3) State Encoding - Gray, One-hot, Thermometer, … (4) Logic Minimization - K-MAP, Quine-Mckluskey Method, … In modern design flows, these are usually done easily with CAD tools

Vending Machine Design Using FPGA 4. State Machine Design (1) State Graph, State Table

Vending Machine Design Using FPGA 4. State Machine Design (2) No state machine optimization (3) State encoding

Vending Machine Design Using FPGA 4. State Machine Design (4) Result of Logic Minimization

Vending Machine Design Using FPGA 5. Practical Design of FSM (1) In good design, data path and control path are clearly separated

Vending Machine Design Using FPGA (2) Example description of FSM in Verilog HDL

Vending Machine Design Using FPGA (3) Timing Constraints for Sequential Logics - Set-up time (Tsu) Input should be “set-up” early enough before the clocking event. - Hold time (Th) Input should be “held” at least some time after the clocking event.

Vending Machine Design Using FPGA (4) Synchronizations of External Inputs - Bouncing - In mechanical switching, any two metal contacts generate multiple signals as the contacts close or open. - This should be prohibited for properly working in the digital logic circuits.

Vending Machine Design Using FPGA (5) De-bouncing Technique - RC De-bouncer - Flip-Flop Based De-bouncer - Software Based De-bouncer switch signal CLK

Vending Machine Design Using FPGA 6. Problem statement (1) Vending Machine System - 사용하는 동전은 50원 / 100원 - 판매하는 커피는 두 종류이고 가격은 각각 100원 / 200원 - 자판기가 받아들일 수 있는 금액은 최대 300원 - 반환 버튼을 누르면 그 때까지 투입된 동전은 모두 반환

Vending Machine Design Using FPGA 6. Problem statement - LED 를 이용한 출력신호의 확인

Vending Machine Design Using FPGA 7. Experiment Requirements (1) Equipment - Breadboard - KeyLocker Machine - DC Power Supply (2) Component - Switch (3) TTL IC’s - 7400 (2 input NAND gate) - 7404 (Inverter) - 7408 (2 input AND gate) - 7410 (3 input NAND gate) - 74LS73 ( Dual J-K flip-flop ) - 74LS74 ( Dual D-Type flip-flop )

Vending Machine Design Using FPGA 8. References (1) Textbook - Contemporary Logic Design - Katz - Fundamentals of Logic Design - Roth (2) 6st Week T.A. E-mail sckid@eeinfo.kaist.ac.kr thkim@icslab.kaist.ac.kr hsjeon@icslab.kaist.ac.kr (3) Lecture Homepage http://wink.kaist.ac.kr/course/ee306/