Basic VHDL RASSP Education & Facilitation Module 10 Version 2.02 Copyright  1995-1998 RASSP E&F All rights reserved. This information is copyrighted by.

Slides:



Advertisements
Similar presentations
Digital System Design Subject Name : Digital System Design Course Code : IT-314.
Advertisements

COE 405 VHDL Basics Dr. Aiman H. El-Maleh Computer Engineering Department King Fahd University of Petroleum & Minerals Dr. Aiman H. El-Maleh Computer Engineering.
1 Introduction to VHDL (Continued) EE19D. 2 Basic elements of a VHDL Model Package Declaration ENTITY (interface description) ARCHITECTURE (functionality)
Digital Design with VHDL Presented by: Amir Masoud Gharehbaghi
1 Lecture 13 VHDL 3/16/09. 2 VHDL VHDL is a hardware description language. The behavior of a digital system can be described (specified) by writing a.
Mridula Allani Fall 2010 (Refer to the comments if required) ELEC Fall 2010, Nov 21(Adopted from Profs. Nelson and Stroud)
Introduction to VHDL (Lecture #5) ECE 331 – Digital System Design The slides included herein were taken from the materials accompanying Fundamentals of.
Introduction to VHDL VHDL Tutorial R. E. Haskell and D. M. Hanna T1: Combinational Logic Circuits.
02/02/20091 Logic devices can be classified into two broad categories Fixed Programmable Programmable Logic Device Introduction Lecture Notes – Lab 2.
Combinational Logic Design Sections 3-1, 3-2 Mano/Kime.
Sistemas Digitais I LESI - 2º ano Lesson 5 - VHDL U NIVERSIDADE DO M INHO E SCOLA DE E NGENHARIA Prof. João Miguel Fernandes Dept.
Introduction to VHDL Multiplexers. Introduction to VHDL VHDL is an acronym for VHSIC (Very High Speed Integrated Circuit) Hardware Description Language.
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.
1 H ardware D escription L anguages Basic Language Concepts.
VHDL Training ©1995 Cypress Semiconductor 1 Introduction  VHDL is used to:  document circuits  simulate circuits  synthesize design descriptions 
06/09/5806/09/5806/09/5806/09/58 1 ECE-590 Introduction to VHDL Prof. K. J. Hintz Department of Electrical and Computer Engineering
Basic VHDL RASSP Education & Facilitation Module 10 Version 2.02 Copyright  RASSP E&F All rights reserved. This information is copyrighted by.
VHDL TUTORIAL Preetha Thulasiraman ECE 223 Winter 2007.
ENG6090 Reconfigurable Computing Systems Hardware Description Languages Part 6: Configurations.
A VHDL Tutorial ENG2410. ENG241/VHDL Tutorial2 Goals Introduce the students to the following: –VHDL as Hardware description language. –How to describe.
Copyright  RASSP E&F Structural VHDL RASSP Education & Facilitation Module 11 Version 2.01 Copyright  RASSP E&F All rights reserved.
RASSP E&F SCRA GT UVA Raytheon UCinc EIT ADL Copyright  RASSP E&F Structural VHDL RASSP Education & Facilitation Module 11 Version 2.01 Copyright.
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.
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.
Modern VLSI Design 3e: Chapters 3 & 8Partly from 2002 Prentice Hall PTR week6-1 Lectures 16 Transfer Characteristics (Delay and Power) Feb. 10, 2003.
CWRU EECS 317 EECS 317 Computer Design LECTURE 1: The VHDL Adder Instructor: Francis G. Wolff Case Western Reserve University.
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,
Basic VHDL RASSP Education & Facilitation Module 10 Version 2.02 Copyright  RASSP E&F All rights reserved. This information is copyrighted by.
Introduction to VHDL Spring EENG 2920 Digital Systems Design Introduction VHDL – VHSIC (Very high speed integrated circuit) Hardware Description.
Fall 2004EE 3563 Digital Systems Design EE 3563 VHSIC Hardware Description Language  Required Reading: –These Slides –VHDL Tutorial  Very High Speed.
VHDL Very High Speed Integrated Circuit Hardware Description Language Shiraz University of shiraz spring 2011.
ENG6090 RCS1 ENG6090 Reconfigurable Computing Systems Hardware Description Languages Part 1: Introduction.
Electrical and Computer Engineering University of Cyprus LAB 1: VHDL.
HARDWARE DESCRIPTION LANGUAGE (HDL). What is HDL? A type of programming language for sampling and modeling of electronic & logic circuit designs It can.
1 Hardware Description Languages: a Comparison of AHPL and VHDL By Tamas Kasza AHPL&VHDL Digital System Design 1 (ECE 5571) Spring 2003 A presentation.
(1) Basic Language Concepts © Sudhakar Yalamanchili, Georgia Institute of Technology, 2006.
Hardware languages "Programming"-language for modelling of (digital) hardware 1 Two main languages: VHDL (Very High Speed Integrated Circuit Hardware Description.
Chapter 5 Introduction to VHDL. 2 Hardware Description Language A computer language used to design circuits with text-based descriptions of the circuits.
CEC 220 Digital Circuit Design Introduction to VHDL Wed, February 25 CEC 220 Digital Circuit Design Slide 1 of 19.
04/26/20031 ECE 551: Digital System Design & Synthesis Lecture Set : Introduction to VHDL 12.2: VHDL versus Verilog (Separate File)
VHDL Discussion Subprograms IAY 0600 Digital Systems Design Alexander Sudnitson Tallinn University of Technology 1.
ECOM 4311—Digital System Design with VHDL
Digital Design Using VHDL and PLDs ECOM 4311 Digital System Design Chapter 1.
VHDL Programming Fundamentals Presented By Dr. Pradyut Kumar Biswal Department of Electronics, IIIT Bhubaneswar.
Apr. 3, 2000Systems Architecture I1 Introduction to VHDL (CS 570) Jeremy R. Johnson Wed. Nov. 8, 2000.
May 9, 2001Systems Architecture I1 Systems Architecture I (CS ) Lab 5: Introduction to VHDL Jeremy R. Johnson May 9, 2001.
Verilog Intro: Part 1. Hardware Description Languages A Hardware Description Language (HDL) is a language used to describe a digital system, for example,
CEC 220 Digital Circuit Design Introduction to VHDL Wed, Oct 14 CEC 220 Digital Circuit Design Slide 1 of 19.
1 Introduction to Engineering Spring 2007 Lecture 18: Digital Tools 2.
SUBJECT : DIGITAL ELECTRONICS CLASS : SEM 3(B) TOPIC : INTRODUCTION OF VHDL.
Introduction to Verilog COE 202 Digital Logic Design Dr. Muhamed Mudawar King Fahd University of Petroleum and Minerals.
Basic VHDL RASSP Education & Facilitation Module 10 Version 2.02
Basic VHDL RASSP Education & Facilitation Module 10 Version 3.00
Structural style Modular design and hierarchy Part 1
Basic Language Concepts
Systems Architecture Lab: Introduction to VHDL
Subject Name: FUNDAMENTALS OF HDL Subject Code: 10EC45
Module Goals Introduce structural VHDL constructs Use of components
Structural style Modular design and hierarchy Part 1
CPE/EE 428, CPE 528 Basic VHDL Department of Electrical and Computer Engineering University of Alabama in Huntsville.
Introduction to Verilog
Structural style Modular design and hierarchy Part 1
CPE 528: Lecture #3 Department of Electrical and Computer Engineering University of Alabama in Huntsville.
VHDL Introduction.
RASSP Education & Facilitation
RASSP Education & Facilitation
© Copyright Joanne DeGroat, ECE, OSU
VHDL - Introduction.
Presentation transcript:

Basic VHDL RASSP Education & Facilitation Module 10 Version 2.02 Copyright  RASSP E&F All rights reserved. This information is copyrighted by the RASSP E&F Program and may only be used for non-commercial educational purposes. Any other use of this information without the express written permission of the RASSP E&F Program is prohibited. All information contained herein may be duplicated for non- commercial educational use provided this copyright notice is included. No warranty of any kind is provided or implied, nor is any liability accepted regardless of use. FEEDBACK: The RASSP E&F Program welcomes and encourages any feedback that you may have including any changes that you may make to improve or update the material. You can contact us at or

RASSP E&F SCRA GT UVA Raytheon UCinc EIT ADL Copyright  RASSP E&F Module Goals l Introduce basic VHDL constructs l Introduce the VHDL simulation cycle and timing model l Illustrate VHDL’s utility as a digital hardware description language

RASSP E&F SCRA GT UVA Raytheon UCinc EIT ADL Copyright  RASSP E&F Module Outline l Introduction l VHDL Design Example l VHDL Model Components m Entity Declarations m Architecture Descriptions m Timing Model

RASSP E&F SCRA GT UVA Raytheon UCinc EIT ADL Copyright  RASSP E&F Module Outline (Cont.) l Basic VHDL Constructs m Data types m Objects m Sequential and concurrent statements m Packages and libraries m Attributes m Predefined operators l Examples l Summary

RASSP E&F SCRA GT UVA Raytheon UCinc EIT ADL Copyright  RASSP E&F Module Outline l Introduction l VHDL Design Example l VHDL Model Components l Basic VHDL Constructs l Examples l Summary

RASSP E&F SCRA GT UVA Raytheon UCinc EIT ADL Copyright  RASSP E&F Reasons for Using VHDL l VHDL is an international IEEE standard specification language (IEEE ) for describing digital hardware used by industry worldwide m VHDL is an acronym for VHSIC (Very High Speed Integrated Circuit) Hardware Description Language l VHDL enables hardware modeling from the gate to system level l VHDL provides a mechanism for digital design and reusable design documentation

RASSP E&F SCRA GT UVA Raytheon UCinc EIT ADL Copyright  RASSP E&F VHDL’s History l Very High Speed Integrated Circuit (VHSIC) Program m Launched in 1980 m Aggressive effort to advance state of the art m Object was to achieve significant gains in VLSI technology m Need for common descriptive language m $17 Million for direct VHDL development m $16 Million for VHDL design tools l Woods Hole Workshop m Held in June 1981 in Massachusetts m Discussion of VHSIC goals m Comprised of members of industry, government, and academia

RASSP E&F SCRA GT UVA Raytheon UCinc EIT ADL Copyright  RASSP E&F VHDL’s History (Cont.) l In July 1983, a team of Intermetrics, IBM and Texas Instruments were awarded a contract to develop VHDL l In August 1985, the final version of the language under government contract was released: VHDL Version 7.2 l In December 1987, VHDL became IEEE Standard and in 1988 an ANSI standard l In September 1993, VHDL was restandardized to clarify and enhance the language l VHDL has been accepted as a Draft International Standard by the IEC

RASSP E&F SCRA GT UVA Raytheon UCinc EIT ADL Copyright  RASSP E&F Additional Benefits of VHDL l Allows for various design methodologies l Provides technology independence l Describes a wide variety of digital hardware l Eases communication through standard language l Allows for better design management l Provides a flexible design language l Has given rise to derivative standards : m WAVES, VITAL, Analog VHDL

RASSP E&F SCRA GT UVA Raytheon UCinc EIT ADL Copyright  RASSP E&F Putting It All Together GenericsPorts Entity Architecture Concurrent Statements Process Sequential Statements Concurrent Statements Package

RASSP E&F SCRA GT UVA Raytheon UCinc EIT ADL Copyright  RASSP E&F Module Outline l Introduction l VHDL Design Example l VHDL Models of Hardware l Basic VHDL Constructs l Examples l Summary

RASSP E&F SCRA GT UVA Raytheon UCinc EIT ADL Copyright  RASSP E&F VHDL Design Example l Problem: Design a single bit half adder with carry and enable l Specifications m Inputs and outputs are each one bit m When enable is high, result gets x plus y m When enable is high, carry gets any carry of x plus y m Outputs are zero when enable input is low x y enable carry result Half Adder

RASSP E&F SCRA GT UVA Raytheon UCinc EIT ADL Copyright  RASSP E&F VHDL Design Example Entity Declaration l As a first step, the entity declaration describes the interface of the component m input and output ports are declared x y enable carry result Half Adder ENTITY half_adder IS PORT( x, y, enable: IN BIT; carry, result: OUT BIT); END half_adder;

RASSP E&F SCRA GT UVA Raytheon UCinc EIT ADL Copyright  RASSP E&F VHDL Design Example Behavioral Specification l A high level description can be used to describe the function of the adder l The model can then be simulated to verify correct functionality of the component ARCHITECTURE half_adder_a OF half_adder IS BEGIN PROCESS (x, y, enable) BEGIN IF enable = ‘1’ THEN result <= x XOR y; carry <= x AND y; ELSE carry <= ‘0’; result <= ‘0’; END IF; END PROCESS; END half_adder_a;

RASSP E&F SCRA GT UVA Raytheon UCinc EIT ADL Copyright  RASSP E&F VHDL Design Example Data Flow Specification l A second method is to use logic equations to develop a data flow description l Again, the model can be simulated at this level to confirm the logic equations ARCHITECTURE half_adder_b OF half_adder IS BEGIN carry <= enable AND (x AND y); result <= enable AND (x XOR y); END half_adder_b;

RASSP E&F SCRA GT UVA Raytheon UCinc EIT ADL Copyright  RASSP E&F VHDL Design Example Structural Specification l As a third method, a structural description can be created from predescribed components l These gates can be pulled from a library of parts x y enable carry result

RASSP E&F SCRA GT UVA Raytheon UCinc EIT ADL Copyright  RASSP E&F VHDL Design Example Structural Specification (Cont.) ARCHITECTURE half_adder_c OF half_adder IS COMPONENT and2 PORT (in0, in1 : IN BIT; out0 : OUT BIT); END COMPONENT; COMPONENT and3 PORT (in0, in1, in2 : IN BIT; out0 : OUT BIT); END COMPONENT; COMPONENT xor2 PORT (in0, in1 : IN BIT; out0 : OUT BIT); END COMPONENT; FOR ALL : and2 USE ENTITY gate_lib.and2_Nty(and2_a); FOR ALL : and3 USE ENTITY gate_lib.and3_Nty(and3_a); FOR ALL : xor2 USE ENTITY gate_lib.xor2_Nty(xor2_a); -- description is continued on next slide

RASSP E&F SCRA GT UVA Raytheon UCinc EIT ADL Copyright  RASSP E&F VHDL Design Example Structural Specification (cont.) -- continuing half_adder_c description SIGNAL xor_res : BIT; -- internal signal -- Note that other signals are already declared in entity BEGIN A0 : and2 PORT MAP (enable, xor_res, result); A1 : and3 PORT MAP (x, y, enable, carry); X0 : xor2 PORT MAP (x, y, xor_res); END half_adder_c;

RASSP E&F SCRA GT UVA Raytheon UCinc EIT ADL Copyright  RASSP E&F Module Outline l Introduction l VHDL Design Example l VHDL Model Components m Entity Declarations m Architecture Descriptions m Timing Model l Basic VHDL Constructs l Examples l Summary

RASSP E&F SCRA GT UVA Raytheon UCinc EIT ADL Copyright  RASSP E&F VHDL Model Components l A complete VHDL component description requires a VHDL entity and a VHDL architecture m The entity defines a component’s interface m The architecture defines a component’s function l Several alternative architectures may be developed for use with the same entity l Three areas of description for a VHDL component: m Structural descriptions m Behavioral descriptions m Timing and delay descriptions

RASSP E&F SCRA GT UVA Raytheon UCinc EIT ADL Copyright  RASSP E&F Entity Declarations l The primary purpose of the entity is to declare the signals in the component’s interface m The interface signals are listed in the PORT clause q In this respect, the entity is akin to the schematic symbol for the component m Additional entity clauses and statements will be introduced later in this and subsequent modules x y enable carry result Half Adder ENTITY half_adder IS GENERIC(prop_delay : TIME := 10 ns); PORT( x, y, enable : IN BIT; carry, result : OUT BIT); END half_adder;

RASSP E&F SCRA GT UVA Raytheon UCinc EIT ADL Copyright  RASSP E&F Entity Declarations Port Clause l PORT clause declares the interface signals of the object to the outside world l Three parts of the PORT clause m Name m Mode m Data type l Example PORT clause: m Note port signals (i.e. ‘ports’) of the same mode and type or subtype may be declared on the same line PORT (signal_name : mode data_type); PORT ( input : IN BIT_VECTOR(3 DOWNTO 0); ready, output : OUT BIT ); PORT ( input : IN BIT_VECTOR(3 DOWNTO 0); ready, output : OUT BIT );

RASSP E&F SCRA GT UVA Raytheon UCinc EIT ADL Copyright  RASSP E&F Entity Declarations Port Clause (cont.) l The port mode of the interface describes the direction in which data travels with respect to the component l The five available port modes are: m In - data comes in this port and can only be read m Out - data travels out this port m Buffer - data may travel in either direction, but only one signal driver may be on at any one time m Inout - data may travel in either direction with any number of active drivers allowed; requires a Bus Resolution Function m Linkage - direction of data flow is unknown

RASSP E&F SCRA GT UVA Raytheon UCinc EIT ADL Copyright  RASSP E&F Entity Declarations Generic Clause l Generics may be used for readability, maintenance and configuration l Generic clause syntax : m If optional default_value is missing in generic clause declaration, it must be present when component is to be used (i.e. instantiated) l Generic clause example : m The generic My_ID, with a default value of 37, can be referenced by any architecture of the entity with this generic clause m The default can be overridden at component instantiation GENERIC (generic_name : type [:= default_value]); GENERIC (My_ID : INTEGER := 37);

RASSP E&F SCRA GT UVA Raytheon UCinc EIT ADL Copyright  RASSP E&F Architecture Bodies l Describe the operation of the component l Consist of two parts : m Declarative part -- includes necessary declarations q e.g. type declarations, signal declarations, component declarations, subprogram declarations m Statement part -- includes statements that describe organization and/or functional operation of component q e.g. concurrent signal assignment statements, process statements, component instantiation statements ARCHITECTURE half_adder_d OF half_adder IS SIGNAL xor_res : BIT; -- architecture declarative part BEGIN -- begins architecture statement part carry <= enable AND (x AND y); result <= enable AND xor_res; xor_res <= x XOR y; END half_adder_d;