mirror of
https://github.com/openhwgroup/cva6.git
synced 2025-04-24 14:17:16 -04:00
Rollback of uvm_test parameter : after more testing it is not necessary to switch to a different firmware test
This commit is contained in:
parent
f6b34b3394
commit
00151de5e0
1 changed files with 0 additions and 29 deletions
|
@ -756,8 +756,6 @@ def parse_args(cwd):
|
|||
help="Directed assembly tests")
|
||||
parser.add_argument("--c_tests", type=str, default="",
|
||||
help="Directed c tests")
|
||||
parser.add_argument("--uvm_test", type=str, default="uvmt_cva6_firmware_test_c",
|
||||
help="UVM test running along the C test defined with --c_tests")
|
||||
parser.add_argument("--elf_tests", type=str, default="",
|
||||
help="Directed elf tests")
|
||||
parser.add_argument("--log_suffix", type=str, default="",
|
||||
|
@ -859,11 +857,6 @@ def load_config(args, cwd):
|
|||
else:
|
||||
args.linker = cwd + f"/../../config/gen_from_riscv_config/linker/link.ld"
|
||||
|
||||
if args.uvm_test == "" or args.uvm_test == "uvmt_cva6_firmware_test_c":
|
||||
edit_Makefile(UVM_TESTNAME="uvmt_cva6_firmware_test_c")
|
||||
else:
|
||||
edit_Makefile(UVM_TESTNAME=args.uvm_test)
|
||||
|
||||
# Keep the core_setting_dir option to be backward compatible, suggest to use
|
||||
# --custom_target
|
||||
if args.core_setting_dir:
|
||||
|
@ -971,28 +964,6 @@ def load_config(args, cwd):
|
|||
|
||||
args.spike_params = get_full_spike_param_args(args.spike_params) if args.spike_params else ""
|
||||
|
||||
def edit_Makefile(UVM_TESTNAME="uvmt_cva6_firmware_test_c"):
|
||||
script_path = os.path.abspath(__file__)
|
||||
script_dir = os.path.dirname(script_path)
|
||||
file_name = "Makefile"
|
||||
file_path = os.path.join(script_dir, file_name)
|
||||
makefile_lines = []
|
||||
modified_lines = []
|
||||
with open(file_path, 'r') as makefile:
|
||||
makefile_lines = makefile.readlines()
|
||||
for line in makefile_lines:
|
||||
if "+UVM_TESTNAME=" in line:
|
||||
line_pieces = line.split()
|
||||
for i, piece in enumerate(line_pieces):
|
||||
if piece.startswith("+UVM_TESTNAME="):
|
||||
line_pieces[i] = f"+UVM_TESTNAME={UVM_TESTNAME}"
|
||||
modified_line = ' '.join(line_pieces)
|
||||
modified_lines.append("\t" + modified_line + "\n")
|
||||
else:
|
||||
modified_lines.append(line)
|
||||
with open(file_path, 'w') as makefile:
|
||||
makefile.writelines(modified_lines)
|
||||
|
||||
def incorrect_version_exit(tool, tool_version, required_version):
|
||||
if tool == "Spike":
|
||||
logging.error(f"Please clean up Spike by executing: rm -r tools/spike verif/core-v-verif/vendor/riscv/riscv-isa-sim/build")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue