Skip to content

Commit 845cf55

Browse files
committed
Tests: Create uvm_pkg_all
1 parent f7ed8a7 commit 845cf55

File tree

1 file changed

+33
-1
lines changed

1 file changed

+33
-1
lines changed

t/t_uvm_hello_v2017_1_0_nodpi.py

Lines changed: 33 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,16 +18,48 @@
1818
if not os.path.exists(uvm_root):
1919
test.run(cmd=[
2020
"cd " + uvm_git +
21+
" && git fetch --tags" # .gitmodules doesn't pull tags
2122
" && git worktree prune && git worktree add --detach " + uvm_root +
2223
" 2017-1.0"
2324
])
2425

26+
## Make uvm_pkg_all
27+
28+
e_filename = test.obj_dir + "/pp__" + test.name + "__all1.vpp"
29+
30+
test.run(
31+
cmd=[
32+
os.environ["VERILATOR_ROOT"] + "/bin/verilator",
33+
"--E --preproc-defines --no-preproc-comments ", #
34+
"+define+UVM_NO_DPI",
35+
"+incdir+" + uvm_root + "/src",
36+
test.top_filename,
37+
"> " + e_filename,
38+
],
39+
verilator_run=True)
40+
41+
packed_filename = test.obj_dir + "/pp__" + test.name + "__all2.vpp"
42+
43+
test.run(cmd=[
44+
os.environ["VERILATOR_ROOT"] + "/nodist/uvm_pkg_packer",
45+
"--test-name " + test.name,
46+
"--uvm-header-filename " + uvm_root + "/src/uvm_pkg.sv", #
47+
"< " + e_filename,
48+
"> " + packed_filename,
49+
])
50+
51+
test.copy_if_golden(
52+
packed_filename, os.environ["VERILATOR_ROOT"] +
53+
"/test_regress/t/uvm/uvm_pkg_all_v2017_1_0_nodpi.svh")
54+
55+
## Test
56+
2557
test.compile(
2658
v_flags2=["+define+UVM_NO_DPI"],
2759
verilator_flags2=[
2860
"--binary -j 0 -Wall --dump-inputs", #
2961
"-Wno-EOFNEWLINE", # Temp - need to cleanup UVM repo
30-
"+incdir+" + uvm_root + "/src"
62+
"+incdir+" + uvm_root + "/src",
3163
])
3264

3365
test.execute()

0 commit comments

Comments
 (0)