USERDEFINED DATATYPES

SystemVerilog makes a significant extension to the Verilog language by allowing users to define new net and variable types. User-defined types allow modeling complex designs at a more abstract level that is still accurate and synthesizable. Using SystemVerilog s user-defined types, more design functionality can be modeled in fewer lines of code, with the added advantage of making the code more self-documenting and easier to read.

Systemverilog allows different ways to define user defined datatypes. They are

  • Typedef
  • Enumarations
  • Struct
  • Union
  • class