Go Back   Velocity Reviews > Newsgroups > VHDL
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply

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

 
Thread Tools Search this Thread
Old 09-25-2003, 01:45 PM   #1
Default ISE6.1: Constant definition in package doesn't work


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
  Reply With Quote
Old 09-25-2003, 04:51 PM   #2
Mike Treseler
 
Posts: n/a
Default Re: ISE6.1: Constant definition in package doesn't work
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
  Reply With Quote
Old 09-25-2003, 05:21 PM   #3
Erik Markert
 
Posts: n/a
Default Re: ISE6.1: Constant definition in package doesn't work
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
  Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

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

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




SEO by vBSEO 3.3.2 ©2009, Crawlability, Inc.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46