![]() |
|
|
|||||||
![]() |
VHDL - ISE6.1: Constant definition in package doesn't work |
|
|
Thread Tools | Search this Thread |
|
|
#1 |
|
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: // \\ URL: http://www.erikmarkert.de // Erik Markert |
|
|
|
|
#2 |
|
Posts: n/a
|
Erik Markert wrote:
> 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 Mike Treseler |
|
|
|
#3 |
|
Posts: n/a
|
Mike Treseler wrote:
> > 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 -- \\Erik Markert - student of Information Technology// \\ at Chemnitz University of Technology // \\ TalkTo: // \\ URL: http://www.erikmarkert.de // Erik Markert |
|
![]() |
| Thread Tools | Search this Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Identity Theft at Work @ A True Review | Silverstrand | Front Page News | 0 | 06-27-2006 03:56 PM |
| High Definition and the future of viewing. | Allan | DVD Video | 3 | 03-09-2005 12:56 AM |
| Engineering Certifications | Harsha Raghavan | A+ Certification | 81 | 08-10-2004 08:25 PM |