Two minor simulation flow enhancements (#2145)

This commit is contained in:
xiaoweish 2024-05-23 14:28:01 +08:00 committed by GitHub
parent e823d836f3
commit 115b464a2b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 6 additions and 6 deletions

View file

@ -301,7 +301,7 @@ vcs_uvm_comp:
$(cov-comp-opt) +define+UNSUPPORTED_WITH+ $(isscomp_opts)\
-top uvmt_cva6_tb
vcs_uvm_run:
vcs_uvm_run: vcs_uvm_comp
$(if $(TRACE_FAST), unset VERDI_HOME ;) \
cd $(VCS_WORK_DIR)/ && \
$(VCS_WORK_DIR)/simv \
@ -309,9 +309,7 @@ vcs_uvm_run:
$(ALL_SIMV_UVM_FLAGS) \
$(cov-run-opt) $(issrun_opts)
vcs-uvm:
make vcs_uvm_comp
make vcs_uvm_run
vcs-uvm: vcs_uvm_comp vcs_uvm_run
# If present, move default waveform files to log directory.
# Keep track of target in waveform file name.
[ ! -f $(VCS_WORK_DIR)/novas.vpd ] || \

View file

@ -1141,8 +1141,6 @@ def main():
global test_iteration
global log_format
cwd = os.path.dirname(os.path.realpath(__file__))
os.environ["RISCV_DV_ROOT"] = cwd + "/dv"
os.environ["CVA6_DV_ROOT"] = cwd + "/../env/corev-dv"
args = parse_args(cwd)
# We've parsed all the arguments from the command line; default values
# can be set in the config file. Read that here.

View file

@ -13,6 +13,10 @@ export RTL_PATH="$ROOT_PROJECT/"
export TB_PATH="$ROOT_PROJECT/verif/tb/core"
export TESTS_PATH="$ROOT_PROJECT/verif/tests"
# RISCV-DV & COREV-DV
export RISCV_DV_ROOT="$ROOT_PROJECT/verif/sim/dv"
export CVA6_DV_ROOT="$ROOT_PROJECT/verif/env/corev-dv"
if [ -z "$RISCV" ]; then
echo "Error: RISCV variable undefined."
return