Error on unsized literal constants: Too many digits for 32 bit number #1397
Labels
resolution: no fix needed
Closed; no fix required (not a bug)
type: feature-IEEE
Request to add new feature, described in IEEE 1800
Author Name: Greg Taylor
Original Redmine Issue: 1397 from https://www.veripool.org
Verilator throws an error on unsized literal constants larger than 32-bits, e.g. 'hFFFFFFFFFFFFFFFF.
I cannot find in IEEE Std 1800-2017 where there is an artificial cap of 32-bits. On page 73 there is some language regarding it, but it simply states the number will be at least 32-bits:
"The number of bits that make up an unsized number (which is a simple decimal number or a number with a base specifier but no size specification) shall be at least 32. Unsized unsigned literal constants where the high-order bit is unknown (X or x) or three-state (Z or z) shall be extended to the size of the expression containing the literal constant.
NOTE—In IEEE Std 1364-1995, in unsized literal constants where the high-order bit is unknown or three-state, the x or z was only extended to 32 bits."
I'm using Verilator 4.010.
The text was updated successfully, but these errors were encountered: