ISE6.1: Constant definition in package doesn't work

E

Erik Markert

Hello,

I have a package with a function and some constant definitions. Now I
implement it to the project. In Modelsim I can access the constants but
in ISE6.1 Synthesis it doesn't find that constant.

Code:
package body fpga_config_pack IS
CONSTANT deviceID : bit_vector(15 downto 0):= X"0815" ;
function calc_par (SIGNAL ad: std_logic_vector ) return std_logic IS
....
END;
END fpga_config_pack;

use work.fpga_config_pack.ALL;
ENTITY ...

ARCHITECTURE rtl_A...
BEGIN
data(0) <= calc_par(address);
data <= TO_STDLOGICVECTOR(deviceID);
END rtl_A;

The Synthesize XST has no problems with calc_par() but reports an error
with the constant:
Compiling vhdl file C:/Xilinx/PCI_Card/fpga_config_pack.vhd in Library work.
Architecture fpga_config_pack of Entity fpga_config_pack is up to date.
Compiling vhdl file C:/Xilinx/PCI_Card/config_space.vhd in Library work.
ERROR:HDLParsers:3312 - C:/Xilinx/PCI_Card/config_space.vhd Line 62.
Undefined symbol 'deviceID'.

In Modelsim standalone simulation all works fine.
What's the mistake in ISE6.1?

Thanks

Erik
 
M

Mike Treseler

Erik said:
package body fpga_config_pack IS
CONSTANT deviceID : bit_vector(15 downto 0):= X"0815" ;
ERROR:HDLParsers:3312 - C:/Xilinx/PCI_Card/config_space.vhd Line 62.
Undefined symbol 'deviceID'.

In Modelsim standalone simulation all works fine.
What's the mistake in ISE6.1?

Your problem is consistent with ISE6.1 set to '87 instead of '93.

-- Mike Treseler
 
E

Erik Markert

Mike said:
Your problem is consistent with ISE6.1 set to '87 instead of '93.

But constant declaration in packages should be also possible in '87? Or
is there something different in including that library?

Erik
 

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,537
Members
48,796
Latest member
shadowoftheunknown
Top