User guide

xxv
Force and Release on SystemVerilog Variables . . . . . . . . . . 22-20
Automatic Variables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22-21
Multiple Drivers. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22-22
Release Behavior. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22-23
Integer Data Types . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22-24
Unpacked Arrays . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22-26
Structures . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22-27
Using the VPI . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22-28
SystemVerilog Operators . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22-30
New Procedural Statements . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22-31
The unique and priority Keywords in if and case Statements 22-31
The do while Statement . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22-34
SystemVerilog Processes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22-35
The always_comb Block . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22-35
The always_latch Block . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22-38
The always_ff Block . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22-38
The final Block . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22-39
Tasks and Functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22-39
Tasks . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22-40
Functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22-41
Passing Arguments by Setting Defaults. . . . . . . . . . . . . . . . . 22-44
SystemVerilog Packages. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22-46
Exporting Time Consuming User-Defined Tasks with the
SystemVerilog DPI. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22-50
Hierarchy . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22-54