Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
13 years ago

Could 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's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Try removing -L rtl_work from the command line argument.

    Your script creates a folder named rtl_work, and then maps it to the VHDL library work. There is no library named rtl_work, so it should not be listed with the -L option.

    Alternatively,

    vsim -t ps TB_PFC_main

    should also work. Modelsim is pretty good about locating VHDL libraries.

    Cheers,

    Dave
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Sorrry sorry i know the cause of the problem. the top level entity testbench name was incorrect.

    sorry, don't kill me even i deserve, cause i'm the stupiest in the world.
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    --- Quote Start ---

    Sorrry sorry i know the cause of the problem. the top level entity testbench name was incorrect.

    sorry, don't kill me even i deserve, cause i'm the stupiest in the world.

    --- Quote End ---

    The lesson you should learn is to read the messages. The tools are generally pretty good at telling you what they cannot understand.

    --- Quote Start ---

    It wwwwwwwwooooooooooooooooooorrrrrkkkkkkkkkssssssssss!!!!!!!!!!!! Endorsing you dave!!!!!!!!!! One gwylllllion thanks !!!!!!!!!!!!!!

    --- Quote End ---

    You're welcome.

    Cheers,

    Dave
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    --- Quote Start ---

    The lesson you should learn is to read the messages. The tools are generally pretty good at telling you what they cannot understand.

    You're welcome.

    Cheers,

    Dave

    --- Quote End ---

    The most important is not having fear to command tools like modelsim, is such a fear, that disables you to think, even tough quartus is for two years old children compared to modelsim, it is terribly difficult.
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    --- Quote Start ---

    The most important is not having fear to command tools like modelsim, is such a fear, that disables you to think, even tough quartus is for two years old children compared to modelsim, it is terribly difficult.

    --- Quote End ---

    Using the tools becomes much simpler if you learn how to use the Tcl scripting language. The nice thing about scripts is you can write comments in them to remind yourself why you did things. Using the GUI is not as useful, as if you do not use the tools for a while, you forget how to use it. Look at the modelsim_example.zip file I referred you to earlier, and look at this tutorial:

    http://www.alterawiki.com/wiki/using_the_usb-blaster_as_an_sopc/qsys_avalon-mm_master_tutorial

    It has both Quartus and Modelsim Tcl scripts.

    Cheers,

    Dave
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Thank you Thank you thank you Dave, you are the only one has helped me to the end, the only fact that you are not left alone, helps going on, it's unbelievable the grateful i am, if i am fast i can this weekend teat all my testbench & project and monday/tuesday/friday show it to my master teacher to make all conclusions and finish the project.

    Thank you for your involvement.
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    --- Quote Start ---

    Using the tools becomes much simpler if you learn how to use the Tcl scripting language. The nice thing about scripts is you can write comments in them to remind yourself why you did things. Using the GUI is not as useful, as if you do not use the tools for a while, you forget how to use it. Look at the modelsim_example.zip file I referred you to earlier, and look at this tutorial:

    http://www.alterawiki.com/wiki/using_the_usb-blaster_as_an_sopc/qsys_avalon-mm_master_tutorial

    It has both Quartus and Modelsim Tcl scripts.

    Cheers,

    Dave

    --- Quote End ---

    Downloaded, i'll take a look as i can and surelly if i get a job on VHDL, ayway, the next year i'll degree in electronics since in my university only two subjects change from telecommunications to electronics, which i did as optative subjects on of these ones was the one that teached me VHDL. So i'll keep visiting this forum surelly, and here i know there are kind persons to ask to in case of complicated doubts.

    Thank you!!!! See you.
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    --- Quote Start ---

    if i am fast i can this weekend test all my testbench & project and monday/tuesday/friday show it to my master teacher to make all conclusions and finish the project.

    --- Quote End ---

    When you synthesize and simulate the code, pay attention to the warning messages from the tools. For example, in the files you sent me yesterday, there were warnings about uninitialized variables and signals missing from process statements. Read each warning, and edit your code to clear the error. Clearing as many trivial syntax errors as possible will help you see the real problems.

    Cheers,

    Dave
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    If you referd to "change the library those two packages are compiled into, eg., right click on the files, and set the library to rtl_work" -> work