Forum Discussion

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

Altera_mf library in Modelsim-Altera Starter Edition - Error: (vsim-3033)

I've got a problem with ROM memory simulation in Modelsim-Altera Starter Edition. I tried to find a solution for hours, but still nothing works...

I'm using:

-Cyclone III family device;

-Quartus II 13.1;

-ModelSim ALTERA STARTER EDITION 10.1d

… and typical error:# ** Error: (vsim-3033) Instantiation of 'altsyncram' failed. Thedesign unit was not found.

So this is my whole process of simulation:

In Quartus:

Tools=> Run simulation tool => RTL Simulation

Modelsim is opening...

There is a Library Tab, with all libraries (including altera_mf) and "work" folder. I also compile my TestBench file with basic input values,waveforms etc.

Then I start a simulation and this error apears.

I also tried to compile file

...\Altera\13.1\quartus\eda\sim_lib\altera_mf.v

There was no error, but then my waveforms doesn't works.

Any ideas?

I also tried to use some commands like:

--- Quote Start ---

vlib altera_mf

vmap altera_mf ./altera_mf

--- Quote End ---

...but it doesn't work.

If that's important – language of my EDA Simulatin Tool in Quartus, is set to verilog.

Thank you for all replies :)

6 Replies

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

    It certainly sounds like you're on the right lines. I can't explain why it's failing based on what you've written.

    I've attached a (zipped) tcl file. This is the framework for a lot of my simulation work with Modelsim. Modify line 3 to point at a directory in which all the simulation files will go. Modify line 14 to point at your Quartus installation. Change lines 17 & 18 to point at your rtl.

    In ModelSim goto 'Tools' -> 'Tcl' -> 'Execute Macro' and point it at your tcl file.

    Having run it once the libraries will be compiled. So, you can comment out (start the line with a '#') lines 9, 10, 11, 13 & 14 to speed things up on subsequent runs.

    Cheers,

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

    Thank you for your reply :)

    I changed line 14 and it looks like:

    --- Quote Start ---

    vlog -work ./altera_mf_ver D:/Program Files (x86)/Altera/13.1/quartus/eda/sim_lib/altera_mf.v

    --- Quote End ---

    I also changed line 17L

    --- Quote Start ---

    vlog -work ./work D:/MainFiles/Projekty Altera/Project/TestBench.v

    --- Quote End ---

    and i deleted line 3:

    cd {C:\project\sim}

    i solved this problem, you could leave this section and go to edit:

    The result is empty "work" and "altera_mf_ver" folders and Two errors:

    --- Quote Start ---

    # Modifying modelsim.ini# Adding library # ** Warning: (vlib-34) Library already exists at "altera_mf_ver".# # Modifying modelsim.ini# Compiling library # Model Technology ModelSim ALTERA vlog 10.1d Compiler 2012.11 Nov 2 2012

    # ** error: (vlog-7) failed to open design unit file "d:/program" in read mode.# # No such file or directory. (errno = ENOENT)

    # ** error: d:/program files (x86)/altera/13.1/modelsim_ase/win32aloem/vlog failed.

    # error in macro d:\mainfiles\projekty altera\project\simulation\modelsim\go.tcl line 14# D:/Program Files (x86)/Altera/13.1/modelsim_ase/win32aloem/vlog failed.# while executing# "vlog -work ./altera_mf_ver D:/Program Files (x86)/Altera/13.1/quartus/eda/sim_lib/altera_mf.v"

    --- Quote End ---

    It looks a little bit, like it could not open folder with 'space' in name.

    edit:

    I wrote paths in qutation marks and there is no more errors. Now i have to only come up with how to put all my files to work folder or how to set my default work folder as this one in macro :). Of course i could set every file like in line 17, but that make a lot of problems when project is quite big and have for eample 20 files.

    When I start modelsim, default work folder is set to:

    --- Quote Start ---

    D:/MainFiles/Projekty Altera/Project/simulation/modelsim/rtl_work

    --- Quote End ---

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

    --- Quote Start ---

    Of course i could set every file like in line 17, but that make a lot of problems when project is quite big and have for eample 20 files

    --- Quote End ---

    That's exactly why you would (should) use a tcl file. That way you can specify all 20 files and use the repeatability of running the script to ensure you don't "make a lot of problems".

    You've stated ModelSim's default working folder. By keeping line 3 of my script you can specify where ModelSim is to keep all the files associated with your project.

    Cheers,

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

    Ok, i created a new folder "Simulation" to change directory in line 3. I attached to the script all my *.v files. Everything is fine (file copying, library compilation) until line 27:

    .

    --- Quote Start ---

    line 27: vsim -L altera_mf_ver asyncSerDes_tb -t ns

    Error: (vsim-3170) Could not find 'D:/MainFiles/Projekty Altera/Project/Simulation/work.asyncSerDes_tb'.

    --- Quote End ---

    When i try to start simulation - still Error 3033 with altsyncram.

    Cheers,

    L. :)
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Sorry, my mistake. You need to change that line to

    vsim -L altera_mf_ver test_bench -t ns
    changing 'test_bench' to the name of your test bench's top level entity.

    Cheers,

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

    It Works! :) You saved my head :). Thank you for all your support :)