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

Comm 523: Cad: VHDL Lab - Modelsim Introduction

This document provides instructions for installing and using ModelSim software to simulate VHDL designs. It outlines downloading and installing ModelSim, creating a new project, adding VHDL files to the project, compiling the design, and simulating the design. The key steps are creating a project, adding VHDL files, compiling for errors, and simulating to view input/output waveforms and test the design.

Uploaded by

bittibssi
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
58 views

Comm 523: Cad: VHDL Lab - Modelsim Introduction

This document provides instructions for installing and using ModelSim software to simulate VHDL designs. It outlines downloading and installing ModelSim, creating a new project, adding VHDL files to the project, compiling the design, and simulating the design. The key steps are creating a project, adding VHDL files, compiling for errors, and simulating to view input/output waveforms and test the design.

Uploaded by

bittibssi
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 11

10/12/2016

COMM 523: CAD


VHDL Lab ModelSim Introduction

Ahmed Hamza
Integrated Circuits Laboratory
Ain Shams University
Cairo, Egypt

Outline
Installing ModelSim
Creating a New Project
Adding VHDL Files to the Project
Compiling the Design
Simulating the Design

2
1

1
10/12/2016

I NSTALLING M ODELS IM

Installing ModelSim
Download ModelSim Student edition:
http://www.mentor.com/company/higher_ed/mo
delsim-student-edition
Follow the installation Steps

4
1

2
10/12/2016

C REATING A N EW P ROJECT

Creating a New Project


To create a new project: File New Project.
Enter the name & location of the project in the
dialog box.

6
1

3
10/12/2016

A DDING VHDL F ILES


TO THE P ROJECT

Adding VHDL Files to the Project (1)


Choose: Create New File.
Enter the name of the file (ex: inv.vhd) & select
the type of the file (VHDL) in the dialog box.

8
1

4
10/12/2016

Adding VHDL Files to the Project (1)


You will notice a new file added to the project.
Add your code to the file

Double Click on the created file to edit

Note: If the above window didnt appear, click on View then


Project
9
1

Adding VHDL Files to the Project (2)


From File New Source VHDL
An untitled file will appear allowing you to write &
save your code.

10
1

5
10/12/2016

Adding VHDL Files to the Project (3)


You may also add an existing file to your project.
In the project window, right click Add to Project
Existing File. Then Browse to your file.

11
1

C OMPILING THE D ESIGN

12

6
10/12/2016

Compiling the Design


To compile the Design: right click on the file
Compile Compile Selected

Then, the Transcript Window shows successful


compilation/errors
Double click on the error to view it.

13
1

S IMULATING THE D ESIGN

14

7
10/12/2016

Simulating The Design


After successful Compilation, we will simulate our
design.
From Simulate Start Simulation
A new Window appears, choose your file under
Work.

15
1

Simulating The Design


The following Window appears, showing the
inputs & outputs of your design

Note: If the above window didnt appear, click on


View then Objects & Wave.
16
1

8
10/12/2016

Simulating The Design


In the Objects Window, select the inputs &
outputs right Click add Wave

17
1

Simulating The Design


In the Wave Window, right click on the input
Force & enter its value

18
1

9
10/12/2016

Simulating The Design


Then, click on the Run symbol

You should see the waveform in the wave Window

19
1

Simulating The Design


You may also apply a clock to your input with a
specific period, duty cycle,

20
1

10
10/12/2016

T HANKS

21

11

You might also like