Forum Discussion

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

Test bench

Hello sir

can you please tell me how to create and run test benches in QUARTUS II

12 Replies

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

    --- Quote Start ---

    Which version of Modelsim are you using?

    Modelsim Altera Start Edition should know about the lpm library already, type

    vmap

    to see the library mappings.

    For example Modelsim 6.6c has the mapping:

    # "lpm" maps to directory C:\software\altera\11.0sp1\modelsim_ase\win32aloem/../altera/vhdl/220model.

    Perhaps you have managed to mess up your environment setting?

    If you are using a full-edition version of Modelsim, then you need to compile the library. I can help with that, if that is the case.

    Cheers,

    Dave

    --- Quote End ---

    sir i have installed

    Modelsim Altera Start Edition 10.0c

    and tried typing vmap

    it gives following error

    # Reading C:/altera/11.1/modelsim_ase/tcl/vsim/pref.tcl # Loading project voq_switch_2# ** Error: (vish-19) Failed to access library '220model' at "220model".# No such file or directory. (errno = ENOENT)# ** Error: (vish-19) Failed to access library '220model_ver' at "220model_ver".# No such file or directory. (errno = ENOENT)# ** Error: (vish-19) Failed to access library 'altera_lnsim_ver' at "altera_lnsim_ver".# No such file or directory. (errno = ENOENT)

    also tell me how to compile the library

    thank you sir
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    --- Quote Start ---

    sir i have installed

    Modelsim Altera Start Edition 10.0c

    and tried typing vmap

    it gives following error

    # Reading C:/altera/11.1/modelsim_ase/tcl/vsim/pref.tcl # Loading project voq_switch_2# ** Error: (vish-19) Failed to access library '220model' at "220model".# No such file or directory. (errno = ENOENT)# ** Error: (vish-19) Failed to access library '220model_ver' at "220model_ver".# No such file or directory. (errno = ENOENT)# ** Error: (vish-19) Failed to access library 'altera_lnsim_ver' at "altera_lnsim_ver".# No such file or directory. (errno = ENOENT)

    also tell me how to compile the library

    --- Quote End ---

    The libraries are *already* compiled. You have somehow managed to mess up your Modelsim environment.

    Why is Modelsim trying to open the project voq_switch_2?

    If you just start Modelsim and do not open any project, then the mapping to the Altera libraries should work just fine.

    If you are opening a project file, you might be over-riding the defaults and that is the problem. Try creating a new project from scratch. Personally I use Tcl scripts and never see this type of issue.

    Cheers,

    Dave