ibex icon indicating copy to clipboard operation
ibex copied to clipboard

"no_wfi" is usually being set to 1, even for tests with "+no_wfi=0"

Open CathalMCrevinn opened this issue 6 years ago • 3 comments

In dv/uvm/core_ibex/riscv_dv_extension/testlist.yaml, riscv_debug_wfi_test has +no_wfi=0 as a gen_opt. Example run: "make TEST=riscv_debug_wfi_test SIMULATOR=xlm ITERATIONS=5 SEED=23293" For this example run, in instr_gen/sim_riscv_debug_wfi_test_0.log, the configuration for the first iteration has no_wfi set to 0, but the configurations for the remaining four iterations have it set to 1. It's not just an issue of init_privileged_mode being USER_MODE in the configuration. Some iterations have it as MACHINE_MODE but with no_wfi still set to 1. It's also not specific to riscv_debug_wfi_test, it applies to the other tests with +no_wfi=0 too.

CathalMCrevinn avatar Nov 30 '20 10:11 CathalMCrevinn

Thanks for raising this issue! This may be due to some unintended side effect of the latest commits in the vendored in generator, I will take a look.

udinator avatar Nov 30 '20 21:11 udinator

@udinator: Any progress here?

rswarbrick avatar Apr 05 '21 14:04 rswarbrick

Hi @CathalMCrevinn I have still been unsuccessful in recreating this issue on both VCS and Xcelium simulators. I am seeing that if the core is booted into M-mode then no_wfi is constrained to 0, and is kept at 1 if U-mode is used (as intended). Could you try syncing with the current upstream and trying again?

udinator avatar Apr 09 '21 17:04 udinator