could you please clarify what is first argument( 0 in the following assertion) to the $assertoff
$assertoff (0, top_tb.cpu_rtl_1)
could you please clarify what is first argument( 0 in the following assertion) to the $assertoff
$assertoff (0, top_tb.cpu_rtl_1)
In reply to srbeeram:
From 1800’2017
20.12 Assertion control system tasks
assert_control_task ::=
assert_task [ ( levels [ , list_of_scopes_or_assertions ] ) ] ;
| ... ;
assert_task ::= $asserton | $assertoff | $assertkill
levels: This argument specifies the levels of hierarchy, consistent with the corresponding
argument to the $dumpvars system task (see 21.7.1.2). If this argument is not specified, it defaults to 0. This argument shall be an integer expression.
...
When invoked with no arguments, $dumpvars dumps all the variables in the model to the VCD file. When the $dumpvars task is specified with arguments, the first argument indicates how many levels of the hierarchy below each specified module instance to dump to the VCD file. Subsequent arguments specify which scopes of the model to dump to the VCD file. These arguments can specify entire modules or individual variables within a module.
Setting the first argument to 0 causes a dump of all variables in the specified module and in all module instances below the specified module. The argument 0 applies only to subsequent arguments that specify module instances, and not to individual variables.
Example 1:
$dumpvars (1, top);
Because the first argument is a 1, this invocation dumps all variables within the module top; it does not dump variables in any of the modules instantiated by module top.
Ben Cohen
http://www.systemverilog.us/ ben@systemverilog.us
For training, consulting, services: contact Home - My cvcblr
In reply to ben@SystemVerilog.us:
thanks ben for providing the clarifications.