Part III A workshop by Dr. Junaid Ahmed Zubairi

Slides:



Advertisements
Similar presentations
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.
Advertisements

Phase 2 -- Logic Implementation & Simulation Switching & Logic Design Project.
Tutorial 2 Sequential Logic. Registers A register is basically a D Flip-Flop A D Flip Flop has 3 basic ports. D, Q, and Clock.
Sequential Design ELEC 311 Digital Logic and Circuits Dr. Ron Hayne
Sequential Logic in Verilog
Synchronous Sequential Logic
INTRO TO VHDL Appendix A: page page VHDL is an IEEE and ANSI standard. VHDL stands for Very High Speed IC hardware description language.
© 1998, Peter J. AshendenVHDL Quick Start1 Basic VHDL Concepts Interfaces Behavior Structure Test Benches Analysis, elaboration, simulation Synthesis.
1 VLSI DESIGN USING VHDL Part II A workshop by Dr. Junaid Ahmed Zubairi.
1 VLSI DESIGN USING VHDL A workshop by Dr. Junaid Ahmed Zubairi October 2002.
Dr. Turki F. Al-Somani VHDL synthesis and simulation – Part 2 Microcomputer Systems Design (Embedded Systems)
VHDL Intro What does VHDL stand for? VHSIC Hardware Description Language VHSIC = Very High Speed Integrated Circuit Developed in 1982 by Govt. to standardize.
VHDL And Synthesis Review. VHDL In Detail Things that we will look at: –Port and Types –Arithmetic Operators –Design styles for Synthesis.
1 DIGITAL DESIGN WITH QUARTUS WORKSHOP by Dr. Junaid Ahmed Zubairi Dept of Computer Science SUNY at Fredonia, Fredonia NY.
George Mason University ECE 448 – FPGA and ASIC Design with VHDL Finite State Machines State Diagrams, State Tables, Algorithmic State Machine (ASM) Charts,
Introduction to Counter in VHDL
Introduction to VHDL (part 2)
Advanced FPGA Based System Design Lecture-9 & 10 VHDL Sequential Code By: Dr Imtiaz Hussain 1.
ENG241 Digital Design Week #6 Sequential Circuits (Part A)
VHDL Introduction. V- VHSIC Very High Speed Integrated Circuit H- Hardware D- Description L- Language.
VHDL IE- CSE. What do you understand by VHDL??  VHDL stands for VHSIC (Very High Speed Integrated Circuits) Hardware Description Language.
Copyright © 1997 Altera Corporation & 提供 What is VHDL Very high speed integrated Hardware Description Language (VHDL) –is.
Electrical and Computer Engineering University of Cyprus LAB 1: VHDL.
Introduction to VHDL Simulation … Synthesis …. The digital design process… Initial specification Block diagram Final product Circuit equations Logic design.
Hardware languages "Programming"-language for modelling of (digital) hardware 1 Two main languages: VHDL (Very High Speed Integrated Circuit Hardware Description.
VHDL – Behavioral Modeling and Registered Elements ENGIN 341 – Advanced Digital Design University of Massachusetts Boston Department of Engineering Dr.
VHDL Discussion Sequential Sytems. Memory Elements. Registers. Counters IAY 0600 Digital Systems Design Alexander Sudnitson Tallinn University of Technology.
Digital System Projects
Introduction to ASIC flow and Verilog HDL
04/26/20031 ECE 551: Digital System Design & Synthesis Lecture Set : Introduction to VHDL 12.2: VHDL versus Verilog (Separate File)
03/31/031 ECE 551: Digital System Design & Synthesis Lecture Set 8 8.1: Miscellaneous Synthesis (In separate file) 8.2: Sequential Synthesis.
George Mason University Behavioral Modeling of Sequential-Circuit Building Blocks ECE 545 Lecture 8.
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.
Sequential statements (1) process
LAB #6 Sequential Logic Design (Flip Flops, Shift Registers)
Homework Reading Machine Projects Labs Tokheim Chapter 9.1 – 9.6
Registers and Counters
ECE 448 Lecture 6 Finite State Machines State Diagrams, State Tables, Algorithmic State Machine (ASM) Charts, and VHDL Code.
Figure 7.1 Control of an alarm system
EMT 351/4 DIGITAL IC DESIGN Week # Synthesis of Sequential Logic 10.
Part II A workshop by Dr. Junaid Ahmed Zubairi
Problems with “Inferred Latches” in Verilog
Introduction Introduction to VHDL Entities Signals Data & Scalar Types
CHAPTER 17 VHDL FOR SEQUENTIAL LOGIC
Part IV: VHDL CODING.
EEL 3705 / 3705L Digital Logic Design
ECE 448 Lecture 6 Finite State Machines State Diagrams vs. Algorithmic State Machine (ASM) Charts.
RTL Design Methodology
D Flip-Flop.
VHDL 5 FINITE STATE MACHINES (FSM)
In processes and concurrent statements
Sequential-Circuit Building Blocks
CHAPTER 17 VHDL FOR SEQUENTIAL LOGIC
RTL Style در RTL مدار ترتيبي به دو بخش (تركيبي و عناصر حافظه) تقسيم مي شود. مي توان براي هر بخش يك پروسس نوشت يا براي هر دو فقط يك پروسس نوشت. مرتضي صاحب.
SYNTHESIS OF SEQUENTIAL LOGIC
Non-synthesizable VHDL Poor Design Practices
State Machine Design with an HDL
VHDL Introduction.
Behavioral Modeling of Sequential-Circuit Building Blocks
Sequntial-Circuit Building Blocks
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
ECE 448 Lecture 6 Finite State Machines State Diagrams, State Tables, Algorithmic State Machine (ASM) Charts, and VHDL Code.
ECE 448 Lecture 6 Finite State Machines State Diagrams, State Tables, Algorithmic State Machine (ASM) Charts, and VHDL code ECE 448 – FPGA and ASIC Design.
Digital Designs – What does it take
ECE 448 Lecture 6 Finite State Machines State Diagrams vs. Algorithmic State Machine (ASM) Charts.
CprE / ComS 583 Reconfigurable Computing
Sequntial-Circuit Building Blocks
Presentation transcript:

Part III A workshop by Dr. Junaid Ahmed Zubairi VLSI DESIGN USING VHDL Part III A workshop by Dr. Junaid Ahmed Zubairi

Workshop References VHDL by Amos Zaslavsky (http://www.pet.ac.il ) Fundamentals of Digital Design by Brown and Vranesic, McGraw Hill Altera Training Modules

Synchronous Circuits Use a process to describe a flip flop VHDL signals are static so no need to assign q<= q All flip flops used by Altera have asynchronous reset Do not use asynchronous preset

Designing a Counter You can implement a counter using a process with statements as below: if clk’event and clk=‘1’ then count <= (count+1) mod LIMIT Where LIMIT is selected by you and Count is an inout port of type integer with range 0 to LIMIT-1

Gated Clock Code

Signals Translate to Hardware

With Variables….

Safer Method It is safer to use the first style without variables as variables may get converted into static storage nodes

Summary Only use asynchronous signals and clock in the sensitivity list If asynch signals are present, deal with them before the sync condition Each assignment in the sync process infers a flip flop

Bad Coding Example

Correct Coding Style

If You need the combo to be synchronized with the clock

Initialization Signals can only be initialized in the declarative part Signal enable:std_logic := ‘1’; Do not initialize the signals in the execution path of the process However, initializations may be ignored because FPGA components may have some well defined initial values Instead of initialization, use the real hardware reset or preset (NOT BOTH) and activate it in the beginning

LPM LPM is Library of Parameterized modules Using modules from LPM, you do not have to write VHDL architecture for some sub-systems For example, instead of doing an up-and-down counter in VHDL, you may reuse lpm_counter with generic map statements in the architecture body or use RAM module

LPM Resources Quartus_dir\eda\sim_lib VHDL source files are 220model.vhd and 220pack.vhd www.edif.org Quartus contains lpm.pdf file