E
Erik Markert
Guest
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
--
\\Erik Markert - student of Information Technology//
\\ at Chemnitz University of Technology //
\\ TalkTo: erma@sirius.csn.tu-chemnitz.de //
\\ URL: http://www.erikmarkert.de //
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
--
\\Erik Markert - student of Information Technology//
\\ at Chemnitz University of Technology //
\\ TalkTo: erma@sirius.csn.tu-chemnitz.de //
\\ URL: http://www.erikmarkert.de //