Data types
Values on a wire
- 0, 1, x (don’t care), z (tristate)
Vectors
- A[3:0] vector of 4 bits: A[3], A[2], A[1], A[0]
- An unsigned integer value
-
- Concatenating bits/vectors
- e.g. sign extend
- B[7:0] = {A[3], A[3], A[3], A[3], A[3:0]};
- B[7:0] = {4{A[3]}, A[3:0]};
- Style: Use a[7:0] = b[7:0] + c; Not a = b + c;