zeroExtend method

  1. @override
Logic zeroExtend(
  1. int newWidth
)
override

Returns a Logic with width newWidth where new bits added are zeros as the most significant bits.

The newWidth must be greater than or equal to the current width or an exception will be thrown. When newWidth equals the current width, this returns the original signal (same object identity).

If isNet, then the result will also be a net.

Implementation

@override
Logic zeroExtend(int newWidth) => packed.zeroExtend(newWidth);