Open ssmolov opened 3 months ago
uvm_macros.svh
is not what contains the definition of uvm_pkg. As the name implies, this svh file only contains `define statements for various helper macros, e.g. `uvm_info, `uvm_error
uvm_pkg.sv
is a separate file that must be a part of the filelist in addition to the test-case file.
It does appear that the test-case in the repo is attempting to add the file to the command line. With git clone --recursive
I do see that the surelog repo has the UVM directory shown below, but I suspect it is the relative hierarchies that are causing the files to not be found when being passed to other tools such as slang.
third_party/tools/Surelog/third_party/tests/Google/batch.txt
383:-cd chapter-16 -I../../../UVM/1800.2-2017-1.0/src/ ../../../UVM/1800.2-2017-1.0/src//uvm_pkg.sv -parse -nonote -noinfo -nouhdm -timescale=1ns/1ns 16.2--assert-final-uvm.sv -l 16.2--assert-final-uvm.sv.log
About 140 tests from
chapter-16
andchapter-18
subdirectories start from importing theuvm_pkg
package before it's definition. The include directive comes right after the import:Both open-source (slang) and commercial (VCS) EDA tools report errors on such tests -- are these tests treated to be negative? Here is a fragment of VCS log for
chapter-16/16.2--assert-final-uvm.sv
test:Here is the complete list of such tests: undefined-import-uvm-tests.txt