modelsim automated independent simulation vivado ip nuclear engineering

1. Brief description

Automated independent simulation improves FPGA simulation efficiency and speeds up FPGA development. At the beginning, when using Altera's FPGA to simulate the project with IP core independently, you can also add the simulation file of the IP core yourself. However, when I switched to xilinx, it seemed that there was no way to simulate independently. I had to co-simulate with vivado. This efficiency was too low, especially when simulating complex image algorithms, people were crazy. but. I have studied carefully, can realize automatic simulation, or independent simulation, really fragrant!

2. Preparation

The following is just a reference, actually do it according to your own reality.

1) vivado2019.1+modelsim2019.2. Want to install the package:

xilinx vivado Baidu cloud sharing vitis vivado 2019.2 2019.1 2018.3 2018.2 2017.4 (including license) ;
modelsim simulation software Baidu cloud sharing modelsim se 10.7 10.6d 10.6c 10.5 10.4

2) Modelsim compile the vivado library. Not compiled yet, please see my other blog: vivado2018.3 and modelsim co-simulation

3) Prepare the project, including testbench and test project

Insert picture description here

4) Modify the settings,

Insert picture description here
Insert picture description here

3. Start behavior simulation

1) Start from vivado

Insert picture description here

2) Vivado automatically generates the following directories and files in the project directory, the red box is what we need to change

Insert picture description here

3) Modify the tb_sim_wave.do file and add the module signal to the waveform display

Insert picture description here

4) Modify the tb_sim_simulate.do file, I only modified the simulation time for this file. It can be seen that this do file calls tb_sim.udo. This file should be added by the user. I don't know the specifics now. I will share it when I understand it.

Insert picture description here

5) Modify the tb_sim_compile.do file. When the last line of this file is quit, comment out or delete this line and add the do tb_sim_simulate.do command.

Insert picture description here

6) Enter do tb_sim_compile.do in the modelsim command box, you can independently and automatically simulate.

Insert picture description here

7) In the future, you can directly double-click the simulate.bat file to start modelsim, here you must remember to enter the command do tb_sim_compile.do instead of do tb_sim_simulate.do.

Insert picture description here

8) For the problem that the .bat file cannot start modelsim, please see:

modelsim automated simulation run .bat crash problem

4. Summary

I found this out by myself, if I have questions or have better suggestions, I hope to exchange more! ! !

Welcome to follow my public account: Core Kingdom, there are more FPGA & digital IC technology sharing, and you can also get open source FPGA projects!

Insert picture description here

Guess you like

Origin blog.csdn.net/weixin_40377195/article/details/105606720