- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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?.Link Copied
80 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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;
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
C'mon man, stop jumping around tools :)
You earlier posted the script contents that contained:
vcom -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}
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, Dave
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
--- 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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
--- 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;
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
--- 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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
--- 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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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;- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
--- Quote Start --- 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" --- Quote End --- Saving the Tcl is not adequate. You must also run the Tcl from the Quartus console. You do that by sourcing the file. tcl> source PFC.tcl If you do not see a Tcl console in the GUI, make it appear using View->Utility Windows->Tcl Console. Cheers, Dave
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Tahank you Dave,
brilliant explanation, but the tcl console hates me also: Quartus II Tcl Console source PFC.tcl Error:couldn't read file "PFC.tcl": no such file or directory Error: while executing Error:"_source PFC.tcl" Error: ("uplevel" body line 1) Error: invoked from within Error:"uplevel 1 $cmd " Error: (procedure "source" line 5) Error: invoked from within Error:"source PFC.tcl" Curiously, project->generate file for project says: File C:/users/alfonso/Desktop/PFC/PFC.tcl already exists. do you want to overwrite it?- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
--- Quote Start --- but the tcl console hates me also: --- Quote End --- No, it doesn't, you're just failing to read the messages: --- Quote Start --- Quartus II Tcl Console source PFC.tcl Error:couldn't read file "PFC.tcl": no such file or directory --- Quote End --- Ok, so its telling you it cannot find it. Provide the full path to the file then! tcl> source C:/users/alfonso/Desktop/PFC/PFC.tcl or tcl> cd C:/users/alfonso/Desktop/PFC tcl> source PFC.tcl Cheers, Dave
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Nothing has happened (source C:/users/alfonso/Desktop/PFC/PFC.tcl worked (no error))
PS: i've edited .tcl and after saving, i've runned the console
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
One thing, don't you work in groups op people, nobody in this forum can help you???
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
--- Quote Start --- Nothing has happened (source C:/users/alfonso/Desktop/PFC/PFC.tcl worked (no error))
PS: i've edited .tcl and after saving, i've runned the console --- Quote End --- Its your Tcl script. Has it been written so that it runs synthesis? If not press the play button in the GUI. I know you're new at this, but that's not an excuse not to think for yourself. read the tcl script and see what it does. Cheers, Dave
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
--- Quote Start --- One thing, don't you work in groups op people, nobody in this forum can help you??? --- Quote End --- I don't understand what you are trying to say here.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Why only you answer my questions? Maybe someone here nows the direct key (Fastest path) eveny if my code is really a mess. A forum used to be many to one. or many to many.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
--- Quote Start --- Why only you answer my questions? Maybe someone here nows the direct key (Fastest path) eveny if my code is really a mess. A forum used to be many to one. or many to many. --- Quote End --- Perhaps I just have the most patience today :)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
--- Quote Start --- I know you're new at this, but that's not an excuse not to think for yourself. read the tcl script and see what it does. Cheers, Dave --- Quote End --- Again, i don't know what a Tcl script is "You must also run the Tcl from the Quartus console. You do that by sourcing the file" This (if it is the Tcl script) returns nothing after a enter, i cannot demonstrate there is a enter here: http://i49.tinypic.com/2eba1jp.jpg Yes i'm a useless engineer, but i'm trying to end my degree.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
--- Quote Start --- Again, i don't know what a Tcl script is --- Quote End --- Then you are not "listening" to what I am trying to explain to you. A Tcl script is just a series of commands. You are using a Tcl script called PFC.tcl - where did it come from? --- Quote Start --- "You must also run the Tcl from the Quartus console. You do that by sourcing the file" This (if it is the Tcl script) returns nothing --- Quote End --- The Tcl script will do whatever you have written in it. If you have not written it to print messages, then of course it will not display anything in the console. --- Quote Start --- Yes i'm a useless engineer, but i'm trying to end my degree. --- Quote End --- Don't take it that way. You are an "inexperienced" engineer. However, if you expect anyone to help you now and in the future, when you ask for advice, you need to listen to it, and then formulate follow-on questions indicating what you have done, and what you have failed to understand. Cheers, Dave

Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page