Data Types 1682830998
Data Types 1682830998
DATA TYPES
System Verilog
Data Types
Introduction
TWO-STATE
FOUR-STATE Conclusion
NON-INTEGER TYPES
Data Types
TWO-STATE
byte: An 8-bit data type that can store integer values between 0 and 255.
reg: A reg is a data type that can model a storage element or a state.
They need to be driven by an always block and cannot be driven by a
continuous assignment statement. Reg can be used to model both
sequential and combinational logic
enum: This is used to define a list of named values that can be used as
constants in the code.
typedef: This is used to define a new data type based on an existing data
type. The new data type can be used anywhere the original data type
could be used.
union: This is similar to a struct, but only one member can be active at a
time.
enum example
typedef example
struct example union example
Conclusion
Explored data types in SystemVerilog for 2-state and 4-state data
Thank you