mor1kx icon indicating copy to clipboard operation
mor1kx copied to clipboard

SPR property fails when debug unit is enabled

Open Harshitha172000 opened this issue 4 years ago • 2 comments

SPR read and write requests are mutually exclusive. Both spr_read_access and spr_write_acess can’t be high at the same time. When the Debug unit is enabled, this property fails.

Assertion (Check applied to mor1kx_ctrl_cappuccino.v)

always @*
   assert ($onehot0 ({spr_read_access, spr_write_access}));

Trace:

image

Harshitha172000 avatar Aug 06 '21 10:08 Harshitha172000

can you put a link to the code, or mention the module where this is happening?

stffrdhrn avatar Aug 15 '21 21:08 stffrdhrn

mor1kx_ctrl_cappuccino.v

Code: https://github.com/openrisc/mor1kx/blob/master/rtl/verilog/mor1kx_ctrl_cappuccino.v#L1644#L1651

Harshitha172000 avatar Aug 16 '21 16:08 Harshitha172000