Concatenation Operator (:)

The concatenation operator concatenates the bits from its two operands.

Example

INT a WIDTH 8, b WIDTH 4 := 0b1001, c WIDTH 4 := 0b0010;

// Concatenate b with c.
a := b:c;                    // a = 0b10010010

// If the user uses constant values then the width of the constant is taken
// as the minimum width (at least 1 bit)
a := 0:c:0xf;
// a = 0b000101111;
a := 0:0:1:3;
// a = 0x00111;
// The bit width can be forced using the ranges
a := 0[1..0]:c:0xf[2..0];    // a = 0b000010111