ID:10895 VHDL error at <location>: unable to truncate the bit string literal "<name>" to get the specified length

CAUSE: You specified a bit string literal with a desired length in the VHDL Design File (.vhd). However, the bit string literal needs more bits that the length you specified, and truncating it to get the desired length would result in loss of information. As a result, the Quartus Prime software is unable to truncate the bit string literal. The rules of truncating bit string literals are as follows:
  • For a bit string literal that doesn't have any sign specification or that is declared as unsigned, all the characters removed during truncation should be 0s. For example, 8UO"377" and 8O"377" are legal, but 8UO"477" is illegal.
  • For a signed bit string literal, all the leading characters removed during truncation should be the same and should be equal to the left-most character in the remaining bit string. For example, 7SX"XXF" is legal, but 4SX"XXF" and 3SX"XXF" are illegal.

ACTION: Increase the desired length of the bit string literal such that adjusting the length does not result in loss of information. You can also change the bit string such that it can fit in the specified number of bits.