Skip to content

Commit 1a8c19b

Browse files
committed
ctrl: Update formal to fix on new yosys
This was failing on newer versions of yosys. The assert is not true when we are testing the control unit alone as any input can come in, we update to only check this for CPU level tests. Also we remove the spr_access_valid assert which is just checking the properties of an assign.
1 parent 2863278 commit 1a8c19b

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

rtl/verilog/mor1kx_ctrl_cappuccino.v

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1624,14 +1624,11 @@ endgenerate
16241624
if (f_past_valid && !$past(rst) && $rose(ctrl_bubble_o))
16251625
assert ($past(execute_bubble_i));
16261626

1627+
`ifndef CTRL
16271628
//SPR shouldn't give more than one acknowledgement
16281629
always @*
16291630
assert ($onehot0(spr_access_ack));
1630-
1631-
//SPR acknowledgement makes spr access valid
1632-
always @*
1633-
if ($onehot(spr_access_ack))
1634-
assert (spr_access_valid);
1631+
`endif
16351632

16361633
//Insn mfspr should always read from spr and
16371634
//insn mtspr should always write to spr.

0 commit comments

Comments
 (0)