Advanced FPGA Based System Design

Slides:



Advertisements
Similar presentations
Digital System Design-II (CSEB312)
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.
STATE DIAGRAM AND STATE TABLES
State-machine structure (Mealy)
1 Statements. 2 Statements - 강의순서 ▣ 병행 (Concurrent) Statement ◈ Concurrent Signal Assignment, Simple ◈ Concurrent Signal Assignment, Conditional ◈ Concurrent.
Analysis of Clocked Sequential Circuits
TOPIC : Finite State Machine(FSM) and Flow Tables UNIT 1 : Modeling Module 1.4 : Modeling Sequential circuits.
Lecture 22: Sequential Circuits Today’s topic –Clocks and sequential circuits –Finite state machines 1.
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)
Sequential Circuit Introduction to Counter
Lecture 10 Topics: Sequential circuits Basic concepts Clocks
Advanced FPGA Based System Design Lecture-9 & 10 VHDL Sequential Code By: Dr Imtiaz Hussain 1.
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.
1 ECE 545—Digital System Design with VHDL Lecture 6 Behavioral VHDL Coding (for Synthesis): Finite State Machines and ASMs 9/30/08.
Copyright © 1997 Altera Corporation & 提供 What is VHDL Very high speed integrated Hardware Description Language (VHDL) –is.
SEQUENTIAL LOGIC By Tom Fitch. Types of Circuits Combinational: Gates Combinational: Gates Sequential: Flip-Flops Sequential: Flip-Flops.
DLD Lecture 26 Finite State Machine Design Procedure.
Sequential Circuit: Analysis BIL- 223 Logic Circuit Design Ege University Department of Computer Engineering.
VHDL – Behavioral Modeling and Registered Elements ENGIN 341 – Advanced Digital Design University of Massachusetts Boston Department of Engineering Dr.
Introduction to ASIC flow and Verilog HDL
Digital System Design using VHDL
ENG2410 Digital Design LAB #7 LAB #7 Sequential Logic Design “Sequence Recognizer” Using both Schematic Capture and VHDL.
© 2009 Pearson Education, Upper Saddle River, NJ All Rights ReservedFloyd, Digital Fundamentals, 10 th ed Digital Logic Design Dr. Oliver Faust.
Introduction to Sequential Logic Design Finite State-Machine Analysis.
Logic Design (CE1111 ) Lecture 6 (Chapter 6) Registers &Counters Prepared by Dr. Lamiaa Elshenawy 1.
Algorithmic State Machine (ASM) Charts: VHDL Code & Timing Diagrams
State Machine Design with an HDL
George Mason University Finite State Machines Refresher ECE 545 Lecture 11.
1 Lecture 13: Sequential Circuits, FSM Today’s topics:  Sequential circuits  Finite state machines  Single-cycle CPU Reminder: midterm on Tue 10/20.
Introduction to Sequential Logic Design
ANALYSIS OF SEQUENTIAL CIRCUITS
Introduction to Advanced Digital Design (14 Marks)
Introduction Introduction to VHDL Entities Signals Data & Scalar Types
Part IV: VHDL CODING.
EE 1001 Digital Topics Introduction to Electrical Engineering
Sequential Circuit: Counter
Digital Design Lecture 9
Asynchronous Inputs of a Flip-Flop
ECE 301 – Digital Electronics
ECE 448 Lecture 6 Finite State Machines State Diagrams vs. Algorithmic State Machine (ASM) Charts.
Simple Processor Control Unit
Sequential logic circuits
VHDL 5 FINITE STATE MACHINES (FSM)
Jeremy R. Johnson Mon. Apr. 3, 2000
Algorithmic State Machine (ASM) Charts: VHDL Code & Timing Diagrams
CSE 140L Discussion Finite State Machines.
Lecture 13: Sequential Circuits, FSM
Finite State Machines Experiment 4 Introduction
Digital Logic & Design Dr. Waseem Ikram Lecture No. 31.
FSM MODELING MOORE FSM MELAY FSM. Introduction to DIGITAL CIRCUITS MODELING & VERIFICATION using VERILOG [Part-2]
VHDL (VHSIC Hardware Description Language)
Computer Architecture and Organization: L02: Logic design Review
CSE 370 – Winter Sequential Logic-2 - 1
Lecture 17 Logistics Last lecture Today HW5 due on Wednesday
State Machine Design with an HDL
Figure 8.1. The general form of a sequential circuit.
Dr. Tassadaq Hussain Introduction to Verilog – Part-3 Expressing Sequential Circuits and FSM.
The Verilog Hardware Description Language
Flip Flops Unit-4.
ECE 448 Lecture 6 Finite State Machines State Diagrams, State Tables, Algorithmic State Machine (ASM) Charts, and VHDL Code.
Lecture 20 Logistics Last lecture Today HW6 due Wednesday
Lecture 17 Logistics Last lecture Today HW5 due on Wednesday
Instructor: Alexander Stoytchev
Lecture 18 Logistics Last lecture Today HW5 due today (with extra 10%)
Dr. Tassadaq Hussain Introduction to Verilog – Part-4 Expressing FSM in Verilog (contd) and FSM State Encoding Dr. Tassadaq Hussain.
EGR 2131 Unit 12 Synchronous Sequential Circuits
SEQUENTIAL CIRCUITS __________________________________________________
Sequntial-Circuit Building Blocks
Presentation transcript:

Advanced FPGA Based System Design Lecture-11 & 12 VHDL Finite State Machines By: Dr Imtiaz Hussain imtiaz.hussain@faculty.muet.edu.pk

Contents Finite State Machines Signals & Variables Design Style#1

Introduction Several approaches can be conceived to design a FSM. We will discuss in detail one style that is well structured and easily applicable.

Design Style#1 In this style, the design of the lower section of the state machine is completely separated from that of the upper section.

Design Style#1 It contains user-defined enumerated data type (here called state), which lists all possible states of the machine.

Design Style#1 Design of Lower (Sequential) section The flip-flops are in the lower section, so clock and reset are connected to it. The other lower section’s input is nx_state (next state), while pr_state (present state) is its only output. Being the circuit of the lower (sequential) section, a PROCESS is required, in which any of the sequential statements (IF, WAIT, CASE, or LOOP, can be employed.

Design Style#1 Design of Lower (Sequential) section A typical design template for the lower section is the following:

Design Style#1 Design of Upper (Combinational) section The upper section is fully combinational, so its code does not need to be sequential; concurrent code can be used as well. In the design template shown in next slide, sequential code is employed, with the CASE statement playing the central role.

Example-1 A BCD counter is an example of Moore Machine

Example-1

Example-1

Example-1

Example-1

Example#2 The system has two states (state A and state B). State must change from one to the other every time d = ‘1’ is received. The desired output is x = a when the machine is in state A, or x =b when in state B. The initial (reset) state is state A.

Example#2

Example#2

Example#2