Skip to content

Commit ab5452c

Browse files
committed
[adc_ctrl,dv] Fix path in call to DV_ASSERT_CTRL
The DV_ASSERT_CTRL macro expands into an $assertoff(...) call with the hierarchy argument to choose where the assertions get turned off (or on). $assertoff() and $asserton() don't work with this style of path in all cases. The LRM only requires them to work with local or absolute paths: it doesn't allow up-references. VCS *does* allow them (which is why the code was written like this), but Xcelium doesn't. There are nice ways to do this cleanly, but they are rather more effort than just shoving the absolute path of the dut into the file here. Something to clean up when we come back to this module, I think! Signed-off-by: Rupert Swarbrick <[email protected]>
1 parent 2afafd5 commit ab5452c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

hw/ip/adc_ctrl/dv/sva/adc_ctrl_sva_if.sv

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,6 @@ interface adc_ctrl_sva_if
118118
`DV_ASSERT_CTRL("PwrupTime_A_CTRL", PwrupTime_A)
119119
`DV_ASSERT_CTRL("WakeupTime_A_CTRL", WakeupTime_A)
120120
`DV_ASSERT_CTRL("EnterLowPower_A_CTRL", EnterLowPower_A)
121-
`DV_ASSERT_CTRL("ADC_CTRL_FSM_A_CTRL", dut.u_adc_ctrl_core.u_adc_ctrl_fsm)
121+
`DV_ASSERT_CTRL("ADC_CTRL_FSM_A_CTRL", tb.dut.u_adc_ctrl_core.u_adc_ctrl_fsm)
122122

123123
endinterface : adc_ctrl_sva_if

0 commit comments

Comments
 (0)