alliance-support '02
VHDL package support in Alliance?


Chris Savarese (savarese@eecs.berkeley.edu)
Sun, 10 Mar 2002 16:58:43 -0800

Hello, I'm attempting to use package files with my VHDL code, but I can't get vasy to accept them. Here is the sample package file, test_pkg.pkg, I'm trying to use: package test is constant SETSOMETHING : integer := "00"; end package test; I've attempted to invoke vasy both with and without the package option: 1) vasy -a -o -I vhd -HLpV mycode 2) vasy -a -o -I vhd -HLpV -P test_pkg mycode I've also attempted to compile mycode.vhd with and without the following 2 lines: library work; use test_pkg.all; Invokation Scenarios: 1) If I use invokation #1 and the library/use lines, vasy generates: vbl_bcomp.yac 2233 : Error 127 :unknown package test_pkg.all 2) If I use invokation #2 and the library/use lines, vasy generates: ERROR syntax error line 1, in file test_pkg 3) If I use invokation #1 and comment out the library/use lines, vasy generates: vbl_bcomp.yac 6732 : Error 17 line 87 in file mycode :'setsomething' unknown port or signal 4) If I use invokation #2 and comment out the library/use lines, vasy generates: ERROR syntax error line 1, in file test_pkg The first and third scenarios listed here suggest to me that the -P option is needed regardless. Scenario 4 then suggests that the library/use lines are unnecessary. Is this true? Scenarios 2 and 4 further suggest that there is something wrong with my package file. I've checked the syntax in test_pkg.pkg against standard VHDL package file examples, and it appears to be correct. Am I doing something wrong? Any suggestions are much appreciated. Thank you for your time and help. Sincerely, Chris Savarese

 



Alliance Web Site © 1997, 2002 ASIM/LIP6/UPMC, page maintained by Czo [Olivier Sirol] , last updated on 13 March 2002.