Ensures that the value of a specified expression is in a specified range.
|
Parameters:
severity_level
width
min
max
property_type
msg
coverage_level
|
Class:
single-cycle assertion
|
assert_range
[#(severity_level, width, min, max, property_type, msg, coverage_level )]
instance_name (clk, reset_n, test_expr );
The assert_range
assertion checker checks the expression test_expr at each rising edge of clk to verify the expression falls in the range from min to max, inclusive. The assertion fails if test_expr < min or max < test_expr.
The checker is useful for ensuring certain control structure values (such as counters and finite-state machine values) are within their proper ranges. The checker is also useful for ensuring datapath variables and expressions are in legal ranges.
|
cover_test_expr_change
|
Expression changed value.
|
|
cover_test_expr_at_min
|
Expression evaluated to min.
|
|
cover_test_expr_at_max
|
Expression evaluated to max.
|
The parameters min and max must be specified such that min is less than or equal to max. Otherwise, the assertion fails on each tested clock cycle.
assert_always, assert_implication, assert_never, assert_proposition
Ensures that (sel_high - sel_low
) is in the range 2 to 5 at each rising edge of clk.
© Accellera Organization, Inc. 2005 All Rights Reserved. |
Standard OVL V1.1a |