Skip to content

Commit 1e0b704

Browse files
authored
Change UVM to submodule branch scheme (#9)
1 parent 8c72e04 commit 1e0b704

File tree

7 files changed

+15
-40
lines changed

7 files changed

+15
-40
lines changed

.gitmodules

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,6 @@
3838
path = submodules/sv-bugpoint
3939
url = https://github.com/antmicro/sv-bugpoint
4040
shallow = true
41-
[submodule "submodules/uvm"]
42-
path = submodules/uvm
43-
url = https://github.com/chipsalliance/uvm-verilator.git
44-
shallow = false
4541
[submodule "submodules/wbuart32"]
4642
path = submodules/wbuart32
4743
url = https://github.com/ZipCPU/wbuart32.git
@@ -50,3 +46,13 @@
5046
path = submodules/libfst
5147
url = https://github.com/gtkwave/libfst.git
5248
shallow = true
49+
[submodule "submodules/uvm-2017-1.0-vlt"]
50+
path = submodules/uvm-2017-1.0-vlt
51+
url = https://github.com/chipsalliance/uvm-verilator.git
52+
branch = uvm-2017-1.0-vlt
53+
shallow = true
54+
[submodule "submodules/uvm-2020-3.1-vlt"]
55+
path = submodules/uvm-2020-3.1-vlt
56+
url = https://github.com/chipsalliance/uvm-verilator.git
57+
branch = uvm-2020-3.1-vlt
58+
shallow = true

submodules/uvm-2017-1.0-vlt

Submodule uvm-2017-1.0-vlt added at 5a37baa

t/t_uvm_hello_v2017_1_0_dpi.py

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -12,18 +12,10 @@
1212
test.scenarios('vlt')
1313
test.top_filename = "t/t_uvm_hello.v"
1414

15-
uvm_git = os.path.abspath(test.t_dir + "/../submodules/uvm")
16-
uvm_root = os.path.abspath(test.obj_dir + "/uvm-worktree")
15+
uvm_root = os.path.abspath(test.t_dir + "/../submodules/uvm-2017-1.0-vlt")
1716

1817
test.pli_filename = uvm_root + "/src/dpi/uvm_dpi.cc"
1918

20-
if not os.path.exists(uvm_root):
21-
test.run(cmd=[
22-
"cd " + uvm_git +
23-
" && git worktree prune && git worktree add --detach " + uvm_root +
24-
" origin/uvm-2017-1.0-vlt"
25-
])
26-
2719
## Test
2820

2921
test.compile(verilator_flags2=[

t/t_uvm_hello_v2017_1_0_nodpi.py

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,7 @@
1212
test.scenarios('vlt')
1313
test.top_filename = "t/t_uvm_hello.v"
1414

15-
uvm_git = os.path.abspath(test.t_dir + "/../submodules/uvm")
16-
uvm_root = os.path.abspath(test.obj_dir + "/uvm-worktree")
17-
18-
if not os.path.exists(uvm_root):
19-
test.run(cmd=[
20-
"cd " + uvm_git +
21-
" && git worktree prune && git worktree add --detach " + uvm_root +
22-
" origin/uvm-2017-1.0-vlt"
23-
])
15+
uvm_root = os.path.abspath(test.t_dir + "/../submodules/uvm-2017-1.0-vlt")
2416

2517
## Make uvm_pkg_all
2618

t/t_uvm_hello_v2020_3_1_dpi.py

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -12,18 +12,10 @@
1212
test.scenarios('vlt')
1313
test.top_filename = "t/t_uvm_hello.v"
1414

15-
uvm_git = os.path.abspath(test.t_dir + "/../submodules/uvm")
16-
uvm_root = os.path.abspath(test.obj_dir + "/uvm-worktree")
15+
uvm_root = os.path.abspath(test.t_dir + "/../submodules/uvm-2020-3.1-vlt")
1716

1817
test.pli_filename = uvm_root + "/src/dpi/uvm_dpi.cc"
1918

20-
if not os.path.exists(uvm_root):
21-
test.run(cmd=[
22-
"cd " + uvm_git +
23-
" && git worktree prune && git worktree add --detach " + uvm_root +
24-
" origin/uvm-2020-3.1-vlt"
25-
])
26-
2719
## Test
2820

2921
test.compile(verilator_flags2=[

t/t_uvm_hello_v2020_3_1_nodpi.py

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,7 @@
1212
test.scenarios('vlt')
1313
test.top_filename = "t/t_uvm_hello.v"
1414

15-
uvm_git = os.path.abspath(test.t_dir + "/../submodules/uvm")
16-
uvm_root = os.path.abspath(test.obj_dir + "/uvm-worktree")
17-
18-
if not os.path.exists(uvm_root):
19-
test.run(cmd=[
20-
"cd " + uvm_git +
21-
" && git worktree prune && git worktree add --detach " + uvm_root +
22-
" origin/uvm-2020-3.1-vlt"
23-
])
15+
uvm_root = os.path.abspath(test.t_dir + "/../submodules/uvm-2020-3.1-vlt")
2416

2517
## Make uvm_pkg_all
2618

0 commit comments

Comments
 (0)