RotateRight constructor
Constructs a Module to perform rotation to the right.
Conditionally rotates by different amounts based on the value of
rotateAmount
. The maxAmount
is the largest value for which this
rotation should support, which could be greater than the width
of rotateAmount
.
If no maxAmount
is provided, it will default to the width
of
original
. The maxAmount
will be not be larger than what could be
represented by the maximum value of rotateAmount
.
Implementation
RotateRight(Logic original, Logic rotateAmount,
{super.maxAmount,
super.name,
super.reserveName,
super.reserveDefinitionName,
String? definitionName})
: super(
definitionName: definitionName ?? 'RotateRight_W${original.width}',
RotateDirection.right,
original,
rotateAmount);