DIGITAL DESIGN WITH VHDL Exercise 1 1Muhammad Amir Yousaf.

Slides:



Advertisements
Similar presentations
Verilog.
Advertisements

1 Introduction to VHDL (Continued) EE19D. 2 Basic elements of a VHDL Model Package Declaration ENTITY (interface description) ARCHITECTURE (functionality)
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
 HDLs – Verilog and Very High Speed Integrated Circuit (VHSIC) HDL  „ Widely used in logic design  „ Describe hardware  „ Document logic functions.
ECE 353 Computer Systems Lab II VHDL AND LABORATORY TOOLS TUTORIAL Professors Maciej Ciesielski & T. Baird Soules.
Mridula Allani Fall 2010 (Refer to the comments if required) ELEC Fall 2010, Nov 21(Adopted from Profs. Nelson and Stroud)
FPGAs and VHDL Lecture L12.1. FPGAs and VHDL Field Programmable Gate Arrays (FPGAs) VHDL –2 x 1 MUX –4 x 1 MUX –An Adder –Binary-to-BCD Converter –A Register.
VHDL. What is VHDL? VHDL: VHSIC Hardware Description Language  VHSIC: Very High Speed Integrated Circuit 7/2/ R.H.Khade.
ECE 331 – Digital System Design Single-bit Adder Circuits and Adder Circuits in VHDL (Lecture #12) The slides included herein were taken from the materials.
ECE 331 – Digital System Design
ECE 448: Spring 12 Lab 4 – Part 2 Finite State Machines Basys2 FPGA Board.
Introduction to FPGA AVI SINGH. Prerequisites Digital Circuit Design - Logic Gates, FlipFlops, Counters, Mux-Demux Familiarity with a procedural programming.
Verilog Intro: Part 2. Procedural Blocks There are two types of procedural blocks in Verilog. – initial for single-pass behavior: initial blocks execute.
VHDL TUTORIAL Preetha Thulasiraman ECE 223 Winter 2007.
Module 2.1 Gate-Level/Structural Modeling UNIT 2: Modeling in Verilog.
1/26 VHDL VHDL Structural Modeling Digital Logic.
Reconfigurable Computing - VHDL John Morris Chung-Ang University The University of Auckland.
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.
displayCtrlr Specification
CascadedBCDCntr&Display Aim : Capture, simulate and implement a 2-digit, loadable BCD up/down counter, with chip enable I/P (CE) and chip enable O/P (CEO).
Anurag Dwivedi. Basic Block - Gates Gates -> Flip Flops.
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.
Chap. 4 Modules and Ports. 2 Modules and Ports Modules Ports Hierarchical Names Summary.
ECE 331 – Digital System Design Single-bit Adder Circuits and Adder Circuits in VHDL (Lecture #11) The slides included herein were taken from the materials.
Number Systems and Circuits for Addition Lecture 5 Section 1.5 Thu, Jan 26, 2006.
M. Balakrishnan Dept of Computer Science & Engg. I.I.T. Delhi
(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.
1/8/ L2 VHDL Introcution© Copyright Joanne DeGroat, ECE, OSU1 Introduction to VHDL.
Verilog A Hardware Description Language (HDL ) is a machine readable and human readable language for describing hardware. Verilog and VHDL are HDLs.
Introduction to Combinational Verilog EECS270 rev 9/25/12.
Digital System Projects
ECOM 4311—Digital System Design with VHDL
Number Systems and Circuits for Addition – Binary Adders Lecture 6 Section 1.5 Fri, Jan 26, 2007.
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.
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.
COE 202 Introduction to Verilog Computer Engineering Department College of Computer Sciences and Engineering King Fahd University of Petroleum and Minerals.
1 Introduction to Engineering Spring 2007 Lecture 18: Digital Tools 2.
Introduction to Verilog COE 202 Digital Logic Design Dr. Muhamed Mudawar King Fahd University of Petroleum and Minerals.
LAB #5 Modular Design and Hierarchy using VHDL
Introduction to the FPGA and Labs
Hardware Description Languages: Verilog
A Case Study of the Rehosting from VHDL to Matlab/C
Basic Language Concepts
Systems Architecture Lab: Introduction to VHDL
Supplement on Verilog adder examples
Lecture 2 Supplement Verilog-01
Hardware Description Languages: Verilog
Week 5, Verilog & Full Adder
VHDL VHSIC Hardware Description Language VHSIC
Introduction to Verilog
Structural style Modular design and hierarchy Part 1
VHDL (VHSIC Hardware Description Language)
Number Systems and Circuits for Addition
Supplement on Verilog adder examples
RTL Design Methodology Transition from Pseudocode & Interface
Prof. Onur Mutlu ETH Zurich Spring March 2019
© Copyright Joanne DeGroat, ECE, OSU
Digital Designs – What does it take
Chapter 10 Introduction to VHDL
COE 202 Introduction to Verilog
EEL4712 Digital Design (VHDL Tutorial).
Presentation transcript:

DIGITAL DESIGN WITH VHDL Exercise 1 1Muhammad Amir Yousaf

What is VHDL? What it is used for? 2Muhammad Amir Yousaf

VHDL vs Programming languages? 3Muhammad Amir Yousaf

VHDL VERY HIGH SPEED INTEGRATED CIRCUIT HARDWARE DESCRIPTION LANGUAGE: Origininally designed to describe and specify hardware. Specifications were made executable with simulators. Synthesizer were developed to synthesize. 4Muhammad Amir Yousaf

VHDL - MODULARITY Component in VHDL is refferd as ’entity’ and has a clear interface. Inputs Outputs Type and size. Internal of component is called architecture declaration. Complexity is hidden inside. Made of components and wires. How the external world would see it. 5Muhammad Amir Yousaf

DESCRIPTION OF A DIGITAL COMPONENT. A component is to be designed with following description: A full adder that adds two 1 bit inputs and a carry- in bit. The result is shown at a 1 bit SUM and a carry-out bit. Describe this component in (a standard descriptive language) VHDL Full Adder A B CIN SUM COUT 6Muhammad Amir Yousaf

DESCRIPTION OF A FULLADDER WITH VHDL Full Adder A B CIN SUM COUT 7Muhammad Amir Yousaf

DESCRIPTION OF A DIGITAL COMPONENT. A component is to be designed with following description: A full adder that adds two 1 bit inputs and a carry- in bit. The result is shown at a 1 bit SUM and a carry-out bit. Describe this component in (a standard descriptive language) VHDL Full Adder A B CIN SUM COUT Let add a ‘RESET’ pin in the component. RST 8Muhammad Amir Yousaf

DESCRIPTION OF A DIGITAL COMPONENT. VHDL code: If RST = ’1’ then SUM <= ‘0’; COUT <= ‘0’; else End if;  If is sequential, so must be contained in process.  Sequential or procedural statements execute in the order as they appear in code. label: process ( ) 9Muhammad Amir Yousaf

DESCRIPTION OF A FULLADDER Full Adder A B CIN SUM COUT RST 10Muhammad Amir Yousaf

EXERCISES EX 1: Describe a system in VHDL with an input x and output y of type integer. The system gives x+10 at output whenever a change is detected on input. EX 3: A MUX is described in VHDL as. MUX Make a 4-to-1 MUX using the structure of 2-to-1 MUXs. EX 2: ´Describe a 4-bit comparator in VHDL using relational operators i.e > < =. comp 4 4 x y gt eq lt 11Muhammad Amir Yousaf

A MODEL OF A DIGITAL SYSTEM IS DESCRIBED IS IT TIME TO TRANSLATE IT IN HARDWARE? IS IT POOSIBLE TO SEE AND ANALYZE THE SYSTEM PERFORMANCE? CAN WE SIMULATE THE RESULTS? 12Muhammad Amir Yousaf

SIMULATING DESCRIPTION OF DIGITAL DESIGN  A digital component is modeled in VHDL but not proven yet.  Model a ’TESTBENCH’ in VHDL to prove the performance of designed part.  ’TESTBENCH’ applies stimulus to the design and simulates the response of system. In stimulus we assign inputs to the system. 13Muhammad Amir Yousaf

TESTBENCH Stimulus TESTBENCH Full Adder A B CIN SUM COUT RST Full Adder A B CIN SUM COUT RST 14Muhammad Amir Yousaf

TESTBENCH BY XILINX 15Muhammad Amir Yousaf

TESTBENCH BY XILINX 16Muhammad Amir Yousaf

PRACTICAL LET WE MODEL THIS IN VHDL WITH XILINX START XILINX 17Muhammad Amir Yousaf

SYNTHESIZE LET TRANSLATE OUR MODEL INTO HARDWARE DIGILENT NEXYS2 User IOs  8 slide switches.  8 LEDs  4 push buttons  4 seven segment displays Full Adder A B CIN SUM COUT RST 18Muhammad Amir Yousaf

SYNTHESIZE FPGA User IOs  8 slide switches.  8 LEDs  4 push buttons  4 seven segment displays.ucf file gives connection mapfile Top VHDL file Gives top interface of the system. Use Adept from Digilent to load the bit file in FPGA. 19Muhammad Amir Yousaf

Home Exercise: VGA: Read about VGA controller to know that how it works. VGA reference document and VHDL code is given at: 20Muhammad Amir Yousaf