call method

Logic call(
  1. Logic data, {
  2. required int blockIndex,
  3. required String name,
})

Builds the check bits for one data segment.

Implementation

Logic call(
  Logic data, {
  required int blockIndex,
  required String name,
}) {
  final result = _build(data, blockIndex: blockIndex, name: name);
  if (result.width != checkWidth) {
    throw PortWidthMismatchException(result, checkWidth);
  }
  return result;
}