You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
s_valid is bound to s_apb4_wr_hdshk, s_apb4_addr, and s_done, but they are not reset/set simultaneously. Due to the delay of s_done relative to s_apb4_wr_hdshk and s_apb4_addr, there is a situation where s_done may be low when s_apb4_wr_hdshk and s_apb4_addr are high, resulting in the clk_int_even_div_simple not being set. It is suggested to directly remove the binding with s_done.
s_pwm_cnt_q belongs to the slow clock domain s_tc_clk, while s_ov_irq_trg belongs to the fast clock domain apb4.pclk. They do not belong to the same clock domain. Therefore, after reading and clearing the interrupt register, it is possible to be set again due to the same interrupt. It is recommended to use edge detection instead of level detection.
Issues to be Fixed
s_valid
is bound tos_apb4_wr_hdshk
,s_apb4_addr
, ands_done
, but they are not reset/set simultaneously. Due to the delay ofs_done
relative tos_apb4_wr_hdshk
ands_apb4_addr
, there is a situation wheres_done
may be low whens_apb4_wr_hdshk
ands_apb4_addr
are high, resulting in theclk_int_even_div_simple
not being set. It is suggested to directly remove the binding withs_done
.pwm/rtl/apb4_pwm.sv
Lines 82 to 91 in aa21b3c
s_pwm_cnt_q
belongs to the slow clock domains_tc_clk
, whiles_ov_irq_trg
belongs to the fast clock domainapb4.pclk
. They do not belong to the same clock domain. Therefore, after reading and clearing the interrupt register, it is possible to be set again due to the same interrupt. It is recommended to use edge detection instead of level detection.pwm/rtl/apb4_pwm.sv
Lines 107 to 113 in aa21b3c
pwm/rtl/apb4_pwm.sv
Lines 171 to 179 in aa21b3c
pwm/rtl/apb4_pwm.sv
Lines 186 to 188 in aa21b3c
Recommendations for Improvement
It is suggested to use the
apb4.pslverr
signal to ensure conditions are met, rather than just commenting.pwm/rtl/apb4_pwm.sv
Line 165 in aa21b3c
There are some duplicate signals, similar to Some Improvement Suggestions archinfo#1.
pwm/rtl/apb4_pwm.sv
Lines 115 to 123 in aa21b3c
The text was updated successfully, but these errors were encountered: