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
There is nothing you need to see, almost all files use:
in sfixed (1 downto -16); so in the biggining they have: use work.fixed_package.all; Nothing more to see. After the defense i can send you my code, if you want. Well the original code had: library ieee_proposed;use ieee_proposed.fixed_pkg.all; but we changed it.
- Altera_Forum
Honored Contributor
--- Quote Start --- I should not post my code is my final 5th year engineering project by obvius reasons i can't. Yes it is an easy project but i did not have more time for something bigger. --- Quote End --- Ok, post an example design that generates the same warning message. For example, multiple two fixed-point numbers together and see if that gives you the error. Alternatively, you can email me the files (my forum name is my email), and I will delete them once I we have synthesis and simulation working. This is not cheating, as I have no plans to help you fix your code. If there are errors in the code, I will provide hints on what to do. Cheers, Dave - Altera_Forum
Honored Contributor
--- Quote Start --- There is nothing you need to see, almost all files use: in sfixed (1 downto -16); so in the biggining they have: use work.fixed_package.all; Nothing more to see. After the defense i can send you my code, if you want. Well the original code had: library ieee_proposed;use ieee_proposed.fixed_pkg.all; but we changed it. --- Quote End --- Ok, I'll write you an example. I'll upload a zip file in a little while. Cheers, Dave
- Altera_Forum
Honored Contributor
Don't bother, I sent my project to your mail (only the skeleton, there is no code even knowing the skeleton shows much...).
Consider i'm from spain (Europe), so these days I will go very late to sleep. Cause i see yo did not connect here until 5 pm here i cannot wait till 5 pm to progress tomorrow. - Altera_Forum
Honored Contributor
As you can see it's an easy project don't remember this to me... if anyone has 2 months for a project...
- Altera_Forum
Honored Contributor
As promised, here is an example of how to setup Quartus to synthesize against the fixed-point package compiled into the ieee_proposed library, i.e., the original library files are not modified.
Cheers, DaveVHDL fixed-point package synthesis example ------------------------------------------ 9/13/2012 D. W. Hawkins ([email protected]) This design shows a minimal example that uses the IEEE proposed fixed-point packages. During synthesis, there will be warnings in the Quartus message window about the design not meeting timing. This is to be expected, as there is no .SDC file included in this example. This design is not meant to be downloaded into a device, its merely to show how to setup Quartus to use the fixed-point package library. To synthesise the design: 1) Start Quartus 2) Make the Tcl console visible using View->Utility Windows->Tcl console 3) Change directory to the location of this example code, eg., if the zip file was unzipped into c:\temp\vhdl_fixed_pkg_example, then at the Tcl console type cd {C:\temp\vhdl_fixed_pkg_example} The paranthesis {} allow the Windows path separator '\' to be used in the name, otherwise you need to use '/', i.e., cd C:/temp/vhdl_fixed_pkg_example 4) Then source the file source scripts/synth.tcl The Tcl script will output its progress: Synthesizing the 'fixed_pkg_example' design ------------------------------------------- - Quartus Version 11.1 Build 216 11/23/2011 Service Pack 1 SJ Full Version - Creating the Quartus work directory * C:/temp/vhdl_fixed_pkg_example/qwork - Create the project 'fixed_pkg_example' * create a new fixed_pkg_example project - Creating the VHDL files list - Applying constraints - Processing the design - Processing completed The synth.tcl script has configured a Quartus project. After this point, you can edit files (eg. change parameters in fixed_pkg_example) and press play on the GUI to re-synthesize the design. 5) In the Quartus GUI, on the left-side is the "Project Navigator" window. The "Hierarchy" tab will be selected. a) The "Hierarchy" window has a slider bar along the bottom. Slide it and you will see that this simple design requires a single DSP Block in the Cyclone IV E device. b) Click on the "Files" tab. There will be four files listed: fixed_float_types_c.vhd fixed_pkg_c.vhd sfixed_multiply.vhd fixed_pkg_example.vhd These files are listed in the order they are compiled. The packages need to be compiled before any files that use them. Select the fixed_float_types_c.vhd file, right-click, and select "Properties". Note that the "Library" field is ieee_proposed. This is the VHDL library that the fixed_pkg_c.vhd code expects to find type definitions, i.e., at the top of the file fixed_pkg_c.vhd is the lines library IEEE_PROPOSED; use IEEE_PROPOSED.fixed_float_types.all; - Altera_Forum
Honored Contributor
--- Quote Start --- I sent my project to your mail --- Quote End --- Please do the following; 1) Start Quartus and open your project 2) Click on the "Project Navigator" "Files" tab. Note that the packages are not at the top. You need to move them first in the compilation order. Even if Quartus can handle the packages out of order, if you use Quartus to automatically generate a simulation script for Modelsim, you will want the Modelsim script to have the package files first. 3) Click on the menu option "Project->Add/Remove Files from Project" You'll see the files in the order seen in the attached JPG. Highlight the package files by clicking on them, and the use the "Up" button to move them up in the compilation order. Make sure all of the packages your design uses are listed in the GUI. If there are files missing, you will get synthesis errors. If you want to use the fixed-point packages in their original form (without edits) take a look at the screen shot I just added to the example design above. Note how there is a library name next to those VHDL files. Cheers, Dave - Altera_Forum
Honored Contributor
Hello,
No changes, if i chose to call all library ieee_proposed;use ieee_proposed.fixed_pkg.all; for: use work.fixed_package.all; this modelsim error: # ** error: fixed_pkg_c.vhdl(22): library ieee_proposed not found.# ** error: fixed_pkg_c.vhdl(23): (vcom-1136) unknown identifier "ieee_proposed".# ** error: fixed_pkg_c.vhdl(28): vhdl compiler exiting# e:/altera/11.1sp2/modelsim_ase/win32aloem/vcom failed. or this quartus error: 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 you can choose the fun. Alfonso. PS: I think you talked to me to use some libs for some files. Except the main, and the uart, all other need sfixes. You suggest me to use use work.fixed_package.all; only for main and uart, will it work?
- Altera_Forum
Honored Contributor
Hi Alfonso,
You need to focus on one problem at a time. Ignore Modelsim for now, and get Quartus working first. 1) Start with the example design I gave you. 2) Run the script. This will get you a Quartus project where the libraries are setup correctly. 3) Add your files to the project. Edit them to have: library ieee_proposed; use ieee_proposed.fixed_pkg.all; since the project now has the libraries configured correctly. 4) In the "Project Navigator" "Files" window, right-click on your top-level file and click on "Set as top-level entity". The project name will still be fixed_pkg_example, however, it will now compile your code for the top-level project. At time point you should be able to compile your code without any errors related to libraries. If you see errors, then read the messages, and look in the files that are generating the errors. Make sure you have the library statements in step (3). Cheers, Dave - Altera_Forum
Honored Contributor
--- Quote Start --- Hi Alfonso, You need to focus on one problem at a time. Ignore Modelsim for now, and get Quartus working first. 1) Start with the example design I gave you. 2) Run the script. This will get you a Quartus project where the libraries are setup correctly. --- Quote End --- http://i46.tinypic.com/21e57gl.jpg False nothing happens: --- Quote Start --- 3) Add your files to the project. Edit them to have: library ieee_proposed; use ieee_proposed.fixed_pkg.all; since the project now has the libraries configured correctly. 4) In the "Project Navigator" "Files" window, right-click on your top-level file and click on "Set as top-level entity". The project name will still be fixed_pkg_example, however, it will now compile your code for the top-level project. At time point you should be able to compile your code without any errors related to libraries. If you see errors, then read the messages, and look in the files that are generating the errors. Make sure you have the library statements in step (3). Cheers, Dave --- Quote End ---