mirror of
https://github.com/openhwgroup/cve2.git
synced 2025-04-22 04:57:25 -04:00
[DV] Increase number of illegal instructions generated (#426)
This commit is contained in:
parent
0331ed61b1
commit
d3c7b887d7
3 changed files with 25 additions and 3 deletions
|
@ -17,7 +17,7 @@ COV := 0
|
|||
# RTL simulator
|
||||
SIMULATOR := "vcs"
|
||||
# ISS (spike, ovpsim)
|
||||
ISS := "spike"
|
||||
ISS := "ovpsim"
|
||||
# ISA
|
||||
ISA := "rv32imc"
|
||||
# Test name (default: full regression)
|
||||
|
@ -101,6 +101,7 @@ iss_sim:
|
|||
${COMMON_OPTS} \
|
||||
--iss=${ISS} \
|
||||
--isa=${ISA} \
|
||||
--core_setting_dir=${DV_DIR}/riscv_dv_extension \
|
||||
|
||||
# Compile ibex core TB
|
||||
compile:
|
||||
|
|
21
dv/uvm/riscv_dv_extension/riscvOVPsim.ic
Normal file
21
dv/uvm/riscv_dv_extension/riscvOVPsim.ic
Normal file
|
@ -0,0 +1,21 @@
|
|||
# riscOVPsim configuration file converted from YAML
|
||||
--variant RV32I
|
||||
--override riscvOVPsim/cpu/add_Extensions=MC
|
||||
--override riscvOVPsim/cpu/misa_MXL=1
|
||||
--override riscvOVPsim/cpu/misa_MXL_mask=0x0 # 0
|
||||
--override riscvOVPsim/cpu/misa_Extensions_mask=0x0 # 0
|
||||
--override riscvOVPsim/cpu/unaligned=T
|
||||
--override riscvOVPsim/cpu/mtvec_mask=0xffffff03
|
||||
--override riscvOVPsim/cpu/tvec_align=256
|
||||
--override riscvOVPsim/cpu/user_version=2.3
|
||||
--override riscvOVPsim/cpu/priv_version=1.11
|
||||
--override riscvOVPsim/cpu/mvendorid=0
|
||||
--override riscvOVPsim/cpu/marchid=0
|
||||
--override riscvOVPsim/cpu/mimpid=0
|
||||
--override riscvOVPsim/cpu/mhartid=0
|
||||
--override riscvOVPsim/cpu/cycle_undefined=F
|
||||
--override riscvOVPsim/cpu/instret_undefined=F
|
||||
--override riscvOVPsim/cpu/time_undefined=F
|
||||
--override riscvOVPsim/cpu/reset_address=0x80000080
|
||||
--override riscvOVPsim/cpu/simulateexceptions=T
|
||||
--override riscvOVPsim/cpu/wfi_is_nop=T
|
|
@ -90,10 +90,10 @@
|
|||
instruction and handle corresponding exception properly. An exception
|
||||
handling routine is designed to resume execution after illegal
|
||||
instruction exception.
|
||||
iterations: 10
|
||||
iterations: 15
|
||||
gen_test: riscv_rand_instr_test
|
||||
gen_opts: >
|
||||
+illegal_instr_ratio=5
|
||||
+illegal_instr_ratio=25
|
||||
rtl_test: core_ibex_base_test
|
||||
|
||||
- test: riscv_hint_instr_test
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue