Programmable Devices
CPLDs, FPGAs, SoC FPGAs, Configuration, and Transceivers
21602 讨论

DDR3 Micron simulation model in Modelsim

Altera_Forum
名誉分销商 II
4,222 次查看

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
0 项奖励
4 回复数
Altera_Forum
名誉分销商 II
2,994 次查看

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
0 项奖励
Altera_Forum
名誉分销商 II
2,994 次查看

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
0 项奖励
Altera_Forum
名誉分销商 II
2,994 次查看

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>.

0 项奖励
Altera_Forum
名誉分销商 II
2,994 次查看

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.

0 项奖励
回复