From 27dd6b2e06f3110904dda9db1abc4e1d466db30a Mon Sep 17 00:00:00 2001 From: Greg Chadwick Date: Thu, 29 Feb 2024 18:09:58 +0000 Subject: [PATCH] [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`. --- rtl/ibex_lockstep.sv | 23 ++++++++++++----------- 1 file changed, 12 insertions(+), 11 deletions(-) diff --git a/rtl/ibex_lockstep.sv b/rtl/ibex_lockstep.sv index b68128cb1e..9502f830e9 100644 --- a/rtl/ibex_lockstep.sv +++ b/rtl/ibex_lockstep.sv @@ -132,17 +132,18 @@ module ibex_lockstep import ibex_pkg::*; #( .Width (LockstepOffsetW ), .ResetValue (LockstepOffsetW'(1'b0) ) ) u_rst_shadow_cnt ( - .clk_i (clk_i ), - .rst_ni (rst_ni ), - .clr_i (1'b0 ), - .set_i (1'b0 ), - .set_cnt_i ('0 ), - .incr_en_i (1'b1 ), - .decr_en_i (1'b0 ), - .step_i (LockstepOffsetW'(1'b1) ), - .cnt_o (rst_shadow_cnt ), - .cnt_next_o ( ), - .err_o (rst_shadow_cnt_err ) + .clk_i (clk_i ), + .rst_ni (rst_ni ), + .clr_i (1'b0 ), + .set_i (1'b0 ), + .set_cnt_i ('0 ), + .incr_en_i (1'b1 ), + .decr_en_i (1'b0 ), + .step_i (LockstepOffsetW'(1'b1) ), + .commit_i (1'b1 ), + .cnt_o (rst_shadow_cnt ), + .cnt_after_commit_o ( ), + .err_o (rst_shadow_cnt_err ) ); // When the LockstepOffset counter value is reached, activate the lockstep