replicate method
- int multiplier
Returns a replicated signal using ReplicationOp with new width =
this.width * multiplier
The input multiplier
cannot be negative or 0; an exception will be
thrown, otherwise.
If isNet, then the result will also be a net.
Implementation
Logic replicate(int multiplier) {
if (isNet) {
// many SV simulators don't support replication of nets
return List.generate(multiplier, (i) => this).swizzle();
}
return ReplicationOp(this, multiplier).replicated;
}