FPGA Central - World's 1st FPGA / CPLD Portal

FPGA Central

World's 1st FPGA Portal

 

Go Back   FPGA Groups > NewsGroup > VHDL

VHDL comp.lang.vhdl newsgroup / Usenet

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 10-08-2003, 03:25 AM
Aoniti
Guest
 
Posts: n/a
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.
Reply With Quote
  #2 (permalink)  
Old 10-08-2003, 07:50 AM
Egbert Molenkamp
Guest
 
Posts: n/a
Default Re: How can I use a new package?

"Aoniti" <[email protected]> wrote in message
news:[email protected] 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



Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

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

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
DIP PACKAGE ? RealInfo FPGA 3 12-29-2008 11:05 AM
Where is the package defined? fl FPGA 0 07-31-2008 09:22 PM
RLC package parasitics kislo FPGA 2 05-12-2008 03:53 PM
How to specify a package in Xilinx 8.1i Weng Tianxiang FPGA 1 03-13-2006 02:43 AM


All times are GMT +1. The time now is 04:42 PM.


Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0
Copyright 2008 @ FPGA Central. All rights reserved