User guide
24-127
SystemVerilog Testbench Constructs
Syntax
break;
A break statement can be executed from within an rs_code_block
within a production definition. When a break statement is executed,
the randsequence block terminates immediately and control is
passed to the first line of code after the randsequence block. The
following is an example of a production definition using a break
statement.
return Statement
The return statement is used to interrupt the execution of the current
production. After the current production is aborted, the execution
continues on the next item in the production from which the call is
made.
Syntax
return;
The return statement passes control to the next production item in
the production from which the call is made without executing any
code in between. The following is an example of a production
definition using a return statement: