SystemVerilog oops
SystemVerilog oops
Why SystemVerilog?
classes encapsulation
OOP
polymorphism inheritance
What is OOP?
Why system
Verilog?
C++
C++ SystemVerilog
System Verilog
• The above code sets addr and data to fixed values but
leaves crc at its default value of X.
The difference between new() and new[]
• new() function is called to construct a single object, while
the new[] operator is building an array with multiple
elements.
• new() can take arguments for setting object values, while
new[] only takes a single value for the array size.
Getting a handle on objects
• A handle can point to many objects. This is the dynamic
nature of OOP and SystemVerilog.
OBJECT DEALLOCATION