maxRegWidth method

int maxRegWidth()

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

Implementation

int maxRegWidth() {
  var maxWidth = 0;
  for (final reg in registers) {
    if (reg.width > maxWidth) {
      maxWidth = reg.width;
    }
  }
  return maxWidth;
}