maxRegWidth method

  1. @override
int maxRegWidth()

Method to determine the maximum register size. This is important for interface data width validation.

Implementation

@override
int maxRegWidth() {
  var maxWidth = 0;
  for (final block in blocks) {
    if (block.maxRegWidth() > maxWidth) {
      maxWidth = block.maxRegWidth();
    }
  }
  return maxWidth;
}