VLSI System Design

Project VHD: Introduction to VHDL and VHDL Simulation

This project is a compulsory part of the examination for the VLSI System Design course at the University of Twente. The goals of this project are: The description below refers to various file names. These files are not available on-line. Once you have logged in, execute the command get-gcd to get them or copy them from. the directory /home/practice/vlsisd/exercise/modules/gcd.

The greatest commondivider (GCD) circuit that is the topic of this exercise, is presented in a document entitled VHDL for Synthesis and Simulation. It is strongly recommended to have read that document before doing any of the exercises.

Exercise VHD-1: Compile and Simulate the GCD's register-transfer level (RTL) Description

If you are not yet familiar with Modelsim, study the concise manual especially written for the students of the University of Twente. In addition, you can consult the tool's help function.

Create a new Modelsim project and add the following files to it:

Make sure that the order of the files in the project are as given above and compile them.

Study the file tb-gcd.vhd and pay especially some attention to the architecture behavioral of the entity testvec_gcd. You should see that the inputs for the simulation are taken from a file gcd.in that contains pairs of numbers on each line for which the GCD should be calculated. You can modify this file if you want.

Run a simulation and generate waveforms that clearly show that circuit functions as intended.

Exercise VHD-2: Complete the Structural Description and Simulate

In this exercise, the structural description as presented in the handout on VHDL will be completed and simulated.

Before doing any simulations, you will first need to complete the controller description as provided in the file gcd-controller.vhd. It is incomplete: only the next-state computation and output values for the first state is given. You will have to provide the descriptions for the missing states.

Add the following files to the project of exercise VHD-1 and then compile:

When all files compile correctly, simulate the new description and verify that it functions correctly.

Deliverables

I (Sabih Gerez) would like to receive the following as a proof that you have finished this project:
Last update on: Mon Feb 16 13:45:30 CET 2004 by Sabih Gerez.