How can I use a new package?

A

Aoniti

I am a new comer in VHDL. I am using ModelSim to simulate my lesson.
Now I want to use numeric_signed.vhd package that I have downloaded
from the net. I don't know how to declare this package beside the
"use" command in the source, then what should I do more? Thank you
very much for your regard.
 
E

Egbert Molenkamp

Aoniti said:
I am a new comer in VHDL. I am using ModelSim to simulate my lesson.
Now I want to use numeric_signed.vhd package that I have downloaded
from the net. I don't know how to declare this package beside the
"use" command in the source, then what should I do more? Thank you
very much for your regard.

1. You first have to compile the package (the same way you have compiled
entities). After that the package is in library WORK.
2. If you want to use this package write:
USE work.numeric_signed.ALL;
ENTITY blabla

If you have compiled the package into another library you have to write:
LIBRARY <your lib name>;
USE <your lib name>.numeric_signed.ALL;
ENTITY ...


Egbert Molenkamp
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,405
Messages
2,571,539
Members
48,796
Latest member
shadowoftheunknown
Top