How to specify a global package in Xilinx 8.1i

W

Weng Tianxiang

Hi,
I need your help.

I have 4 vhdl source files:
A-Package.vhd;
A1.vhd;
A2.vhd;
A3.vhd;

A-Package.vhd is a package defining all common functions and constants
used for all other modules.

If the 4 files are in the above order, Modelsim runs them without any
errors.

But with Xilinx 8.1i, some parameters saved in A-Package.vhd file are
not referenced correctly in other modules.

Should I compile A-Package.vhd first as an independent project and then
what to do?

Thank you.

Weng
 
M

Mike Treseler

Weng said:
If the 4 files are in the above order, Modelsim runs them without any
errors.
But with Xilinx 8.1i, some parameters saved in A-Package.vhd file are
not referenced correctly in other modules.

Vendor library support files often have several
entities with the same name to support multiple device
families. Some package files have chicken-or-egg loops built in.
So you may have to figure out a workable order by trial and error,
or cut and past just the units you really need.

Or write your own code and
let synthesis worry about it.

-- Mike Treseler
 

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
473,774
Messages
2,569,599
Members
45,174
Latest member
BlissKetoACV
Top