Skip to content

Commit

Permalink
use embedded config to run coremark (#1602)
Browse files Browse the repository at this point in the history
  • Loading branch information
cathales authored Nov 7, 2023
1 parent 08b7a9d commit 1682923
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .gitlab-ci/scripts/report_benchmark.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
# Will fail if the number of cycles is different from this one
valid_cycles = {
'dhrystone': 217900,
'coremark': 670777,
'coremark': 733510,
}

for arg in sys.argv[1:]:
Expand Down
2 changes: 1 addition & 1 deletion util/config_pkg_generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ def setup_parser_config_generator():
parser = argparse.ArgumentParser()

parser.add_argument("--default_config", type=str, default="cv64a6_imafdc_sv39", required=True,
choices=["cv32a6_imac_sv0","cv32a6_imac_sv32","cv32a6_imafc_sv32","cv64a6_imafdc_sv39","cv32a60x"],
choices=["cv32a6_embedded","cv32a6_imac_sv0","cv32a6_imac_sv32","cv32a6_imafc_sv32","cv64a6_imafdc_sv39","cv32a60x"],
help="Default configuration is one of the 4 preexisting configuration: \
cv32a6_imac_sv0, cv32a6_imac_sv32, cv32a6_imafc_sv32, cv64a6_imafdc_sv39")
parser.add_argument("--isa", type=str, default=None, required=True,
Expand Down
5 changes: 4 additions & 1 deletion verif/regress/coremark.sh
Original file line number Diff line number Diff line change
Expand Up @@ -69,10 +69,13 @@ cflags=(
-DNOPRINT
)

default_config="cv32a6_embedded"
isa="rv32imc_zba_zbb_zbc_zbs"

set -x
python3 cva6.py \
--target hwconfig \
--hwconfig_opts="--default_config=cv32a6_imac_sv0 --isa=rv32imac --NrLoadPipeRegs=0" \
--hwconfig_opts="--default_config=$default_config --isa=$isa --NrLoadPipeRegs=0" \
--iss="$DV_SIMULATORS" \
--iss_yaml=cva6.yaml \
--c_tests "$src0" \
Expand Down

0 comments on commit 1682923

Please sign in to comment.