VHDL Workshop FSM. FSM-Smart Counter Requirements Receives a start signal. When start signal goes high, starts to count from zero: reset value – 0, first.

Slides:



Advertisements
Similar presentations
What are FPGA Power Management HDL Coding Techniques Xilinx Training.
Advertisements

VHDL 5 FINITE STATE MACHINES (FSM) Some pictures are obtained from FPGA Express VHDL Reference Manual, it is accessible from the machines in the lab at.
Lecture 15 Finite State Machine Implementation
1 Lecture 16 Timing  Terminology  Timing issues  Asynchronous inputs.
Combinational Logic.
Lecture #28 Page 1 ECE 4110– Sequential Logic Design Lecture #28 Agenda 1.Counters Announcements 1.HW #13 assigned 2.Next: Test #2 Review.
Registers and Counters
Table 7.1 Verilog Operators.
1 Asynchronous Bit-stream Compression (ABC) IEEE 2006 ABC Asynchronous Bit-stream Compression Arkadiy Morgenshtein, Avinoam Kolodny, Ran Ginosar Technion.
Dr. Turki F. Al-Somani VHDL synthesis and simulation – Part 2 Microcomputer Systems Design (Embedded Systems)
Asynchronous FSMs and Verilog. PLD registered output.
Advanced OS Chapter 3p2 Sections 3.4 / 3.5. Interrupts These enable software to respond to signals from hardware. The set of instructions to be executed.
VHDL Coding Exercise 4: FIR Filter. Where to start? AlgorithmArchitecture RTL- Block diagram VHDL-Code Designspace Exploration Feedback Optimization.
4/10/20081 Lab 9 RT methodology introduction Register operations Data Path Control Path ASM Example TA: Jorge Crichigno.
ENGIN112 L27: Counters November 5, 2003 ENGIN 112 Intro to Electrical and Computer Engineering Lecture 27 Counters.
Lab 10 RT methodology (cont’d) Example 1 – a counter Example 2 – a repetitive-adder multiplier.
CS370 Counters. Overview °Counter: A register that goes through a prescribed series of states °Counters are important components in computers. °Counters.
ECE 331 – Digital System Design Counters (Lecture #18)
M.S.P.V.L. Polytechnic College, Pavoorchatram
Sequential Circuit  It is a type of logic circuit whose output depends not only on the present value of its input signals but on the past history of its.
Counter Section 6.3.
Block Diagram of 4518 Dual BCD Counter The 4518 Dual BCD Counter has two BCD counters. Each counter is similar to the other. Each counter has a master.
Verilog Descriptions of Digital Systems. Electronic Lock // // Electronic combinational lock // module lock(seg7,key, valid_key, col, row, mclk, resetL)
Introduction to Counter in VHDL
Advanced FPGA Based System Design Lecture-9 & 10 VHDL Sequential Code By: Dr Imtiaz Hussain 1.
Advanced Digital Circuits ECET 146 Week 7 Professor Iskandar Hack ET 221B,
ECE 551 Digital System Design & Synthesis Fall 2011 Midterm Exam Overview.
Tami Meredith, Ph.D. CSCI  Devices need CPU access  E.g., NIC has a full buffer it needs to empty  These device needs are often asynchronous.
EEE515J1_L5-1/8 EEE515J1 ASICs and DIGITAL DESIGN Designing FSMs Ian McCrumRoom 5D03B Tel: voice.
1 ECE 545—Digital System Design with VHDL Lecture 6 Behavioral VHDL Coding (for Synthesis): Finite State Machines and ASMs 9/30/08.
RTL Hardware Design by P. Chu Chapter Overview on sequential circuits 2. Synchronous circuits 3. Danger of synthesizing asynchronous circuit 4.
ECEN 248: INTRODUCTION TO DIGITAL SYSTEMS DESIGN Lecture 17 Dr. Shi Dept. of Electrical and Computer Engineering.
Registers and Counters by Dr. Amin Danial Asham. References  Digital Design 5 th Edition, Morris Mano.
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.
Register Transfer Level & Design with ASM
Advanced Digital Circuits ECET 146 Week 6 Professor Iskandar Hack ET 221G, Me as I typed this slides.
CascadedBCDCntr&Display Aim : Capture, simulate and implement a 2-digit, loadable BCD up/down counter, with chip enable I/P (CE) and chip enable O/P (CEO).
Digital Logic Design.
Lecture 7 Chap 9: Registers Instructors: Fu-Chiung Cheng ( 鄭福炯 ) Associate Professor Computer Science & Engineering Tatung University.
BR 1/991 DataPath Elements Altera LPM library has many elements useful for building common datapath functions –lpm_ram_dq - recommended for either asynchronous.
Registers and Counters
Digital Electronics.
CEC 220 Digital Circuit Design Dice Game Wed, April 06 CEC 220 Digital Circuit Design Slide 1 of 15.
Basic Counters: Part I Section 7-6 (pp ).
ECE DIGITAL LOGIC LECTURE 20: REGISTERS AND COUNTERS Assistant Prof. Fareena Saqib Florida Institute of Technology Fall 2015, 11/19/2015.
THEME 6: Frequency dividers. Digital counters with reduced counting modulus. Programmable digital counters. If the input pulses are more than K, the counter.
Counters and registers Eng.Maha Alqubali. Registers Registers are groups of flip-flops, where each flip- flop is capable of storing one bit of information.
Lab5-1 張明峰 交大資工系 Lab 5: FSM and BCD counters Implement the vending machine of lab 2 A two-digit BCD counter –two BCD counters –can load data in parallel.
Figure Implementation of an FSM in a CPLD..
Sequential statements (1) process
Homework Reading Machine Projects Labs Tokheim Chapter 9.1 – 9.6
Last Lecture Talked about combinational logic always statements. e.g.,
Revision2 for CENG34340 (Self study exercise no need to submit)
Introduction Introduction to VHDL Entities Signals Data & Scalar Types
Some VHDL Details 10/8/08 ECE Lecture 8.
Part III A workshop by Dr. Junaid Ahmed Zubairi
Sequential Circuit: Counter
CPRE 583 Common VHDL mistakes “It works perfect in simulation,
D Flip-Flop.
332:437 Lecture 17 FSM Hardware Modification for Reliability
Elec 2607 Digital Switching Circuits
Non-synthesizable VHDL Poor Design Practices
CSE 370 – Winter Sequential Logic-2 - 1
CHAPTER 4 COUNTER.
Advanced FPGA Based System Design
Figure 8.1. The general form of a sequential circuit.
332:437 Lecture 17 FSM Hardware Modification for Reliability
The Verilog Hardware Description Language
332:437 Lecture 17 FSM Hardware Modification for Reliability
Lecture 4: Continuation of SystemVerilog
Presentation transcript:

VHDL Workshop FSM

FSM-Smart Counter Requirements Receives a start signal. When start signal goes high, starts to count from zero: reset value – 0, first clock after start – Out = 1, second clock after start- 2 etc. Counts until a user defined value. When finished, issues a Finish pulse and waits for a new start. Can receive a pause signal active high. In this case, will wait until pause goes down, and then continue

FSM-Top Level

FSM - Design Idle state Count state Pause state Pause = ‘0’ Pause = ‘1’ Start rising and pause = ‘1’ Start rising and pause = ‘0’ Finished counting

FSM – Writing Code Declare states used for FSM FSM divided into two processes: Synchronous – saves next state Asynchronous – decides where to go, control signals We use other processes for help

FSM – Declaration and Sync Process Which are FF’s and which are just wires?

FSM – Aiding process

FSM- Async Process Defaults Assignment at every branch

FSM- Async Process-continued

FSM- Test Bench

FSM – Test Bench - continued

FSM- in action

FSM - summary Before writing – design Divide into two processes Define states with meaningful names Every signal (wire) must have: An assignment in all possible branches, or Default assignment