Skip to content

Commit eaa967b

Browse files
committed
[dv,pwm] Use synchronous alert agent
To avoid incurring ping timeouts when the TL-UL clock is stopped during low power mode, ensure that the alert agent is operating on the same clock and not asynchronously. Signed-off-by: Adrian Lees <[email protected]>
1 parent d65c91a commit eaa967b

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

hw/ip/pwm/dv/env/pwm_env_cfg.sv

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,14 @@ function void pwm_env_cfg::initialize(bit [31:0] csr_base_addr = '1);
4141

4242
// only support 1 outstanding TL items in tlul_adapter
4343
m_tl_agent_cfg.max_outstanding_req = 1;
44+
45+
// Switch the alert agent to use the TL-UL clock rather than asynchronous clocking because
46+
// otherwise we shall incur ping timeouts when stopping the TL-UL clock for an extended period to
47+
// exercise low power mode.
48+
foreach(list_of_alerts[i]) begin
49+
string alert_name = list_of_alerts[i];
50+
m_alert_agent_cfgs[alert_name].is_async = 0;
51+
end
4452
endfunction
4553

4654
function int pwm_env_cfg::get_clk_core_freq();

0 commit comments

Comments
 (0)