Forum Discussion

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

How to add path to Modelsim to correct "the design unit was not found"?

Dear all, Modelsim ASE says:

Error: (vsim-3033) ./submodules/q_sys_altmemddr_0_phy_alt_mem_phy.v(2925): Instantiation of 'cycloneiii_io_obuf' failed. The design unit was not found.

How to add the path so that Modelsim can find the cycloneiii_io_obuf

Thank you very much!

7 Replies

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

    --- Quote Start ---

    Error: (vsim-3033) ./submodules/q_sys_altmemddr_0_phy_alt_mem_phy.v(2925): Instantiation of 'cycloneiii_io_obuf' failed. The design unit was not found.

    How to add the path so that Modelsim can find the cycloneiii_io_obuf

    --- Quote End ---

    That sounds like a Cyclone III low-level component. Usually those types of things are in quartus/eda/sim_lib/cycloneiii_atoms.v, which is pre-compiled for Modelsim-ASE. However, I just searched the sim_lib/ folder and could not find that component (11.1sp1 installation).

    If you can find where that component is located, then you can add the folder with the vlog +incdir+ option (see vlog -help).

    Cheers,

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

    Thank you, I can see the component is listed in the Library window of Modelsim (as shown in attached pic).

    But Modelsim seems can not find it to compile.

    --- Quote Start ---

    That sounds like a Cyclone III low-level component. Usually those types of things are in quartus/eda/sim_lib/cycloneiii_atoms.v, which is pre-compiled for Modelsim-ASE. However, I just searched the sim_lib/ folder and could not find that component (11.1sp1 installation).

    If you can find where that component is located, then you can add the folder with the vlog +incdir+ option (see vlog -help).

    Cheers,

    Dave

    --- Quote End ---

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

    --- Quote Start ---

    I found it in my (11.1Sp2.dp8) cycloneiii_atoms.v model

    --- Quote End ---

    I just rechecked, and I do find it in the 11.1sp1 files too. I must have mistyped something :)

    binpersonal: on the Modelsim command line, type 'vmap cycloneiii_ver' and see if the library is mapped correctly. If not, you've messed up your Modelsim library mappings. In that case, I'll try to help you fix it.

    Cheers,

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

    Dave,

    I have faced this problem, but i have no idea to fix this problem. Would you like to help me to fix. thanks
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    vmap cycloneiii_ver the result is "modelsim_ae\win32aloem/../altera/verilog/cycloneiii" what's the problem?

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

    Hi jame.song,

    Can you post a small code example that shows the error?

    Or post the error message output by Modelsim.

    Do you know that your setup is correct?

    For example, run one of the simple Modelsim examples I've posted, eg.,

    http://www.alteraforum.com/forum/showthread.php?t=32386

    or this one

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

    (the first is VHDL, the second is Verilog/SystemVerilog, so may be more applicable to testing your setup)

    Cheers,

    Dave