Forum Discussion
Altera_Forum
Honored Contributor
14 years agoCould not find rtl_work.TB.vhd
Hello,
The same process is giving issues once again: # ** Error: (vsim-3170) Could not find 'C:\Users\Alfonso\Desktop\PFC\simulation\modelsim\ rtl_work.TB_PFC_main'.# Error loading design# Error: Error loading design # Pausing macro execution # MACRO ./PFC_run_msim_rtl_vhdl.do PAUSED at line 34 I remember to delete the work folder to be able to compile a library that need that according to a modelsim tutorial: http://doc.union.edu/118/se_tutor.pdf (http://doc.union.edu/118/se_tutor.pdf) I have to do vcom <vhdl files .vhd> # do this for all the files cause it had to be done in the work folder, this may have caused the issue. i'm lost, can anyone help me?.80 Replies
- Altera_Forum
Honored Contributor
I've changed it on all .vhdl, but unfortunatelly:
error (10481): vhdl use clause error at producten.vhd(3): design library "work" does not contain primary unit "fixed_package"error (10800): vhdl error at producten.vhd(3): selected name in use clause is not an expanded name
error (10481): vhdl use clause error at pack.vhd(9): design library "work" does not contain primary unit "fixed_package"
error (10800): vhdl error at pack.vhd(9): selected name in use clause is not an expanded name Error: Quartus II 32-bit Analysis & Synthesis was unsuccessful. 4 errors, 1 warning Error: Peak virtual memory: 316 megabytes Error: Processing ended: Thu Sep 13 20:40:22 2012 Error: Elapsed time: 00:00:02 Error: Total CPU time (on all processors): 00:00:02 Error (293001): Quartus II Full Compilation was unsuccessful. 6 errors, 1 warning The target of the error is: use work.fixed_package.all;
- Altera_Forum
Honored Contributor
C'mon man, stop jumping around tools :)
You earlier posted the script contents that contained:
These commands compile the packages into work for Modelsim. Your above error is for Quartus. If you have the files added to your project, right click on them, and check they are being compiled into the work library. Make sure the package definitions are compiled prior to their use. Cheers, Davevcom -93 -work work {C:/Users/Alfonso/Desktop/PFC/altera/fixed_float_types_c.vhdl} vcom -93 -work work {C:/Users/Alfonso/Desktop/PFC/altera/fixed_pkg_c.vhdl} - Altera_Forum
Honored Contributor
Thank you for the involvement.
But if i modify the.do quartus will erase it (as he did), how do i compile in quartus (Not in modelsim)? Vcom is a modelsim command, and the.do will be erased. Sorry, i'm totally newbie to VHDL. I don't know to compile outside of modelsim and actual errors are in quartus as you say. PS: I've cheked the work label inside of properties of pack.vhdl and ProducteN.vhd files within the quartus directory. And the error keeps the same.Sorry, sorry.
- Altera_Forum
Honored Contributor
--- Quote Start --- But if i modify the.do quartus will erase it (as he did), how do i compile in quartus (Not in modelsim)? --- Quote End --- I'm not suggesting editing the .do file. We've established that that is a little too much for your skill level. By editing the files so that they all use code found in the work library, compiling the code should now be simple. --- Quote Start --- Sorry, i'm totally newbie to VHDL. I don't know to compile outside of modelsim and actual errors are in quartus as you say. --- Quote End --- In the Quartus GUI, on the left hand side, there is the "Project Navigator" window. It has 3 tabs at the bottom; Hierarchy, Files, and Design Units. Click on the Files tab. The list of files you see here is what quartus compiles. Select a file, right-click and select Properties. Note here that there is a field called "Library". This is where you would have written rtl_work to get Quartus to use the rtl_work library, or ieee_proposed to use the ieee_proposed library. Do you have any files with the Library field set? They should all be cleared if you have edit the files to use 'work' for all the libraries. You can use the Quartus menu option Project->Generate Tcl File For Project to (you guess it!) general a Tcl file for your Quartus project. In that file, you'll see lots of set_global_assignment -name VHDL_FILE <filename> If you have the "Library" field set, then it will change to set_global_assignment -name VHDL_FILE <filename> -library <library name> So check that none have -library next to them. If they do, go select that file in the "Files" window and change its library property. --- Quote Start --- Sorry, sorry. --- Quote End --- Don't sweat it, I know its tough, that is why I am still helping you :) Cheers, Dave - Altera_Forum
Honored Contributor
--- Quote Start --- Note here that there is a field called "Library". This is where you would have written rtl_work to get Quartus to use the rtl_work library, or ieee_proposed to use the ieee_proposed library. --- Quote End --- Thank you Dave. Sorry, i'm totally overwhelmed by the situation, ho do I know wheter to use the rtl_work or ieee_proposed library since allmost all .vhdl it uses a fixed point number i am using right know use work.fixed_package.all; - Altera_Forum
Honored Contributor
--- Quote Start --- Sorry, i'm totally overwhelmed by the situation, ho do I know wheter to use the rtl_work or ieee_proposed library since allmost all .vhdl it uses a fixed point number i am using right know use work.fixed_package.all; --- Quote End --- Assuming you have edited the VHDL files and *removed* any instances of ieee_proposed and rtl_work, then both Quartus and Modelsim will be looking for compiled VHDL in the work folder. Follow the procedure I outlined above to ensure that none of the files in your Quartus project are being compiled into a library. At that point Quartus should compile the source, and if you launch Modelsim from Quartus, Quartus should generate a Tcl script (.do file) that tells Modelsim to also compile source into the work library. Cheers, Dave - Altera_Forum
Honored Contributor
--- Quote Start --- Do you have any files with the Library field set? They should all be cleared if you have edit the files to use 'work' for all the libraries. You can use the Quartus menu option Project->Generate Tcl File For Project to (you guess it!) general a Tcl file for your Quartus project. In that file, you'll see lots of set_global_assignment -name VHDL_FILE <filename> If you have the "Library" field set, then it will change to set_global_assignment -name VHDL_FILE <filename> -library <library name> So check that none have -library next to them. If they do, go select that file in the "Files" window and change its library property. Don't sweat it, I know its tough, that is why I am still helping you :) Cheers, Dave --- Quote End --- Thank you Dave, Done, even the fixed_float_types_c and fixed_pkg_c now don't have a library asigned, and checked it with PFC.tcl file. --- Quote Start --- Don't sweat it, I know its tough, that is why I am still helping you :) --- Quote End --- Three persons 1 in this forum have abandoned me yet, and i'm playing with passing subject or failing it, its to be nervous. Thank you for your involvement. - Altera_Forum
Honored Contributor
Thank you Dave,
Even with no libraries anywhere:error (10481): vhdl use clause error at producten.vhd(3): design library "work" does not contain primary unit "fixed_package"
error (10800): vhdl error at producten.vhd(3): selected name in use clause is not an expanded name
error: quartus ii 32-bit analysis & synthesis was unsuccessful. 2 errors, 1 warning
error: peak virtual memory: 316 megabytes
error: processing ended: thu sep 13 22:32:25 2012
error: elapsed time: 00:00:02
error: total cpu time (on all processors): 00:00:02
error (293001): quartus ii full compilation was unsuccessful. 4 errors, 1 warning
my tcl: (renamed to txt)
- Altera_Forum
Honored Contributor
As I commented earlier, packages have to be compiled before they are used. Your Tcl script has the package *after* the file ProducteN.vhd. Edit the script and move the packages to before ProducteN.vhd.
Cheers, Dave - Altera_Forum
Honored Contributor
Thank you dave,
Sorry, i moved the Pack.vhd before ProducteN.vhd (in the .tcl and saved) and still error. error (10481): vhdl use clause error at producten.vhd(3): design library "work" does not contain primary unit "fixed_package" Thank you for your involvement PS: points towards the lone library in this (producten.vhd) file use work.fixed_package.all;