ibex icon indicating copy to clipboard operation
ibex copied to clipboard

Dcsr.xdebugver reset value

Open udinator opened this issue 7 years ago • 2 comments

Hi all, I noticed that in the CSR register module, dcsr.xdebugver is set to XDEBUGVER_NO upon reset, but after reset is over and an explicit write to dcsr occurs, the xdebugver field will then be permanently set to the value of XDEBUGVER_STD for the duration of the simulation. This seems to contradict with the behavior of the dcsr.prv field, which is set to PRV_LVL_M at reset, as well as whenever a write occurs outside of reset. Why does this separate reset behavior for xdebugver occur, instead of setting it to XDEBUGVER_STD from reset onwards especially since this field is read-only and stays as a constant? Thank you! Udi

udinator avatar Sep 05 '19 21:09 udinator

HI @udinator ,

thanks for creating the issue. I do not see any reason why dcsr.XDEBUGVER should not be set to XDEBUGVER_STD right at reset. I will create a PR to correct this. Best Pirmin

vogelpi avatar Sep 06 '19 12:09 vogelpi

Thanks for the fix @vogelpi!

udinator avatar Sep 06 '19 16:09 udinator