Lecture 5 Key Locker using FPGA 2007/10/05 Prof. C.M. Kyung.

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

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
ECE C03 Lecture 81 Lecture 8 Memory Elements and Clocking Hai Zhou ECE 303 Advanced Digital Design Spring 2002.
Sequential Circuits1 DIGITAL LOGIC DESIGN by Dr. Fenghui Yao Tennessee State University Department of Computer Science Nashville, TN.
Circuits require memory to store intermediate data
CS 151 Digital Systems Design Lecture 37 Register Transfer Level
CS 151 Digital Systems Design Lecture 25 State Reduction and Assignment.
ECE 331 – Digital System Design Introduction to and Analysis of Sequential Logic Circuits (Lecture #20) The slides included herein were taken from the.
CS 300 – Lecture 3 Intro to Computer Architecture / Assembly Language Sequential Circuits.
ENGIN112 L20: Sequential Circuits: Flip flops October 20, 2003 ENGIN 112 Intro to Electrical and Computer Engineering Lecture 20 Sequential Circuits: Flip.
Contemporary Logic Design Sequential Case Studies © R.H. Katz Transparency No Chapter #7: Sequential Logic Case Studies 7.1, 7.2 Counters.
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.
CS 151 Digital Systems Design Lecture 20 Sequential Circuits: Flip flops.
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 331 – Digital System Design Sequential Circuit Design (Lecture #23) The slides included herein were taken from the materials accompanying Fundamentals.
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)
ECE C03 Lecture 91 Lecture 9 Registers, Counters and Shifters Hai Zhou ECE 303 Advanced Digital Design Spring 2002.
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.
Clocked Synchronous State Machine Design
Digital Computer Design Fundamental
Lecture 1 Combinational Logic Design & Flip Flop 2007/09/07 Prof. C.M. Kyung.
1 COMP541 State Machines Montek Singh Feb 8, 2012.
Synchronous Circuit Design (Class 10.1 – 10/30/2012) CSE 2441 – Introduction to Digital Logic Fall 2012 Instructor – Bill Carroll, Professor of CSE.
Lecture 2 Sequential Logic Design 2007/09/14 Prof. C.M. Kyung.
Digital Logic Design Review Dr. Ahmad Almulhem ahmadsm AT kfupm Phone: Office: Ahmad Almulhem, KFUPM 2010.
Chapter 10 State Machine Design. 2 State Machine Definitions State Machine: A synchronous sequential circuit consisting of a sequential logic section.
Lecture 4 Multiplier using FPGA 2007/09/28 Prof. C.M. Kyung.
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.
1 Lecture 22 State encoding  One-hot encoding  Output encoding State partitioning.
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.,
ACOE361 – Digital Systems Design. Useful information Instructor: Lecturer K. Tatas Office hours: Mo5, Tu3, We6-8, Fri5 Prerequisites: ACOE201 (ACOE161)
1 CSE370, Lecture 17 Lecture 17 u Logistics n Lab 7 this week n HW6 is due Friday n Office Hours íMine: Friday 10:00-11:00 as usual íSara: Thursday 2:30-3:20.
Computer Organization & Programming Chapter 5 Synchronous Components.
Lecture 6 Coffee Vending Machine using FPGA
DLD Lecture 26 Finite State Machine Design Procedure.
Lecture 11: FPGA-Based System Design October 18, 2004 ECE 697F Reconfigurable Computing Lecture 11 FPGA-Based System Design.
CEC 220 Digital Circuit Design Latches and Flip-Flops Monday, March 03 CEC 220 Digital Circuit Design Slide 1 of 19.
Synchronous Sequential Logic A digital system has combinational logic as well as sequential logic. The latter includes storage elements. feedback path.
1 COMP541 Finite State Machines - 1 Montek Singh Sep 22, 2014.
A sequential logic circuit (a.k.a. state machine) consists of both combinational logic circuit(s) and memory devices (flip flops). The combinational circuits.
© 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:
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.
Lecture 3 ALU and Carry Generator using FPGA 2007/09/21 Prof. C.M. Kyung.
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.
Digital Design Lecture 9
332:437 Lecture 12 Finite State Machine Design
Lecture Part A Combinational Logic Design & Flip Flop
CSE 370 – Winter Sequential Logic - 1
Lecture 17 Logistics Last lecture Today HW5 due on Wednesday
State Machine Design with an HDL
Lecture 17 Logistics Last lecture Today HW5 due on Wednesday
Lecture 14: State Tables, Diagrams, Latches, and Flip Flop
SEQUENTIAL CIRCUITS __________________________________________________
Presentation transcript:

Lecture 5 Key Locker using FPGA 2007/10/05 Prof. C.M. Kyung

2/17 Key Locker 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 Key Locker and Implementation on FPGAs

3/17 Key Locker Design Using FPGA 2. Review of Sequential Logic Circuits (1) Sequential Systems - Having memory. - The current state is “held” in memory and the next state is computed based on the current state and the current inputs. - Clock orchestrates the sequence of events

4/17 Key Locker Design Using FPGA 2. Review of Sequential Logic Circuits (1) Basic Building Blocks for Sequential Systems - D Flip Flop - T Flip Flop

5/17 Key Locker 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

6/17 Key Locker Design Using FPGA 4. State Machine Design (1) State Graph, State Table

7/17 Key Locker Design Using FPGA 4. State Machine Design (2) No state machine optimization (3) State encoding

8/17 Key Locker Design Using FPGA 4. State Machine Design (4) Result of Logic Minimization

9/17 Key Locker Design Using FPGA 5. Practical Design of FSM (1) In good design, data path and control path are clearly separated

10/17 Key Locker Design Using FPGA (2) Example description of FSM in Verilog HDL

11/17 Key Locker Design Using FPGA (3) Timing Constraints for Sequential Logics - Set-up time (T su ) Input should be “set-up” early enough before the clocking event. - Hold time (T h ) Input should be “held” at least some time after the clocking event.

12/17 Key Locker 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.

13/17 Key Locker Design Using FPGA (5) De-bouncing Technique - RC De-bouncer - Flip-Flop Based De-bouncer - Software Based De-bouncer switch signal CLK

14/17 Key Locker Design Using FPGA 6. Problem statement (1) Key Locker System - Given the *XXXXX* as the password input, the electric locker will be open or not. - Illegal password input should be handled gracefully. - Design should be implemented and verified within EPLD.

15/17 Key Locker Design Using FPGA 6. Problem statement (2) Key-Pad Circuit

16/17 Key Locker Design Using FPGA 6. Problem statement (3) Finite State Machine for Key Locker - Input from key-pad should be de-bounced - For each input from the key-pad circuit, the internal state in the FSM should be transit properly. - Password checking including illegal password handling.

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

18/17 Key Locker Design Using FPGA 8. References (1) Textbook - Contemporary Logic Design- Katz - Fundamentals of Logic Design- Roth (2) 5 st Week T.A. (3) Lecture Homepage