Intel® Quartus® Prime Software
Intel® Quartus® Prime Design Software, Design Entry, Synthesis, Simulation, Verification, Timing Analysis, System Design (Platform Designer, formerly Qsys)
16556 Discussions

DDR4 example design仿真

pp
New Contributor I
2,164 Views

各位前辈好:

                      我按照官方的手册,生成了ddr4 IP的example   design 后,去进行仿真

pp_0-1627890863048.png

pp_1-1627890872778.png

我首先设置更改了  change directory,然后 执行命令 vsim -do msim-setup.tcl ,返回一个

no design specified  的提示,再执行do msim_setup.tcl, modelsim 一点反应都没有,希望各位前辈指导我一下

0 Kudos
1 Solution
AdzimZM_Intel
Employee
2,088 Views

Hi pp,

 

You actually doing it right.

After performing commands do msim_setup.tcl, you should perform the commands like below:

  1. dev_com
  2. com
  3. elab_debug
  4. add wave "ed_sim/*"
  5. transcript file transcript.txt
  6. run -all

 

I already share the run.do file at my first comment there.

It's contains the commands to simulate your design.

In order to use it,

  1. Copy the run.do into your msim_setup.tcl directory
  2. Open Modelsim
  3. Change directory to your msim_setup.tcl directory
  4. Perform do run.do in the transaction windows

 

Feel free to ask me when you still need some help.

 

Thanks,

Adzim

View solution in original post

11 Replies
BrusC_Intel
Moderator
2,141 Views

Hello, pp.


Thank you for posting in the Intel Community Support forums.


请注意,我仅能以英文提供支持。我使用了一个网络翻译工具来翻译此响应,因此,可能有一些不准确的翻译。

Please be informed that I can only support you in English. I have used a web translation tool to translate this response hence, there may be some inaccurate translation.


We have a specialized community section for Intel Quartus Prime software, I will move your threads there so they can be answered as soon as possible.


Best regards,


Bruce C.

Intel Customer Support Technician


0 Kudos
AdzimZM_Intel
Employee
2,105 Views

Hi pp,

 

I hope you understand about what BruC has stated in the previous reply.

 

I also need to translate your issue into English.

What I understand about your issue is that you want to simulate your design in Modelsim simulator but you encounter some errors.

 

If that right, so first thing you need to do is to set the path to correct directory where the source file is located there.

Usually the source file is located in <project file>/emif_0_example_design/sim/ed_sim/mentor/

When you performing the vsim -do msim_setup.tcl, it will bring up the Modelsim.

 

My step to run simulation in Modelsim:

  1. Open the Modelsim software.
  2. Set the source directory to the correct path of the msim_setup.tcl file directory.
  3. Run run.do file that I've attached.

The run.do file contains the commands to compile and simulate your design.

You can run the commands inside the file you want to do it manually in Modelsim.

 

Hope that can solve your issue.

 

Thanks,

Adzim

 

pp
New Contributor I
2,098 Views

Hi adzim:

   some pictures  cannot be shown,Let me add my steps

1:  change directory 

 E:\my_information\programmer_software_code\quaruts\DDR4\emif_0_example_design\sim\ed_sim\mentor

2:  input command in modlesim,  vism -do msim_setup.tcl

3:  input command in modlesim,  do msim_setup.tcl

And then there was no reaction,what should i do?

0 Kudos
pp
New Contributor I
2,098 Views

Hi Adzim;

     i will use english to repeat my question,i want to simulate the official DDR4 IP CORE,but i meet some problems。I will explain my steps to simulate DDR4 IP step by step. Please help me to see if there is any problem with my steps。

    first:  i open the modelsim and change directory,please look at the picture

 
 
 

QQ图片20210806144205.png

 

second :I enter the following command in the modelsim command bar

 
 

third: I enter the following command in the modelsim command bar

 

QQ图片20210806144504.png

 
 

And then there was no reaction,what should i do?

 

 

 

 

 
 
 
 
 

 

 

0 Kudos
AdzimZM_Intel
Employee
2,095 Views

Hi pp,


Does the Modelsim shows any error in the transaction windows?

Or there is no reaction at all?


Can you confirm that the msim_setup.tcl is exists in your directory?


Which Quartus version that you used?


Have you tried to change the directory in the GUI?

You can change it by going to File>Change Directory...


Thanks,

Adzim


pp
New Contributor I
2,091 Views

Hi Adzim:

     

   Does the Modelsim shows any error in the transaction windows?

   Or there is no reaction at all?

   answer:    please look at the picture,when i input command       do msim_setup.tcl

        QQ图片20210806154818.pngQQ图片20210806154818.png

     Can you confirm that the msim_setup.tcl is exists in your directory?

      answer :    yes,i'm sure the  msim_setup.tcl is exists my directory, please look at the picture 

     

pp_0-1628236328271.png

Have you tried to change the directory in the GUI?

You can change it by going to File>Change Directory...

answer :   yes, I used exactly the method you said

 

by the way, i'm using quartus 18.0 standard version

0 Kudos
AdzimZM_Intel
Employee
2,089 Views

Hi pp,

 

You actually doing it right.

After performing commands do msim_setup.tcl, you should perform the commands like below:

  1. dev_com
  2. com
  3. elab_debug
  4. add wave "ed_sim/*"
  5. transcript file transcript.txt
  6. run -all

 

I already share the run.do file at my first comment there.

It's contains the commands to simulate your design.

In order to use it,

  1. Copy the run.do into your msim_setup.tcl directory
  2. Open Modelsim
  3. Change directory to your msim_setup.tcl directory
  4. Perform do run.do in the transaction windows

 

Feel free to ask me when you still need some help.

 

Thanks,

Adzim

pp
New Contributor I
2,078 Views

HI Adzim:

I have used the DO file you gave for simulation, but the simulated signal waveform is not available, and many signals are red lines  

pp_0-1628241138263.png

 

0 Kudos
AdzimZM_Intel
Employee
2,075 Views

Hi pp,

 

Great to know.

 

You should wait until the simulation finish.

 

Also you need to select Full Calibration mode to see the full processes in your EMIF IP setting.

Or else there might be skipped the calibration.

But the Full Calibration mode will take longer time than Skip Calibration mode.

 

I see that you can run the simulation now.

I guess your problem is solved.

 

Do you any further question?

 

Thanks,

Adzim

pp
New Contributor I
2,071 Views

thank you Adzim, No more questions for me  

0 Kudos
AdzimZM_Intel
Employee
2,070 Views

I set the case to closure.


You can file a new case if you got any problem.


Thanks for using Intel Community.


Regards,

Adzim


Reply