+ if (data.width() != definition.getMicroInstructionDefinition().sizeInBits())
+ throw new IllegalArgumentException(
+ String.format("Bit width of data wire does not match microinstruction memory definition. Expected: %d Actual: %d",
+ definition.getMicroInstructionDefinition().sizeInBits(), data.width()));
+ if (address.width() != definition.getMemoryAddressBits())
+ throw new IllegalArgumentException(
+ String.format("Bit width of address wire does not match microinstruction memory definition. Expected: %d Actual: %d",
+ definition.getMemoryAddressBits(), address.width()));
+