Forum Discussion

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

DDR3 Micron simulation model in Modelsim

Hi,

I'm trying to simulate the DDR3 along with Micron model in modelsim but no luck.

I keep getting this error:

# tb.sdramddr3_0.file_io_open: at time 0.0 ns warning: no +model_data option specified, using /tmp.# ** warning: (vsim-3533) [fofiw] - failed to open file "/tmp/tb.sdramddr3_0.open_bank_file.0" for writing.# no such file or directory. (errno = enoent) : e:/user/ddr_sim/ddr3.v(622)

ANy help from someone who did it?

Thx,

Ron

4 Replies

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

    Hi Ron,

    Have you found a solution?

    Anyway, I created a "tmp" folder in the simulation directory and I did not get that error anymore.

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

    Hi,

    No, I did not.

    Nevertheless, I did something else, which was successful.

    I took Altera example design, extracted DDR3 component from it, and I used it as an external DDR model. Works great.

    That way I'm using all Altera files for the model.

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

    On modelsim's vsim line, you must specify the <folder> that you are going to use for files which are going to store the data that you are writing to DDR3. Following is an example: vsim -novopt +model_data+ddr3_tmp -t ps -L work -L work_lib <rest of your libraties> <testbench_file>.

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

    In this case, the <folder> name is ddr3_tmp. Micron's ddr3.v model reads the vsim command line +option and now has a folder so it won't complain.