riscv_debug_wfi_test failed
Nobody has claimed this yet.
- Dominant language
- SystemVerilog
- Stars
- 2.1k
- Forks
- 810
- Avg merge
- 5d 23h
- Merged PRs (30d)
- 9
Description
Hi, When I use the make TEST=riscv_debug_wfi_test SEED=27946 the case 27948 will failed due to timeout.
It's failed because the second instruction of main function is wfi instruction, but the task check_stimulus of the class core_ibex_debug_wfi_test is start later than wfi instruction execution( after wait_for_setup, it also wait another 50 cycles), so it will never wait for wfi instructions until timeout.
Does anyone know how to solve this issue? My current approach is to comment \\clk_vif.wait_clks(50); at line 456 of core_ibex_test_lib.sv, and can pass, but not sure if it will affect other cases.
Tool: vcs o-2018.09-SP2-9
Config: small
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the failure with make TEST=riscv_debug_wfi_test SEED=27946 and inspect core_ibex_test_lib.sv around line 456. Trace core_ibex_debug_wfi_test, check_stimulus, and wait_for_setup to understand the timing of the extra 50-cycle wait. Done means the WFI test passes without causing other cases to fail.
Written by the indexing model from the issue text.
Assessment
- Domain
- testing-qa
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100