Lattice Grid Buy a licence

The grid (core) ยท console.warn

signed: false needs a bitWidth to render a two's-complement pattern; defaulting to 32

Printed by The grid (core), prefixed [lattice], since 1.0.1.

Warnings referenceradix:unsigned:width

Identifier
radix:unsigned:width
Raised by
The grid (core)
Since
1.0.1

What happened

signed: false renders a negative number as the bit pattern it would have in a fixed-width register, and without a width there is nothing to complement against. Rather than silently re-signing the value, the formatter picks the commonest width - 32 bits - so a negative number renders as a 32-bit pattern.

The fix

State the bitWidth you mean.

The smallest fix

radix: { radix: 16, signed: false, bitWidth: 16 }

Reference

Covered in full at the API reference.