Skip to content

Commit b440eaf

Browse files
committed
Second Step: add tinyriscv to the runTestRIG.py file
1 parent 0241a72 commit b440eaf

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

utils/scripts/runTestRIG.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ def z_ext(ext_name):
8080
def x_ext(ext_name):
8181
return ["", "X"+ext_name]
8282

83-
known_rvfi_dii = {'spike', 'rvbs', 'sail', 'piccolo', 'flute', 'toooba', 'ibex', 'muntjac', 'qemu', 'manual', 'none'}
83+
known_rvfi_dii = {'spike', 'rvbs', 'sail', 'piccolo', 'flute', 'toooba', 'ibex', 'muntjac', 'qemu', 'tinyriscv', 'manual', 'none'}
8484
known_vengine = {'QCVEngine', 'QCVEngine-docker'}
8585
multi_letter_exts = ["_".join(filter(None, [e0, e1, e2, e3]))
8686
for e0 in z_ext("icsr")
@@ -171,6 +171,9 @@ def x_ext(ext_name):
171171
parser.add_argument('--path-to-muntjac', metavar='PATH', type=str,
172172
default=op.join(implementations_path, "muntjac/bin/muntjac_core"),
173173
help="The PATH to the Muntjac executable")
174+
parser.add_argument('--path-to-tinyriscv', metavar='PATH', type=str,
175+
default=op.join(implementations_path, "tinyriscv/cocotb/run_tinyriscv.py"),
176+
help="The PATH to the tinyriscv run script")
174177
parser.add_argument('--path-to-QCVEngine', metavar='PATH', type=str,
175178
default=op.join(vengines_path, "QuickCheckVEngine/bin/QCVEngine"),
176179
help="The PATH to the QCVEngine executable")
@@ -506,6 +509,9 @@ def spawn_rvfi_dii_server(name, port, log, isa_def):
506509
env2["RVFI_DII_PORT"] = str(port)
507510
cmd = [args.path_to_muntjac]
508511
##############################################################################
512+
elif name == 'tinyriscv':
513+
cmd = ['python3', args.path_to_tinyriscv, str(port)]
514+
##############################################################################
509515
elif name == 'manual':
510516
return None
511517
##############################################################################

0 commit comments

Comments
 (0)