Electrical and Computer Engineering University of Cyprus 05-09-2007 LAB 1: VHDL.

Slides:



Advertisements
Similar presentations
ENEL111 Digital Electronics
Advertisements

CMSC 611: Advanced Computer Architecture
Fundamental Concepts 大同大學 資訊工程系 副教授
© 1998, Peter J. AshendenVHDL Quick Start1 Basic VHDL Concepts Interfaces Behavior Structure Test Benches Analysis, elaboration, simulation Synthesis.
Verilog Intro: Part 1.
CSE 341 Verilog HDL An Introduction. Hardware Specification Languages Verilog  Similar syntax to C  Commonly used in  Industry (USA & Japan) VHDL 
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.
Adv. Digital Circuit Design
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 Dr. Adnan Shaout The University of Michigan-Dearborn.
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,
VHDL Quick Start Peter J. Ashenden The University of Adelaide.
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.
Topics Entity DeclarationsEntity Declarations Port ClausePort Clause Component DeclarationComponent Declaration Configuration DeclarationConfiguration.
HDL-Based Digital Design Part I: Introduction to VHDL (I) Dr. Yingtao Jiang Department Electrical and Computer Engineering University of Nevada Las Vegas.
VHDL. What is VHDL? VHDL: VHSIC Hardware Description Language  VHSIC: Very High Speed Integrated Circuit 7/2/ R.H.Khade.
Fall 08, Oct 29ELEC Lecture 7 (updated) 1 Lecture 7: VHDL - Introduction ELEC 2200: Digital Logic Circuits Nitin Yogi
Introduction to VHDL By Mr. Fazrul Faiz Zakaria School of Computer and Communication Engineering UniMAP.
An Introduction to VHDL Using Altera’s Quartus II IDE Dr. William M. Jones Coastal Carolina University Numbers and Bytes Meeting 20 OCT 2008.
1 Digital System Design Subject Name : Digital System Design Course Code : IT- 308 Instructor : Amit Prakash Singh Home page :
DSD,USIT,GGSIPU1 Entity declaration –describes the input/output ports of a module entity reg4 is port ( d0, d1, d2, d3, en, clk : in std_logic; q0, q1,
VHDL TUTORIAL Preetha Thulasiraman ECE 223 Winter 2007.
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.
1/26 VHDL VHDL Structural Modeling Digital Logic.
CWRU EECS 317 EECS 317 Computer Design LECTURE 1: The VHDL Adder Instructor: Francis G. Wolff Case Western Reserve University.
1 Introduction to VHDL Spring What is VHDL? VHDL can be uses to model and synthesise digital systems. VHDL = VHSIC Hardware Description Language.
Introduction to VLSI Design – Lec01. Chapter 1 Introduction to VLSI Systems Lecture # 6 Computer-Aided Design Technology for VLSI.
Module 1.2 Introduction to Verilog
Fall 2004EE 3563 Digital Systems Design EE 3563 VHDL – Basic Language Elements  Identifiers: –basic identifier: composed of a sequence of one or more.
Introduction to VHDL Spring EENG 2920 Digital Systems Design Introduction VHDL – VHSIC (Very high speed integrated circuit) Hardware Description.
Copyright(c) 1996 W. B. Ligon III1 Getting Started with VHDL VHDL code is composed of a number of entities Entities describe the interface of the component.
Fall 2004EE 3563 Digital Systems Design EE 3563 VHSIC Hardware Description Language  Required Reading: –These Slides –VHDL Tutorial  Very High Speed.
Fall 08, Oct 29ELEC Lecture 7 (updated) 1 Lecture 7: VHDL - Introduction ELEC 2200: Digital Logic Circuits Nitin Yogi
Introduction to VLSI Design – Lec01. Chapter 1 Introduction to VLSI Design Lecture # 11 High Desecration Language- Based Design.
(1) Basic Language Concepts © Sudhakar Yalamanchili, Georgia Institute of Technology, 2006.
Introduction to VHDL Simulation … Synthesis …. The digital design process… Initial specification Block diagram Final product Circuit equations Logic design.
1 Introduction to VHDL Part 2 Fall We will use Std_logic And, Or have same precedence See slide 8 of part 1.
CMSC 611: Advanced Computer Architecture Design & Simulation Languages Practically everything adapted from slides by Peter J. Ashenden, VHDL Quick Start.
CEC 220 Digital Circuit Design Introduction to VHDL Wed, February 25 CEC 220 Digital Circuit Design Slide 1 of 19.
CSCI-365 Computer Organization Lecture Note: Some slides and/or pictures in the following are adapted from: Computer Organization and Design, Patterson.
04/26/20031 ECE 551: Digital System Design & Synthesis Lecture Set : Introduction to VHDL 12.2: VHDL versus Verilog (Separate File)
Digital Design Using VHDL and PLDs ECOM 4311 Digital System Design Chapter 1.
CEC 220 Digital Circuit Design Introduction to VHDL Friday, February 21 CEC 220 Digital Circuit Design Slide 1 of 10.
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.
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.
CMSC 611: Advanced Computer Architecture Hardware Design Languages Some material adapted from slides by Peter J. Ashenden, VHDL Quick Start Some material.
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.
1 A hardware description language is a computer language that is used to describe hardware. Two HDLs are widely used Verilog HDL VHDL (Very High Speed.
SUBJECT : DIGITAL ELECTRONICS CLASS : SEM 3(B) TOPIC : INTRODUCTION OF VHDL.
Hardware Description Languages: Verilog
Introduction To VHDL 홍 원 의.
Basic Language Concepts
Systems Architecture Lab: Introduction to VHDL
Design Entry: Schematic Capture and VHDL
Hardware Description Languages: Verilog
Peter J. Ashenden The University of Adelaide
VHDL VHSIC Hardware Description Language VHSIC
Introduction to Verilog
CMSC 611: Advanced Computer Architecture
Hardware Modeling & Synthesis Using VHDL
COE 202 Introduction to Verilog
EEL4712 Digital Design (VHDL Tutorial).
VHDL - Introduction.
Presentation transcript:

Electrical and Computer Engineering University of Cyprus LAB 1: VHDL

What is VHDL? VHDL is a programming language for describing digital system behavior & structure. VHDL stands for VHSIC (Very High Speed Integrated Circuits) Hardware Description Language.

“Universal” Language proposed by USA DoD IEEE standard Wide industry acceptance Supports different methodologies Supports different technologies Supports technology-independent abstract models Helps component re-use Self-documenting Many tools available.

MODELING DIGITAL SYSTEMS VHDL is for coding models of a digital system... Reasons for modeling  requirements specification  documentation  testing using simulation  formal verification  synthesis  class assignments Goal  most ‘reliable’ design process, with minimum cost and time  avoid design errors!

BASIC VHDL CONCEPTS Interfaces -- i.e. Ports Behavior Structure Test Benches Analysis, simulation Synthesis

VHDL VHDL is a programming language that allows one to model and develop complex digital systems in a dynamic environment. Object Oriented methodology -- modules can be used and reused. Allows you to designate in/out ports (bits) and specify behavior or response of the system.

VHDL DESIGN DESCRIPTION Each VHDL design description consists of at least one entity / architecture pair. defines the external interface of the circuit defines the underlying structure and/or behavior of the circuit

ENTITY DECLARATION Entity declaration  describes the input/output ports of a module entity reg4 is port ( d0, d1, d2, d3, en, clk : in bit; q0, q1, q2, q3 : out bit ); end entity reg4; entity nameport namesport mode (direction) port typereserved words punctuation

ARCHITECTURE DECLARATION It is always related to one entity. It describes the behavior or the structure of the circuit. For each entity it is possible to have more than one architecture.

MODELING THE BEHAVIOR Architecture body  describes an implementation of an entity  may be several per entity Behavioral architecture  describes the algorithm performed by the module  contains process statements, each containing  sequential statements, including  signal assignment statements and  wait statements

AN EXAMPLE architecture behav of reg4 is begin process (d0, d1, d2, d3, en, clk) variable stored_d0, stored_d1, stored_d2, stored_d3 : bit; begin if en = '1' and clk = '1' then stored_d0 := d0; stored_d1 := d1; stored_d2 := d2; stored_d3 := d3; end if; q0 <= stored_d0 after 5 ns; q1 <= stored_d1 after 5 ns; q2 <= stored_d2 after 5 ns; q3 <= stored_d3 after 5 ns; end process; end behav; sensitivity list notice := syntax used for equating values from signals... simulates real-world propagation delays.

VHDL – SYNTAX TO KNOW Omit entity at end of entity declaration Omit architecture at end of architecture body Omit is in process statement header entity reg4 is port ( d0, d1, d2 : in bit d3, en, clk : in bit; q0, q1, q2, q3 : out bit ); end reg4; architecture behav of reg4 is begin process (d0,... )... begin... end process ; end behav;

SIMPLE EXAMPLE-COMPARATOR

DATA TYPES Like a high-level software programming language, VHDL supports different data types. Data types allow the user to represent − high-level data (real, integer, string,...) − values got by individual wires in a circuit. Every data type can get a defined set of values.

DATA TYPES

OPERATORS Logical operators: and, or, nand, not, nor, xor Relational operators: =, /=,, >= Shift operators: sll, srl, sla, sra, rol, ror Adding operators: +, -, & Multiplying operators: *, /, mod. …….and other more complex included in IEEE standard logic 1164 and IEEE standard logic arithmetic.

EXAMPLE – HALF ADDER

MODELING THE STRUCTURE Structural architecture  implements the module as a composition of subsystems  contains signal declarations, for internal interconnections  the entity ports are also treated as signals component instances  instances of previously declared entity/architecture pairs port maps in component instances  connect signals to component ports

EXAMPLE

EXAMPLE (…) First declare D-latch and and-gate entities and architectures entity d_latch is port ( d, clk : in bit; q : out bit ); end entity d_latch; architecture basic of d_latch is begin process (clk, d) begin if clk = ‘1’ then q <= d after 2 ns; end if; end process; end basic; entity and2 is port ( a, b : in bit; y : out bit ); end entity and2; architecture basic of and2 is begin process (a, b) begin y <= a and b after 2 ns; end process ; end basic;

EXAMPLE (…) Declare corresponding components in register architecture body architecture struct of reg4 is component d_latch port ( d, clk : in bit; q : out bit ); end component; component and2 port ( a, b : in bit; y : out bit ); end component; signal int_clk : bit;...

EXAMPLE (…) Now use them to implement the register... begin bit0 : d_latch port map ( d0, int_clk, q0 ); bit1 : d_latch port map ( d1, int_clk, q1 ); bit2 : d_latch port map ( d2, int_clk, q2 ); bit3 : d_latch port map ( d3, int_clk, q3 ); gate : and2 port map ( en, clk, int_clk ); end struct;

TESTING Testing a design by simulation Use a test bench model  a Model that uses your Model  apply test sequences to your inputs  monitors values on output signals either using simulator or with a process that verifies correct operation or logic analyzer

ANALYSIS Check for syntax and logic errors  syntax: grammar of the language  logic: how your Model responds to stimuli Analyze each design unit separately  entity declaration  architecture body  …  put each design unit in a separate file -- helps a lot. Analyzed design units are placed in a library  make sure your Model is truly OOP

SIMULATION Discrete event simulation  time advances in discrete steps  when signal values change—events occur A processes is sensitive to events on input signals  specified in wait statements  resumes and schedules new values on output signals schedules transactions event on a signal if value changes

THE END