Skip to content

Commit 27dd6b2

Browse files
GregACmarnovandermaas
authored andcommitted
[rtl] Update use of prim_count following port changes
The latest version of `prim_count` from OpenTitan introduces a `commit_i` input. To retain the behaviour of the previous `prim_count` this should be set to a constant 1. The `cnt_next_o` output has been renamed to `cnt_after_commit_o`.
1 parent 71683aa commit 27dd6b2

File tree

1 file changed

+12
-11
lines changed

1 file changed

+12
-11
lines changed

rtl/ibex_lockstep.sv

+12-11
Original file line numberDiff line numberDiff line change
@@ -132,17 +132,18 @@ module ibex_lockstep import ibex_pkg::*; #(
132132
.Width (LockstepOffsetW ),
133133
.ResetValue (LockstepOffsetW'(1'b0) )
134134
) u_rst_shadow_cnt (
135-
.clk_i (clk_i ),
136-
.rst_ni (rst_ni ),
137-
.clr_i (1'b0 ),
138-
.set_i (1'b0 ),
139-
.set_cnt_i ('0 ),
140-
.incr_en_i (1'b1 ),
141-
.decr_en_i (1'b0 ),
142-
.step_i (LockstepOffsetW'(1'b1) ),
143-
.cnt_o (rst_shadow_cnt ),
144-
.cnt_next_o ( ),
145-
.err_o (rst_shadow_cnt_err )
135+
.clk_i (clk_i ),
136+
.rst_ni (rst_ni ),
137+
.clr_i (1'b0 ),
138+
.set_i (1'b0 ),
139+
.set_cnt_i ('0 ),
140+
.incr_en_i (1'b1 ),
141+
.decr_en_i (1'b0 ),
142+
.step_i (LockstepOffsetW'(1'b1) ),
143+
.commit_i (1'b1 ),
144+
.cnt_o (rst_shadow_cnt ),
145+
.cnt_after_commit_o ( ),
146+
.err_o (rst_shadow_cnt_err )
146147
);
147148

148149
// When the LockstepOffset counter value is reached, activate the lockstep

0 commit comments

Comments
 (0)