[DV] Increase number of illegal instructions generated (#426)

This commit is contained in:
udinator 2019-10-25 14:00:22 -07:00 committed by GitHub
parent 0331ed61b1
commit d3c7b887d7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 25 additions and 3 deletions

View file

@ -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:

View 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

View file

@ -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