Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

use embedded config to run coremark #1602

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading