System verilog
Data types:
Data types:
bit - user defined size
byte - 8 bit signed
shortint - 16 bit signed
int - 32 bit signed
longint - 64 bit signed
logic - user defined size
Other tips n tricks:
Other tips n tricks:
Size of a design elements, $bits operator can be used in combination with concatenation operator.
Example:
$display("Port width = %0d", $bits({port1,port2,....}));