In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/02 Report--
This article introduces the knowledge of "Building the uvm environment under Modelsim". In the operation of actual cases, many people will encounter such a dilemma, so let the editor lead you to learn how to deal with these situations. I hope you can read it carefully and be able to achieve something!
1. Download modelsim software
Download modelsim, which is the modelsim10.4 version. Download address: https://pan.baidu.com/s/1wnCwlQ2EblCkKHFOM6gEyw extraction code: 772l.
After downloading and installing, you can see uvm-1.1d in the installation folder, which is the version of uvm we are using. There is a uvm_dpi.dll file under uvm-1.1d/win64, which is the compiled uvm library.
two。 Write a document
Take "hello,world" as an example, write the uvm source file as follows:
`timescale 1ns/1ps
`include "uvm_macros.svh"
Import uvm_pkg::*
Module hello
Initial begin
`uvm_info ("info", "Hello worldviews!", UVM_LOW)
End
Endmodule
After writing an executive program under windows: run.bat.
There is only one sentence:
This is to run the modelsim script file sim.do.
The Sim.do file is as follows:
Set UVM_DPI_HOME E:/modeltech74_10.4/uvm-1.1d/win64
Vlib work
Vlog-L mtiAvm-L mtiOvm-L mtiUvm-L mtiUPF hello.sv
Vsim-c-sv_lib $UVM_DPI_HOME/uvm_dpi work.hello
Run 100
The first sentence is to set the uvm environment variable to specify the dpi location of the uvm.
The second sentence is to create a work working directory.
The third sentence is to compile the source file, and specify several compilation libraries through-L.
The third sentence is to perform the simulation, calling uvmKuuvm _ dpi.
The fourth sentence is how long to run: 100ns.
3. Execution
Double-click run.bat, and then call modelsim for compilation and simulation.
This is the end of the content of "Building the uvm Environment under Modelsim". Thank you for reading. If you want to know more about the industry, you can follow the website, the editor will output more high-quality practical articles for you!
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.