0% found this document useful (0 votes)
16 views

Introduction To VHDL Simulation and Synthesis

This document introduces VHDL simulation and synthesis using a blinking LED lab. It describes implementing a 2-bit counter and 2-4 decoder in VHDL to drive 4 LEDs in different patterns as the counter increments. The VHDL will be simulated, synthesized to an FPGA, and downloaded to an FPGA board to test the blinking LEDs.

Uploaded by

PVR
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
16 views

Introduction To VHDL Simulation and Synthesis

This document introduces VHDL simulation and synthesis using a blinking LED lab. It describes implementing a 2-bit counter and 2-4 decoder in VHDL to drive 4 LEDs in different patterns as the counter increments. The VHDL will be simulated, synthesized to an FPGA, and downloaded to an FPGA board to test the blinking LEDs.

Uploaded by

PVR
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

7/3/2016 Introduction 

to VHDL Simulation and Synthesis

Introduction to VHDL Simulation and Synthesis:
Blinking LEDs Lab

I. Introduction
The purpose of this lab is to introduce you to VHDL simulation and synthesis using the ALDEC VHDL simulator
and the Xilinx foundation software for synthesis. There are several defenitions that may be helpful:

Simulation is the execution of a model in the software environment. This is done using the ALDEC VHDL
simulator.
A test bench is a program whose purpose is to verify that the behavior of our system is as expected. The test
bench is used in ALDEC to simulate our design by specifying the inputs into the system.
Synthesis is the process of translating a design description to another level of abstraction, i.e, from
behaviour to structure. We achieved synthesis by using a Synthesis tool like Foundation Express which
outputs a netlist. It is similar to the compilation of a high level programming language like C into assembly
code.

In this lab, you will implement a behavioral description of a 2­bit counter (00, 01, 10, 11, 00, ...). The counter's
output is fed to a 2­4 decoder. This decoder's output is the output of the top level entity (see picutre above). The
output of the top level entity is then fed to four led's. The leds should correspond as follows:

counter output L0 L1 L2 L3
reset 0 0 0 0
00 0 0 0 1
01 0 0 1 0
10 0 1 0 0
11 1 0 0 0

The counter and decoder should be written behaviorally. A behavioral style architecture specifies what a
particular system does but provides no information on how the design is implemented (i.e. don't use AND, OR,
NAND, ... gates to implement your design). In this lab, you will specify an entity and test it, synthesize your
design using FPGA Express and download it onto an XS40 board using the Xilinx Foundation software.

III. Schematic:
On the XS40 board:

http://esd.cs.ucr.edu/labs/lights/lights.html 1/2
7/3/2016 Introduction to VHDL Simulation and Synthesis

Pin 2 provides power to the other components.
Pin 52 provides ground to the other components.

No power supply is needed for this lab, you can think of pins 2 and 52 as on "onboard power supply." In addition
the button is used as the clock signal. The onboard clk is 12MHz, this is too fast for us to see the lights blink.
Instead of using a clock divider to slow down the signal, we create our own clock signal using the button (Don't
forget to change your .ucf file to represent our pseudo clock). 

II. Procedure:
simulation

1. Complete the code provided. It should describe a 2­bit counter and a 2­4 decoder in VHDL, constructing a
top­level structural entity containing these two components.
2. Write a suitable testbench and simulate it to ensure that it is correct (Use ALDEC VHDL).

synthesis

1. Wire up the circuit as shown. You may need the circuit diagram or the the manual for the XS40 boards.
2. Make the neccessary additions to your lights.ucf file to reflect the LED connections.
3. Download your program unto the XS40 board.

http://esd.cs.ucr.edu/labs/lights/lights.html 2/2

You might also like