The Hierarchy
Data types are categorized by their nature (Integral, Real, or Misc) and their simulation behavior (2-State vs. 4-State).
Integral
Real
Misc
Integers, Reals, and Simulation Behavior
Data types are categorized by their nature (Integral, Real, or Misc) and their simulation behavior (2-State vs. 4-State).
Simulate faster and take less memory (stores 0, 1). Ideal for testbenches and counters.
Accurately models hardware states (0, 1, X, Z). Used for RTL design and verifying resets.
| Type | Width | States | Signed? |
|---|---|---|---|
| bit | User Defined | 2-State | Unsigned |
| logic / reg | User Defined | 4-State | Unsigned |
| int | 32-bit | 2-State | Signed |
| byte | 8-bit | 2-State | Signed |
| integer | 32-bit | 4-State | Signed |