mirror of
https://github.com/lowRISC/ibex.git
synced 2025-04-22 21:07:34 -04:00
[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`.
This commit is contained in:
parent
71683aa595
commit
27dd6b2e06
1 changed files with 12 additions and 11 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue