User guide
xxiv
Testbench Optimization . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21-99
NTB Performance Profiler . . . . . . . . . . . . . . . . . . . . . . . . . . . 21-99
Enabling the NTB Profiler. . . . . . . . . . . . . . . . . . . . . . . . . 21-100
Performance Profiler Example . . . . . . . . . . . . . . . . . . . . . 21-100
VCS Memory Profiler . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21-105
Use Model . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21-106
UCLI Interface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21-106
CLI Interface. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21-107
Incremental Profiling . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21-107
Only Active Memory Reported . . . . . . . . . . . . . . . . . . . . . 21-108
VCS Dynamic Memory Profile Report . . . . . . . . . . . . . . . 21-108
22. SystemVerilog Design Constructs
SystemVerilog Data Types . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22-2
Variable Data Types for Storing Integers . . . . . . . . . . . . . . . . 22-2
The chandle Data Type . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22-3
User-Defined Data Types. . . . . . . . . . . . . . . . . . . . . . . . . . . . 22-5
Enumerations. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22-5
Methods for Enumerations . . . . . . . . . . . . . . . . . . . . . . . . 22-6
The $typeof System Function . . . . . . . . . . . . . . . . . . . . . . . . 22-8
Structures and Unions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22-10
Structure Expressions . . . . . . . . . . . . . . . . . . . . . . . . . . . 22-13
SystemVerilog Arrays. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22-14
Multiple Dimensions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22-15
Indexing and Slicing Arrays . . . . . . . . . . . . . . . . . . . . . . . 22-16
SystemVerilog Testbench Constructs Outside Programs . . . 22-18
Writing To Variables. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22-19