mirror of
https://github.com/openhwgroup/cva6.git
synced 2025-06-28 17:23:59 -04:00
use embedded config to run coremark (#1602)
This commit is contained in:
parent
08b7a9d428
commit
168292364a
3 changed files with 6 additions and 3 deletions
|
@ -18,7 +18,7 @@ iterations = None
|
||||||
# Will fail if the number of cycles is different from this one
|
# Will fail if the number of cycles is different from this one
|
||||||
valid_cycles = {
|
valid_cycles = {
|
||||||
'dhrystone': 217900,
|
'dhrystone': 217900,
|
||||||
'coremark': 670777,
|
'coremark': 733510,
|
||||||
}
|
}
|
||||||
|
|
||||||
for arg in sys.argv[1:]:
|
for arg in sys.argv[1:]:
|
||||||
|
|
|
@ -18,7 +18,7 @@ def setup_parser_config_generator():
|
||||||
parser = argparse.ArgumentParser()
|
parser = argparse.ArgumentParser()
|
||||||
|
|
||||||
parser.add_argument("--default_config", type=str, default="cv64a6_imafdc_sv39", required=True,
|
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: \
|
help="Default configuration is one of the 4 preexisting configuration: \
|
||||||
cv32a6_imac_sv0, cv32a6_imac_sv32, cv32a6_imafc_sv32, cv64a6_imafdc_sv39")
|
cv32a6_imac_sv0, cv32a6_imac_sv32, cv32a6_imafc_sv32, cv64a6_imafdc_sv39")
|
||||||
parser.add_argument("--isa", type=str, default=None, required=True,
|
parser.add_argument("--isa", type=str, default=None, required=True,
|
||||||
|
|
|
@ -69,10 +69,13 @@ cflags=(
|
||||||
-DNOPRINT
|
-DNOPRINT
|
||||||
)
|
)
|
||||||
|
|
||||||
|
default_config="cv32a6_embedded"
|
||||||
|
isa="rv32imc_zba_zbb_zbc_zbs"
|
||||||
|
|
||||||
set -x
|
set -x
|
||||||
python3 cva6.py \
|
python3 cva6.py \
|
||||||
--target hwconfig \
|
--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="$DV_SIMULATORS" \
|
||||||
--iss_yaml=cva6.yaml \
|
--iss_yaml=cva6.yaml \
|
||||||
--c_tests "$src0" \
|
--c_tests "$src0" \
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue