ECE 353 Computer Systems Lab II VHDL AND LABORATORY TOOLS TUTORIAL Professors Maciej Ciesielski & T. Baird Soules.

Slides:



Advertisements
Similar presentations
Quick Start to VHDL VHDL Very Hard Difficult Language Very Hard Difficult Language!!!!!!!
Advertisements

TOPIC : Finite State Machine(FSM) and Flow Tables UNIT 1 : Modeling Module 1.4 : Modeling Sequential circuits.
Give qualifications of instructors: DAP
EELE 367 – Logic Design Module 2 – Modern Digital Design Flow Agenda 1.History of Digital Design Approach 2.HDLs 3.Design Abstraction 4.Modern Design Steps.
Fundamentals of Digital Signal Processing יהודה אפק, נתן אינטרטור אוניברסיטת תל אביב.
CS 151 Digital Systems Design Lecture 37 Register Transfer Level
Digital Alarm System Experiment 9. Experiment 8: What You May Have Missed Continued use of structural modelingContinued use of structural modeling VHDL.
Introduction to VHDL (Lecture #5) ECE 331 – Digital System Design The slides included herein were taken from the materials accompanying Fundamentals of.
Discussed in class and on Fridays n FSMs (only synchronous, with asynchronous reset) –Moore –Mealy –Rabin-Scott n Generalized register: –With D FFs, –With.
1 Hardware description languages: introduction intellectual property (IP) introduction to VHDL and Verilog entities and architectural bodies behavioral,
Dr. Turki F. Al-Somani VHDL synthesis and simulation – Part 3 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.
1/31/20081 Logic devices can be classified into two broad categories Fixed Programmable Programmable Logic Device Introduction Lecture Notes – Lab 2.
VHDL. What is VHDL? VHDL: VHSIC Hardware Description Language  VHSIC: Very High Speed Integrated Circuit 7/2/ R.H.Khade.
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)
DIGITAL DESIGN WITH VHDL Exercise 1 1Muhammad Amir Yousaf.
Fall 08, Oct 29ELEC Lecture 7 (updated) 1 Lecture 7: VHDL - Introduction ELEC 2200: Digital Logic Circuits Nitin Yogi
Advanced Digital Circuits ECET 146 Week 7 Professor Iskandar Hack ET 221B,
ECE 2372 Modern Digital System Design
An Introduction to VHDL Using Altera’s Quartus II IDE Dr. William M. Jones Coastal Carolina University Numbers and Bytes Meeting 20 OCT 2008.
Synthesis Presented by: Ms. Sangeeta L. Mahaddalkar ME(Microelectronics) Sem II Subject: Subject:ASIC Design and FPGA.
Advanced Digital Circuits ECET 146 Week 5 Professor Iskandar Hack ET 221G, Me as I typed this slides.
VHDL TUTORIAL Preetha Thulasiraman ECE 223 Winter 2007.
VHDL Introduction. V- VHSIC Very High Speed Integrated Circuit H- Hardware D- Description L- Language.
George Mason University ECE 545 – Introduction to VHDL ECE 545 Lecture 5 Finite State Machines.
Language Concepts Ver 1.1, Copyright 1997 TS, Inc. VHDL L a n g u a g e C o n c e p t s Page 1.
Copyright © 1997 Altera Corporation & 提供 What is VHDL Very high speed integrated Hardware Description Language (VHDL) –is.
CWRU EECS 317 EECS 317 Computer Design LECTURE 1: The VHDL Adder Instructor: Francis G. Wolff Case Western Reserve University.
Basic Overview of VHDL Matthew Murach Slides Available at:
L12 – VHDL Overview. VHDL Overview  HDL history and background  HDL CAD systems  HDL view of design  Low level HDL examples  Ref: text Unit 10, 17,
Fall 2004EE 3563 Digital Systems Design EE 3563 VHSIC Hardware Description Language  Required Reading: –These Slides –VHDL Tutorial  Very High Speed.
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.
1/8/ L2 VHDL Introcution© Copyright Joanne DeGroat, ECE, OSU1 Introduction to VHDL.
Chapter 5 Introduction to VHDL. 2 Hardware Description Language A computer language used to design circuits with text-based descriptions of the circuits.
VHDL Discussion Finite State Machines
VHDL Discussion Finite State Machines IAY 0600 Digital Systems Design Alexander Sudnitson Tallinn University of Technology 1.
Digital System Projects
04/26/20031 ECE 551: Digital System Design & Synthesis Lecture Set : Introduction to VHDL 12.2: VHDL versus Verilog (Separate File)
Digital System Design using VHDL
Verilog hdl – II.
Digital Design Using VHDL and PLDs ECOM 4311 Digital System Design Chapter 1.
Introduction to VHDL Coding Wenchao Cao, Teaching Assistant Department of EECS University of Tennessee.
Teaching Digital Logic courses with Altera Technology
May 9, 2001Systems Architecture I1 Systems Architecture I (CS ) Lab 5: Introduction to VHDL Jeremy R. Johnson May 9, 2001.
1 ASIC 120: Digital Systems and Standard-Cell ASIC Design Tutorial 2: Introduction to VHDL February 1, 2006.
ECE 448 Lecture 6 Finite State Machines State Diagrams vs. Algorithmic State Machine (ASM) Charts.
1 Introduction to Engineering Spring 2007 Lecture 18: Digital Tools 2.
An Introduction to V.H.D.L.. Need of a Compiler… main( ) { int x=10,y=20,z; z = x + y ; printf ( “ %d “, z ); getch( ) ; } What’s That ? Give me only.
Introduction to Verilog COE 202 Digital Logic Design Dr. Muhamed Mudawar King Fahd University of Petroleum and Minerals.
Systems Architecture Lab: Introduction to VHDL
Discussion 2: More to discuss
Introduction to Programmable Logic
Introduction Introduction to VHDL Entities Signals Data & Scalar Types
Structural style Modular design and hierarchy Part 1
ECET 230 Innovative Education--snaptutorial.com
Topics HDL coding for synthesis. Verilog. VHDL..
Week 5, Verilog & Full Adder
Introduction to Verilog
Structural style Modular design and hierarchy Part 1
Instructions to get MAX PLUS running
VHDL (VHSIC Hardware Description Language)
VHDL Introduction.
Figure 8.1. The general form of a sequential circuit.
Dr. Tassadaq Hussain Introduction to Verilog – Part-3 Expressing Sequential Circuits and FSM.
© Copyright Joanne DeGroat, ECE, OSU
Digital Designs – What does it take
EEL4712 Digital Design (VHDL Tutorial).
Presentation transcript:

ECE 353 Computer Systems Lab II VHDL AND LABORATORY TOOLS TUTORIAL Professors Maciej Ciesielski & T. Baird Soules

Today’s Objectives Basic Principles and Applications of VHDL Programming Basic Principles and Applications of VHDL Programming Introduction to Altera Tools MAX- PLUS+ Introduction to Altera Tools MAX- PLUS+ Basic Tutorial on Logic Analyzer Tools Basic Tutorial on Logic Analyzer Tools

What is VHDL? V ery High Speed Integrated Circuit H ardware D escription L anguage V ery High Speed Integrated Circuit H ardware D escription L anguage Used to describe a desired logic circuit Used to describe a desired logic circuit Compiled, Synthesized and Burned onto a working chip Compiled, Synthesized and Burned onto a working chip Simplifies hardware for large projects Simplifies hardware for large projects Examples: Combinatorial Logic, Finite State Machines Examples: Combinatorial Logic, Finite State Machines

Let’s Start Simple Combinatorial/Arithmetic Logic Combinatorial/Arithmetic Logic 1-bit full-adder 1-bit full-adder Three Approaches to VHDL Programming: Structural, Arithmetic, and Behavioral

Structural (I) Included Libraries: Used in compiling and synthesis. The same for each project. Entity Declaration: Indicates what comes in and what goes out. Architecture Declaration: Defines the entity on a functional level.

Structural (II) Structurally defined code assigns a logical function of the inputs to each output Structurally defined code assigns a logical function of the inputs to each output This is most useful for simple combinatorial logic This is most useful for simple combinatorial logic

Arithmetic Arithmetic Operation allows for simpler code, but possibly at the expense of chip real estate. Arithmetic Operation allows for simpler code, but possibly at the expense of chip real estate. What is wrong with this code? Think about how the integers are implemented by the synthesizer. What is wrong with this code? Think about how the integers are implemented by the synthesizer.

Arithmetic (II) If you choose to code on a higher level, be sure to specify ranges for your variables, otherwise Altera will assume 32-bit unsigned values. If you choose to code on a higher level, be sure to specify ranges for your variables, otherwise Altera will assume 32-bit unsigned values. There is not enough room on the whole chip to store one 32-bit value. There is not enough room on the whole chip to store one 32-bit value.

Behavioral Describe how the circuit works is meant to work and let the synthesizer work out the details. Describe how the circuit works is meant to work and let the synthesizer work out the details. This is most useful for Finite State Machines and programs involving sequential statements and processes. We’ll see some examples shortly. This is most useful for Finite State Machines and programs involving sequential statements and processes. We’ll see some examples shortly.

Bringing Components Together You can design several different “circuits” in Altera and then bring them together to form a larger design on a single chip. You can design several different “circuits” in Altera and then bring them together to form a larger design on a single chip. Two methods: Two methods: -Code Directly via the Netlist -Altera Tools Graphical Editor

Structural Netlist Using our Full Adder code from earlier... -Each stage is made up of a full adder component. -The fulladd code from earlier is also part of this vhdl file, it is not shown here. -The carry out from each stage is assigned as carry in to the next stage. -Notice that c1, c2, c3 are internal signals written in to allow transfer of data between the stages. -This is important because you cannot specify an output pin of a component as an input pin in the same entity. c1, c2, and c3 are like buffers.

Syntax Notes and Helpful Hints Don’t forget semi-colons where necessary Don’t forget semi-colons where necessary Top level entity and filename must be the same Top level entity and filename must be the same If you design a smaller “circuit” to be part of a larger project, it is worthwhile for you to test that small piece to ensure that it functions as you intend it to. If you design a smaller “circuit” to be part of a larger project, it is worthwhile for you to test that small piece to ensure that it functions as you intend it to. More is often less. Be specific about your code and the synthesizer will reward you with ample chip space. More is often less. Be specific about your code and the synthesizer will reward you with ample chip space.

Finite State Machines (FSMs) What is an FSM? What is an FSM? Two types: Two types: –Moore –Mealy Figure B.27 Computer Organization & Design. 2 nd Ed. (Patterson, Hennessy)

Moore FSM Output depends ONLY on current state Output depends ONLY on current state Outputs associated with each state are set at clock transition Outputs associated with each state are set at clock transition

Mealy FSM Output depends on inputs AND current state Output depends on inputs AND current state Outputs are set during transitions Outputs are set during transitions

Coding FSMs in Altera

Process Statement Process computes outputs of sequential statements on each clock tick with respect to the sensitive signals. Process computes outputs of sequential statements on each clock tick with respect to the sensitive signals. Sensitivity list

’EVENT ’EVENT is an Altera construct that represents when the signal is transitioning ’EVENT is an Altera construct that represents when the signal is transitioning IF statement reads: If Clock is making a positive transition THEN …

Mealy FSM – see mealy1.vhd on the web Mealy FSM – see mealy1.vhd on the web Moore FSM - see moore.vhd on the web Moore FSM - see moore.vhd on the web Now let’s take a look how to edit, compile, simulate and synthesize your design using Altera software …. Now let’s take a look how to edit, compile, simulate and synthesize your design using Altera software …. …. (proceed with hands on tutorial) …. (proceed with hands on tutorial) VHDL codes for FSM