public RTLExpression inferBitWidth(Architecture arch, int expectedBitWidth)
throws TypeInferenceException {
if (getBitWidth() != expectedBitWidth) {
assert getBitWidth() > 0 : "Bitwidth <= 0!";
throw new TypeInferenceException("Expected " + this + " to be " + expectedBitWidth + " bit, got " + getBitWidth());
} else {
return this;
}
}