ibex icon indicating copy to clipboard operation
ibex copied to clipboard

DV: Test writable mtvec

Open imphil opened this issue 7 years ago • 4 comments

With #118 landed mtvec is now writable. We need DV to test this, and to ensure that the documented constraints (256B-aligned, only vectorized) are obeyed when reading the value back.

imphil avatar Aug 08 '19 11:08 imphil

@imphil, I tested writes to mtvec, and its behavior is correct, it remains 256B-aligned, and the bottom two bits always remain 2'b01.

udinator avatar Aug 08 '19 17:08 udinator

Thanks @udinator! Did you do a manual test, or is this already part of the DV in this repository? Please feel free to close this issue once it is covered by in-tree DV.

imphil avatar Aug 09 '19 09:08 imphil

The testing I did to verify mtvec is part of my latest merge to the google/riscv-dv repository, and the script in question can be found here. I will be updating the riscv-dv repository in-tree as part of my PRs that are currently outsanding for this repo.

udinator avatar Aug 09 '19 15:08 udinator

@udinator, please update the boot strap setup here https://github.com/lowRISC/ibex/blob/master/dv/uvm/riscv_dv_extension/ibex_asm_program_gen.sv#L32

Right now all the trap/interrupt handling is hard-coded to boot_addr. It should be replaced to allow programmable MTVEC.

taoliug avatar Aug 12 '19 20:08 taoliug