Ensures that the value of a specified expression is TRUE when a sampling event undergoes a specified transition.
assert_always_on_edge
[#(severity_level, edge_type, property_type, msg, coverage_level )]
instance_name (clk, reset_n, sampling_event, test_expr );
The assert_always_on_edge
assertion checker checks the single-bit expression sampling_event for a particular type of transition. If the specified transition of the sampling event occurs, the single-bit expression test_expr is evaluated at the rising edge of clk to verify the expression does not evaluate to FALSE.
The edge_type parameter determines which type of transition of sampling_event initiates the check:
‘OVL_POSEDGE performs the check if sampling_event transitions from FALSE to TRUE.
‘OVL_NEGEDGE performs the check if sampling_event transitions from TRUE to FALSE.
‘OVL_ANYEDGE performs the check if sampling_event transitions from TRUE to FALSE or from FALSE to TRUE.
‘OVL_NOEDGE always initiates the check. This is the default value of edge_type. In this case, sampling_event is never sampled and the checker has the same functionality as assert_always
.
The checker is a variant of assert_always
, with the added capability of qualifying the assertion with a sampling event transition. This checker is useful when events are identified by their transition in addition to their logical state.
|
ASSERT_ALWAYS_ON_EDGE
|
Expression evaluated to FALSE when the sampling event transitioned as specified by edge_type.
|
none
assert_always, assert_implication, assert_never, assert_proposition
Ensures that (state == ‘IDLE)
is TRUE at each rising edge of clk
when req
transitions from FALSE to TRUE.
Ensures that (state == ‘IDLE)
is TRUE at each rising edge of clk
when req
transitions from TRUE to FALSE or from FALSE to TRUE.
Ensures that (!req || (state == ‘IDLE))
is TRUE at each rising edge of clk
.
© Accellera Organization, Inc. 2005 All Rights Reserved. |
Standard OVL V1.1a |