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
--- Quote Start --- Please, can anyone help me? --- Quote End --- The VHDL code is trying to use a component compiled into the rtl_work library. You can either compile your code into rtl_work via; vsim> vlib rtl_work vsim> vmap rtl_work [pwd]/rtl_work vsim> vcom -work rtl_work <your VHDL files> or you can simply map the rtl_work library to the same location as the work directory, eg., assuming you have created your work directory in the same folder you are working in via vsim> vlib work vsim> vmap work [pwd]/work then you can tell Modelsim to look in the work directory for the rtl_work components too by mapping it via vsim> vmap rtl_work [pwd]/work (You don't need the [pwd] statement if you don't want to use absolute paths in your .ini or .mpf file). Cheers, Dave - Altera_Forum
Honored Contributor
Please, can anyone help me?
- Altera_Forum
Honored Contributor
--- Quote Start --- The VHDL code is trying to use a component compiled into the rtl_work library. You can either compile your code into rtl_work via; vsim> vlib rtl_work vsim> vmap rtl_work [pwd]/rtl_work vsim> vcom -work rtl_work <your VHDL files> --- Quote End --- Hello, by typing this, how do you fill <your vhdl files>, by typing my vhdl files root (C:\Users\Alfonso\Desktop\PFC\altera) returns this: (I typed vsim> vcom -work rtl_work C:\Users\Alfonso\Desktop\PFC\altera) # Model Technology ModelSim ALTERA vcom 10.0c Compiler 2011.09 Sep 21 2011# ** Error: (vcom-7) Failed to open design unit file "C:UsersAlfonsoDesktopPFCltera" in read mode.# Invalid argument. (errno = EINVAL)# E:/altera/11.1sp2/modelsim_ase/win32aloem/vcom failed. --- Quote Start --- or you can simply map the rtl_work library to the same location as the work directory, eg., assuming you have created your work directory in the same folder you are working in via vsim> vlib work vsim> vmap work [pwd]/work then you can tell Modelsim to look in the work directory for the rtl_work components too by mapping it via vsim> vmap rtl_work [pwd]/work (You don't need the [pwd] statement if you don't want to use absolute paths in your .ini or .mpf file). Cheers, Dave --- Quote End --- It did not work, assuming [pwd] is written as [pwd] litterally (if it is a root instead, tell me) after typing those three lines literally as you did it continues returning me: # ** 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 Please help me i cannot test my code till this is solved. - Altera_Forum
Honored Contributor
--- Quote Start --- by typing this, how do you fill <your vhdl files>, by typing my vhdl files root (C:\Users\Alfonso\Desktop\PFC\altera) returns this: (I typed vsim> vcom -work rtl_work C:\Users\Alfonso\Desktop\PFC\altera) --- Quote End --- You've passed it a directory, not a VHDL file. You need to pass the vcom command the files that end in .vhd. You need to compile all of your files into the work library. If you are using Modelsim-ASE, then you do not need to compile Altera libraries. Cheers, Dave - Altera_Forum
Honored Contributor
Thank you for the effort.
I typed: ... vcom -work rtl_work fixed_float_types_c.vhdl and it returned: # Model Technology ModelSim ALTERA vcom 10.0c Compiler 2011.09 Sep 21 2011# ** Error: (vcom-7) Failed to open design unit file "fixed_float_types_c.vhdl" in read mode.# No such file or directory. (errno = ENOENT)# E:/altera/11.1sp2/modelsim_ase/win32aloem/vcom failed. I moved from desktop to D: and tried again but failed with the same code, i try giving them write licence to all project files and folders, also with that failed. Alfonso. - Altera_Forum
Honored Contributor
Hi Alfonso,
--- Quote Start --- I typed: ... vcom -work rtl_work fixed_float_types_c.vhdl and it returned: # Model Technology ModelSim ALTERA vcom 10.0c Compiler 2011.09 Sep 21 2011# ** Error: (vcom-7) Failed to open design unit file "fixed_float_types_c.vhdl" in read mode.# No such file or directory. (errno = ENOENT)# E:/altera/11.1sp2/modelsim_ase/win32aloem/vcom failed. I moved from desktop to D: and tried again but failed with the same code, i try giving them write licence to all project files and folders, also with that failed. --- Quote End --- Try reading the output from Modelsim - it says that it cannot find the file. So where is fixed_float_types_c.vhdl located? If its not in the same directory as Modelsim is currently located, then you have to supply the full path to the file. For example, something like vsim> cd c:/temp vsim> vlib rtl_work vsim> vmap rtl_work rtl_work vsim> vcom -work rtl_work c:/vhdl/ieee_fixed_pkg/fixed_float_types_c.vhdl Cheers, Dave - Altera_Forum
Honored Contributor
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!!
- Altera_Forum
Honored Contributor
--- Quote Start ---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 --- Quote End --- But here you are doing something completely different - you are running a Tcl scope called PFC_run_msim_rtl_vhdl.do If you want to use the fixed-point package and use that Tcl script, you need to read the script to determine how it configures the library mappings. Most likely you can just add the lines to compile the fixed-package into rtl_work into that Tcl script. Cheers, Dave
- Altera_Forum
Honored Contributor
What's the TCl script??? , if i modify the PFC_run_msim_rtl_vhdl.do (Tcl scope) by adding:
vcom -work rtl_work fixed_float_types_c.vhdl vcom -work rtl_work fixed_pkg_c.vhdl It does overwrite and here we are again. What have i to modify? (Tcl script) What's this? - Altera_Forum
Honored Contributor
--- Quote Start --- What's the TCl script??? --- Quote End --- Its your design, you tell me! --- Quote Start --- if i modify the PFC_run_msim_rtl_vhdl.do (Tcl scope) by adding: vcom -work rtl_work fixed_float_types_c.vhdl vcom -work rtl_work fixed_pkg_c.vhdl It does overwrite and here we are again. What have i to modify? (Tcl script) What's this? --- Quote End --- If you do not know what a Tcl script is, then you need to go through some of the Modelsim documentation. Tcl = Tool Command Language, and its the language used to script (automate) the Quartus and Modelsim tools. Cheers, Dave