Go Back   Velocity Reviews > Newsgroups > VHDL
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply

VHDL - How can I use a new package?

 
Thread Tools Search this Thread
Old 10-08-2003, 03:25 AM   #1
Default How can I use a new package?


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.


Aoniti
  Reply With Quote
Old 10-08-2003, 07:50 AM   #2
Egbert Molenkamp
 
Posts: n/a
Default Re: How can I use a new package?
"Aoniti" <> wrote in message
news: om...
> 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





Egbert Molenkamp
  Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
enterprisedb package execution kanchuparthi.rams Software 0 05-22-2008 01:59 PM
Complete package of DVD solutions mikesoft_video@yahoo.com DVD Video 0 02-01-2007 12:31 PM
The Practice Test Package Development: A New Service on the Certification Market David Johnson A+ Certification 0 01-19-2005 10:52 AM
HellBoy package not Widescreen???? Chris DVD Video 2 11-03-2004 07:59 PM
PC Package deals? jkl A+ Certification 0 10-28-2004 05:12 PM




SEO by vBSEO 3.3.2 ©2009, Crawlability, Inc.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46