Skip to content

Commit

Permalink
[rtl,sensor_ctrl] Fix CDC bug
Browse files Browse the repository at this point in the history
Synchronize the incoming wakeup stimulus to the AON clock.
Besides being synchronized to the wrong clock, the previous
RTL caused wakeup events to be missed in sleep mode since
the regular clock is off.

Fixes #20614

Signed-off-by: Guillermo Maturana <[email protected]>
  • Loading branch information
matutem committed Jan 17, 2024
1 parent 0d30b38 commit 1b0de4f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions hw/top_earlgrey/ip/sensor_ctrl/rtl/sensor_ctrl.sv
Original file line number Diff line number Diff line change
Expand Up @@ -296,8 +296,8 @@ module sensor_ctrl
.Width(1),
.ResetValue('0)
) u_wake_sync (
.clk_i,
.rst_ni,
.clk_i(clk_aon_i),
.rst_ni(rst_aon_ni),
.d_i(async_wake),
.q_o(unstable_wake_req)
);
Expand Down

0 comments on commit 1b0de4f

Please sign in to comment.