File tree Expand file tree Collapse file tree 1 file changed +33
-1
lines changed
Expand file tree Collapse file tree 1 file changed +33
-1
lines changed Original file line number Diff line number Diff line change 1818if 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+
2557test .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
3365test .execute ()
You can’t perform that action at this time.
0 commit comments