In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-09 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/01 Report--
This article will explain in detail how to build the UVM environment in Modelsim. The content of the article is of high quality, so the editor will share it with you for reference. I hope you will have some understanding of the relevant knowledge after reading this article.
I installed the version of modelsim-win64-10.7-se.exe. After the installation and activation is successful, you can see the compiled UVM library in the modelsim installation directory and generate a .dll file for UVM verification. The source code for UVM is stored in the verilog_src folder. 1. Test the modelsim environment variable. Type "vsim" in the command line window, and if the environment variable has been added successfully, the following screen will be displayed and the modelsim interface will be launched automatically. If you prompt that the command cannot be found, you need to add the installation path of modelsim to the environment variable and re-enter it on the command line and test again. 2. Establish the simulation engineering library and set up the uvm environment. To establish a UVM environment in modelsim, the version of UVM used is UVM1.1b. Under UVM-1.1b/win64 under modelsim's installation directory, there is a uvm_dpi.dll. From the command line, use the "CD" command to change to the simulation project directory. Under this folder, there are the following files. Dut.sv is the file to be tested, my_driver.sv contains the driver signal, and top_tb.sv is the simulation test file. Type "vlib work" on the command line to create a new simulation library.
Vlib work sets the UVM path, work path, and DPI file path.
Set UVM_HOME C:/modeltech74_10.7/verilog_src/uvm-1.1d set WORK_HOME C:/Users/14551/Desktop/section2.2/2.2.1 set UVM_DPI_HOME C:/modeltech74_10.7/uvm-1.1d/win64
Enter the following command to add a simulation file.
The usage and meaning of the vlog + incdir+$UVM_HOME/src-L mtiAvm-L mtiOvm-L mtiUvm-L mtiUPF $UVM_HOME/src/uvm_pkg.sv $WORK_HOME/dut.sv top_tb.sv command incdir are as follows:
The vlog + incdir+YOUR_SOURCE_PATH foo.v+incdir+YOUR_SOURCE_PATH option refers to the search path of the included file when `include "xxx.v" appears in the verilog file. " Add the path to the containing file to the project. The default is to search the current path, the path specified by YOUR_SOURCE_PATH. 3, start the simulation. Enter the following command to start the simulation.
Vsim-c-sv_lib $UVM_DPI_HOME/uvm_dpi work.top_tb adds all waveforms, and an asterisk * means to add all top-level signal waveforms.
View wave *
To run the simulation, select one of the following commands, and the simulation time can be customized as long as it is appropriate.
Run-all / / run run 10ns / / run 10ns to see the simulation waveform. (4) the establishment of the document "do". The most important reason is that these command lines can build a do file to automate the simulation operation. Write all the above commands to a text file with the suffix set to .do. Here, name the file sim.do, place the file in the project directory, navigate to the file directory in modelsim, execute the command: do sim.do, and the simulation can be carried out automatically. A more convenient way is to create a new batch file and double-click it directly during the simulation. Create a new text file and enter the command
Vsim-do sim.do just keep asking about the file with the suffix .bat. Double-click the file to automatically open the modelsim and automatically perform the simulation operation. The execution of the Vsim command in the bat file depends on the addition of the modelsim environment variable in the first step. If the command does not run, add the environment variable for modelsim correctly. On how to build the UVM environment in Modelsim to share here, I hope that the above content can be of some help to you, can learn more knowledge. If you think the article is good, you can share it for more people to see.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.