Fall 2004EE 3563 Digital Systems Design EE 3563 VHSIC Hardware Description Language  Required Reading: –These Slides –VHDL Tutorial  Very High Speed.

Slides:



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

ENEL111 Digital Electronics
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)
Hardware Description Language (HDL)
Digital Design with VHDL Presented by: Amir Masoud Gharehbaghi
Introduction to VHDL (Lecture #5) ECE 331 – Digital System Design The slides included herein were taken from the materials accompanying Fundamentals of.
Lab Lecture 3 VHDL Architecture styles and Test Bench -Aahlad.
02/02/20091 Logic devices can be classified into two broad categories Fixed Programmable Programmable Logic Device Introduction Lecture Notes – Lab 2.
1 Hardware description languages: introduction intellectual property (IP) introduction to VHDL and Verilog entities and architectural bodies behavioral,
Introduction to VHDL CSCE 496/896: Embedded Systems Witawas Srisa-an.
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.
HDL-Based Digital Design Part I: Introduction to VHDL (I) Dr. Yingtao Jiang Department Electrical and Computer Engineering University of Nevada Las Vegas.
ECE C03 Lecture 141 Lecture 14 VHDL Modeling of Sequential Machines Hai Zhou ECE 303 Advanced Digital Design Spring 2002.
VHDL. What is VHDL? VHDL: VHSIC Hardware Description Language  VHSIC: Very High Speed Integrated Circuit 7/2/ R.H.Khade.
O VERVIEW OF DIGITAL SYSTEMS Hardware Description Language 1.
Fall 08, Oct 29ELEC Lecture 7 (updated) 1 Lecture 7: VHDL - Introduction ELEC 2200: Digital Logic Circuits Nitin Yogi
1 H ardware D escription L anguages Basic Language Concepts.
ECE 332 Digital Electronics and Logic Design Lab Lab 5 VHDL Design Styles Testbenches.
Modeling styles: 1. Structural Modeling: As a set of interconnected components (to represent structure), 2. Dataflow Modeling: As a set of concurrent assignment.
IAY 0600 Digital Systems Design
VHDL TUTORIAL Preetha Thulasiraman ECE 223 Winter 2007.
A VHDL Tutorial ENG2410. ENG241/VHDL Tutorial2 Goals Introduce the students to the following: –VHDL as Hardware description language. –How to describe.
1 H ardware D escription L anguages Modeling Digital Systems.
ENG6090 RCS1 ENG6090 Reconfigurable Computing Systems Hardware Description Languages Part 5: Modeling Structure.
CSET 4650 Field Programmable Logic Devices Dan Solarek Introduction to VHDL An Overview / Review.
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.
CWRU EECS 317 EECS 317 Computer Design LECTURE 1: The VHDL Adder Instructor: Francis G. Wolff Case Western Reserve University.
Module 1.2 Introduction to Verilog
Introduction to VHDL Spring EENG 2920 Digital Systems Design Introduction VHDL – VHSIC (Very high speed integrated circuit) Hardware Description.
Fall 08, Oct 29ELEC Lecture 7 (updated) 1 Lecture 7: VHDL - Introduction ELEC 2200: Digital Logic Circuits Nitin Yogi
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.
M. Balakrishnan Dept of Computer Science & Engg. I.I.T. Delhi
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.
1 Hardware description languages: introduction intellectual property (IP) introduction to VHDL and Verilog entities and architectural bodies behavioral,
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.
ELEE 4303 Digital II Introduction to Verilog. ELEE 4303 Digital II Learning Objectives Get familiar with background of HDLs Basic concepts of Verilog.
04/26/20031 ECE 551: Digital System Design & Synthesis Lecture Set : Introduction to VHDL 12.2: VHDL versus Verilog (Separate File)
EE121 John Wakerly Lecture #17
VHDL Discussion Subprograms IAY 0600 Digital Systems Design Alexander Sudnitson Tallinn University of Technology 1.
Digital Design Using VHDL and PLDs ECOM 4311 Digital System Design Chapter 1.
Apr. 3, 2000Systems Architecture I1 Introduction to VHDL (CS 570) Jeremy R. Johnson Wed. Nov. 8, 2000.
IAY 0600 Digital Systems Design Event-Driven Simulation VHDL Discussion Alexander Sudnitson Tallinn University of Technology.
May 9, 2001Systems Architecture I1 Systems Architecture I (CS ) Lab 5: Introduction to VHDL Jeremy R. Johnson May 9, 2001.
EECE 320 L8: Combinational Logic design Principles 1Chehab, AUB, 2003 EECE 320 Digital Systems Design Lecture 8: Combinational Logic Design Principles.
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.
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
Behavioral Style Combinational Design with VHDL
Dataflow Style Combinational Design with VHDL
Structural style Modular design and hierarchy Part 1
ECE 434 Advanced Digital System L08
VHDL VHSIC Hardware Description Language VHSIC
Introduction to Verilog
Structural style Modular design and hierarchy Part 1
IAY 0600 Digital Systems Design
VHDL Discussion Subprograms
VHDL Introduction.
VHDL Discussion Subprograms
Digital Designs – What does it take
COE 202 Introduction to Verilog
VHDL - Introduction.
Presentation transcript:

Fall 2004EE 3563 Digital Systems Design EE 3563 VHSIC Hardware Description Language  Required Reading: –These Slides –VHDL Tutorial  Very High Speed Integrated Circuit (VHSIC)  VHSIC Hardware Description Language (VHDL)

Fall 2004EE 3563 Digital Systems Design

Fall 2004EE 3563 Digital Systems Design EE 3563 VHDL  Used to model a digital system at numerous different levels –Algorithmic level to gate level to system level  Can express concurrent or sequential behavior, with or without timing  Models written in this language can be verified with simulation  The language is very complex, but we can focus on a small part and still make use of it  VHDL was constructed in the early 80’s as a DoD requirement –Many companies were making electronic components for DoD and needed standardization in order to share designs –VHDL 7.2, was released in 1985 –IEEE made it an industry standard in 1987 –Book I have is based on 1993 standard

Fall 2004EE 3563 Digital Systems Design EE 3563 VHDL  Exchange medium between chip vendors and CAD tool users  Communication medium between CAD and CAE tools –Computer Automated Design, Computer Aided Engineering –Schematic can be converted to VHDL for simulation  Supports a hierarchy – one component can become a sub-component of a larger system  Not technology specific – can support many technologies  Synchronous and Asynchronous models  Supports finite state machines, algorithms, & boolean equations  Publicly available, not proprietary  IEEE and ANSI standard  Three basic different description styles  Wide range of abstraction levels, though not down to transistor level

Fall 2004EE 3563 Digital Systems Design EE 3563 VHDL  No limitations on design size imposed by VHDL  Propagation delays, setup and hold timing, timing constraints, and spike detection can all be modeled  Tools that use VHDL code can work with designs from multiple vendors since the language is a standard  Behavioral models that conform to certain synthesis description styles are able to be synthesized –The gate design can be generated from the behavior  There are other features, but this should give you an idea

Fall 2004EE 3563 Digital Systems Design EE 3563 VHDL Overview  A hardware abstraction is called an entity  One entity, X, used inside another entity, Y, is called a component  VHDL has 5 primary constructs: –Entity declaration –Architecture body –Configuration declaration –Package declaration –Package body  An entity has an entity declaration and at least one architecture body  The entity declaration describes the external view –An “AND” gate would have 2 inputs and 1 output – more later

Fall 2004EE 3563 Digital Systems Design EE 3563 VHDL Overview  The architecture body contains the internal description –Could be interconnected components representing the structure –Could be statements that represent the behavior –Each of these styles can be in a separate architecture body or mixed  A configuration declaration is used to specify the binding of one architecture body from the possibly multiple other architectures  It may also specify the bindings of components used in the architecture body to other entities  An entity may have multiple configurations  A package declaration is a set of related declarations  A package body contains the definitions associated with the declarations –Ex: A course syllabus is the declaration, the actual course is the body

Fall 2004EE 3563 Digital Systems Design EE 3563 VHDL Overview  Once an entity is modeled, it must be validated by VHDL software which includes an analyzer and a simulator  The analyzer performs semantic checks and validates the syntax  Then it compiles the VHDL code into a library  The simulator reads its compiled description from the design library and then simulates the design  It performs 3 steps –Elaboration –Initialization –Simulation  NOTE: VHDL is case insensitive, so AND, and, AnD are the same

Fall 2004EE 3563 Digital Systems Design EE 3563 VHDL Example  The entity declaration specifies the name of the entity and it’s input/output ports  Ports are the signals that interface into and out of the entity  Here is a half adder (why is it only a half adder?)  The name is: HALF_ADDER  4 ports: 2 input, 2 output  They are of type BIT which means they can have one of two different values, 0 or 1 –The double dash indicates a comment

Fall 2004EE 3563 Digital Systems Design EE 3563 VHDL Example  The schematic is just for our reference, so far, the only VHDL is the entity declaration  It says NOTHING about how HALF_ADDER works, its functionality or behavior  It ONLY specifies inputs and outputs –I made it bigger so you can see there is nothing else there  Three types of modeling: structural, dataflow, behavioral

Fall 2004EE 3563 Digital Systems Design EE 3563 VHDL Example  Structural modeling of HALF_ADDER –this works in conjunction with the declaration –an entity is described as a set of interconnected components  The architecture body is composed of two parts: –declarative part (after the keyword begin) –the statement part (after the keyword begin)  In our case, two components are declared (XOR2, AND2) –they specify the interface of components used in the architecture body –They are either user-specified in their own entity declaration and architecture body or are used from the pre-defined library  They are instantiated in the statement part of the architecture body

Fall 2004EE 3563 Digital Systems Design EE 3563 VHDL Example  The statement part of HALF_ADDER is inside the begin/end  The X1 statement creates an instance of XOR2 –Many Dodge Vipers are made, but the one I own (1/100 th scale) is a specific instance of a Viper  The signals in the port map are associated with the signals of a component using positional association –(the X input for XOR2 is mapped to the A input of HALF_ADDER)

Fall 2004EE 3563 Digital Systems Design EE 3563 VHDL Example  Dataflow modeling of HALF_ADDER  The flow of data is expressed using concurrent signal assignment statements  Each assignment statement is executed at the same time (concurrently)  Order is NOT important  SIDE NOTE: –You may wonder how a computer simulation can do this? It can’t. –However, we are talking about two different types of time. –In real-time, the computer can only perform a single task at any given point, but here we mean the statements are executed in concurrently in simulated time.

Fall 2004EE 3563 Digital Systems Design EE 3563 VHDL Example  Here is the dataflow model of HALF_ADDER architecture HA_CONCURRENT of HALF_ADDER is begin SUM <= A xor B after 8 ns; CARRY <= A and B after 4 ns; end HA_CONCURRENT;  The name is HA_CONCURRENT  The signals SUM & CARRY get assigned (<= ) values  Note the after statement, it specifies when the signal (in simulated time) gets its new value  If no after statement is given, then the default delay is used  The default delay (0 ns) is called the delta delay and is a number infinitesimally above zero

Fall 2004EE 3563 Digital Systems Design EE 3563 VHDL Example  Behavioral style of modeling specifies the functionality of an entity with sequential statements  Order IS important, because one statement is executed (in simulated time) one right after the other  The statements are specified inside a process statement  They only specify the functionality of an entity, NOT its structure –Structure of XOR could be either of these or some other design –Example, could be a T-gate implementation

Fall 2004EE 3563 Digital Systems Design EE 3563 VHDL Example  Here is the behavior model of HALF_ADDER architecture HA_CONCURRENT of HALF_ADDER is begin process (A, B) begin SUM <= A xor B; CARRY <= A and B; end process; end HA_CONCURRENT;  Whenever there is an event on A or B, the process is executed  The sequential statements are executed regardless of whether an event occurs on the right hand side of their expression –In this case, an event must occur on A or B to get here, but this is not the general case

Fall 2004EE 3563 Digital Systems Design EE 3563 VHDL Example: 2-to-4 Decoder  Now we will step through another example  This is a 2-to-4 Decoder circuit, note the entity declaration  BIT_VECTOR is another data type (it is an array of bits)  Quiz: Entity name? # Inputs? # Outputs? Data types?  How many components? How many instantiations?

Fall 2004EE 3563 Digital Systems Design EE 3563 VHDL Example: 2-to-4 Decoder  Structural model of 2-to-4 Decoder

Fall 2004EE 3563 Digital Systems Design EE 3563 VHDL Example: 2-to-4 Decoder  Dataflow model of 2-to-4 Decoder  Note the signals: ABAR, BBAR of type BIT  Concurrent or sequential?  What time delay is used?

Fall 2004EE 3563 Digital Systems Design EE 3563 VHDL Example: 2-to-4 Decoder  Behavioral model of 2-to-4 Decoder  Concurrent or sequential?  Note the variables ABAR, BBAR of type BIT –Variables are different than signals in that they are assigned a value instantaneously ( := )  The process statement also has declarative & statement parts Variables are declared, statements are within the begin/end process statements Scope is limited to process in which variable is declared

Fall 2004EE 3563 Digital Systems Design EE 3563 VHDL Example: Flip-Flop entity LS_DFF is -- declaration for level-sensitive flip-flop port(Q:out BIT; D, CLK:in BIT); end LS_DFF architecture LS_DFF_BEH of LS_DFF is begin process(D,CLK) begin if CLK=‘1’ then -- if CLK is one, D is assigned to Q Q <= D end if; end process; end LS_DFF_BEH;

Fall 2004EE 3563 Digital Systems Design EE 3563 VHDL Mixed Modeling  The three types of modeling can be combined within an architecture body –component instantiation – structural –concurrent signal assignments – dataflow –process statements – behavior  This is called the mixed style of modeling

Fall 2004EE 3563 Digital Systems Design EE 3563 VHDL  FULL ADDER