User guide
24-196
SystemVerilog Testbench Constructs
Clocking Block Events
The clocking_identifier can be used to refer to the clocking_event of
a clocking block. For example:
clocking cb1 @(posedge clk);
input #0 i1;
input negedge #2 address;
endclocking
The clocking event of the cb1 clocking block can be used to wait for
that particular event:
@(cb1);
Therefore, @(cb1) is equivalent to @(posedge clk).
Default Clocking Blocks
One clocking block can be specified as the default clocking block for
all cycle delay operations within a given module, program, or
interface.
Syntax:
default clocking clocking_identifier
or
clocking_declaration ::==
[default] clocking [clocking_identifier] clocking_event;
endclocking
clocking_identifier
Name of a clocking block.