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
Forget what we said, i've read on the datasheet i miss the library:
use work.FIXED_PKG.ALL with it, the quartus works but we are stuck at modelsim: # ** Error: C:/Users/Alfonso/Desktop/PFC/fixed_pkg_c.vhdl(22): Library ieee_proposed not found.# ** Error: C:/Users/Alfonso/Desktop/PFC/fixed_pkg_c.vhdl(23): (vcom-1136) Unknown identifier "IEEE_PROPOSED".# ** Error: C:/Users/Alfonso/Desktop/PFC/fixed_pkg_c.vhdl(28): VHDL Compiler exiting Repeat it to me over WHICH LIBRARY MUST I COMPILE, over work or over rtl_work So: vsim> vlib rtl_work vsim> vmap rtl_work [pwd]/rtl_work vsim> vcom -work rtl_work <your VHDL files> or vsim> vlib work vsim> vmap work [pwd]/work vsim> vcom -work work <your VHDL files> - Altera_Forum
Honored Contributor
--- Quote Start --- False nothing happens: --- Quote End --- Sorry, when I edited my readme.txt, I dropped the line that ran the script. I've edited the previous posting with the code to show that after changing directory you must run (source) the script. Cheers, Dave - Altera_Forum
Honored Contributor
--- Quote Start --- use work.FIXED_PKG.ALL with it, the quartus works --- Quote End --- Ok. But this line means that you have changed back to the case where all libraries should be compiled into the work library. --- Quote Start --- but we are stuck at modelsim: # ** Error: C:/Users/Alfonso/Desktop/PFC/fixed_pkg_c.vhdl(22): Library ieee_proposed not found.# ** Error: C:/Users/Alfonso/Desktop/PFC/fixed_pkg_c.vhdl(23): (vcom-1136) Unknown identifier "IEEE_PROPOSED".# ** Error: C:/Users/Alfonso/Desktop/PFC/fixed_pkg_c.vhdl(28): VHDL Compiler exiting --- Quote End --- Read the error message - its telling you that its looking for library ieee_proposed. Doesn't that make you think: oh, i thought i edited that file and changed those lines to use work.fixed_pkg.all; Then you would edit the file, re-run the example and not have an issue. Try that, and let me know how it goes. Cheers, Dave - Altera_Forum
Honored Contributor
--- Quote Start --- oh, i thought i edited that file and changed those lines to use work.fixed_pkg.all; --- Quote End --- Almost, we used: --use work.fixed_package.all; i've saved it just in case -- - Altera_Forum
Honored Contributor
--- Quote Start --- Hello, Seems all of this work, But:when i copy fixed_pkg_c.vhdl & fixed_float_types_c.vhdl now everything goes ok! vcom -work rtl_work fixed_float_types_c.vhdl# Model Technology ModelSim ALTERA vcom 10.0c Compiler 2011.09 Sep 21 2011# -- Loading package STANDARD# -- Compiling package fixed_float_types vcom -work rtl_work fixed_pkg_c.vhdl# Model Technology ModelSim ALTERA vcom 10.0c Compiler 2011.09 Sep 21 2011# -- Loading package STANDARD# -- Loading package TEXTIO# -- Loading package std_logic_1164# -- Loading package NUMERIC_STD# -- Loading package fixed_float_types# -- Compiling package fixed_pkg# -- Loading package MATH_REAL# -- Compiling package body fixed_pkg# -- Loading package fixed_pkg# ** Warning: [3] fixed_pkg_c.vhdl(1470): (vcom-1246) Range 0 downto 1 is null.# ** Warning: [3] fixed_pkg_c.vhdl(1471): (vcom-1246) Range 0 downto 1 is null.# ** Warning: [3] fixed_pkg_c.vhdl(1472): (vcom-1246) Range 0 downto 1 is null.# ** Warning: [3] fixed_pkg_c.vhdl(6888): (vcom-1246) Range 2 to 1 is null. but if i close the modelsim and launch it (even having compiled again) reappears the error: # ** 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 how do i do to save the results?? To launch ok modelsim i've got to close the console and reestart the modelsim, wich takes me to # ** error: (vsim-3170) could not find 'c:\users\alfonso\desktop\pfc\simulation\modelsim\ rtl_work.tb_pfc_main'. Thank you!! --- Quote End --- Hello, i'm here again how do I save the results?
- Altera_Forum
Honored Contributor
--- Quote Start --- Hello, i'm here again how do I save the results? --- Quote End --- This question does not make any sense. Save what results? From the error message you posted, the testbench rtl_work.tb_pfc_main cannot be found. So have you added the testbench to the project? Look at the .do script and see if TB_PFC_main.vhd was ever compiled. If it was not, then you need to figure out how to include it. I never use Quartus to launch Modelsim, so I'm not sure what you need to do for that step. You will need to read the Quartus documentation. Cheers, Dave - Altera_Forum
Honored Contributor
here is my pfc_run_msim_rtl_vhdl.do
transcript on if {[file exists rtl_work]} { vdel -lib rtl_work -all } vlib rtl_work vmap work rtl_work vcom -93 -work work {C:/Users/Alfonso/Desktop/PFC/fixed_float_types_c.vhdl} vcom -93 -work work {C:/Users/Alfonso/Desktop/PFC/PLL.vhd} vcom -93 -work work {C:/Users/Alfonso/Desktop/PFC/IHW_UART.vhd} vcom -93 -work work {C:/Users/Alfonso/Desktop/PFC/fixed_pkg_c.vhdl} vcom -93 -work work {C:/Users/Alfonso/Desktop/PFC/Pack.vhd} vcom -93 -work work {C:/Users/Alfonso/Desktop/PFC/ProducteSO.vhd} vcom -93 -work work {C:/Users/Alfonso/Desktop/PFC/ProducteSE.vhd} vcom -93 -work work {C:/Users/Alfonso/Desktop/PFC/ProducteO.vhd} vcom -93 -work work {C:/Users/Alfonso/Desktop/PFC/ProducteNO.vhd} vcom -93 -work work {C:/Users/Alfonso/Desktop/PFC/ProducteNE.vhd} vcom -93 -work work {C:/Users/Alfonso/Desktop/PFC/ProducteE.vhd} vcom -93 -work work {C:/Users/Alfonso/Desktop/PFC/Producte.vhd} vcom -93 -work work {C:/Users/Alfonso/Desktop/PFC/ProdAnteriorSO.vhd} vcom -93 -work work {C:/Users/Alfonso/Desktop/PFC/ProdAnteriorSE.vhd} vcom -93 -work work {C:/Users/Alfonso/Desktop/PFC/ProdAnteriorS.vhd} vcom -93 -work work {C:/Users/Alfonso/Desktop/PFC/ProdAnteriorO.vhd} vcom -93 -work work {C:/Users/Alfonso/Desktop/PFC/ProdAnteriorNO.vhd} vcom -93 -work work {C:/Users/Alfonso/Desktop/PFC/ProdAnteriorNE.vhd} vcom -93 -work work {C:/Users/Alfonso/Desktop/PFC/ProdAnteriorN.vhd} vcom -93 -work work {C:/Users/Alfonso/Desktop/PFC/ProdAnteriorE.vhd} vcom -93 -work work {C:/Users/Alfonso/Desktop/PFC/ProdAnterior.vhd} vcom -93 -work work {C:/Users/Alfonso/Desktop/PFC/ProducteN.vhd} vcom -93 -work work {C:/Users/Alfonso/Desktop/PFC/SumaStep3.vhd} vcom -93 -work work {C:/Users/Alfonso/Desktop/PFC/SumaStep2.vhd} vcom -93 -work work {C:/Users/Alfonso/Desktop/PFC/SumaStep1.vhd} vcom -93 -work work {C:/Users/Alfonso/Desktop/PFC/SumaStep.vhd} vcom -93 -work work {C:/Users/Alfonso/Desktop/PFC/PFC_main.vhd} vcom -93 -work work {C:/Users/Alfonso/Desktop/PFC/CNN.vhd} vcom -93 -work work {C:/Users/Alfonso/Desktop/PFC/ProducteS.vhd} vcom -93 -work work {C:/Users/Alfonso/Desktop/PFC/TB_PFC_main.vhd} vcom -93 -work work {C:/Users/Alfonso/Desktop/PFC/TB_PFC_main.vhd} vsim -t 1ps -L altera -L lpm -L sgate -L altera_mf -L altera_lnsim -L cycloneii -L rtl_work -L work -voptargs="+acc" TB_PFC_main add wave * view structure view signals run -all - Altera_Forum
Honored Contributor
Well, how do you launch modelsim, i'll do on your way, please help me.
- Altera_Forum
Honored Contributor
--- Quote Start --- Well, how do you launch modelsim, i'll do on your way, please help me. --- Quote End --- You can launch Modelsim from the Start Menu. It will be in the folder with your Quartus install. Once its started do the following; cd C:/Users/Alfonso/Desktop/PFC source PFC_run_msim_rtl_vhdl.do and that will run (source) your script. If that results in an error, post the messages from the Modelsim console. Cheers, Dave - Altera_Forum
Honored Contributor
Hello,
same error: # vsim -l altera -l lpm -l sgate -l altera_mf -l altera_lnsim -l cycloneii -l rtl_work -l work -voptargs=\"+acc\" -t 1ps tb_pfc_main # ** error: (vsim-3170) could not find 'c:\users\alfonso\desktop\pfc\simulation\modelsim\rtl_work.tb_pfc_main'. but slighty diferent, my .do is not on the VHDL's root, its here: C:\Users\Alfonso\Desktop\PFC\simulation\modelsim but the procedure was the same: cd c:/users/alfonso/desktop/pfc/simulation/modelsimsource pfc_run_msim_rtl_vhdl.do Alfonso,