TaggedReplay<LogicType extends Logic> constructor
Creates a tagged replay payload.
Implementation
TaggedReplay(LogicType data,
{required this.tagWidth, this.reasonWidth = 1, String? name})
: super([
data,
Logic(name: 'tag', width: tagWidth),
Logic(name: 'reason', width: reasonWidth),
], name: name ?? '${data.name}_replay') {
_validatePositiveWidth(tagWidth, 'tagWidth');
_validatePositiveWidth(reasonWidth, 'reasonWidth');
}