LShift constructor

LShift(
  1. Logic in_,
  2. dynamic shiftAmount, {
  3. String name = 'lshift',
})

Calculates the value of in_ shifted left by shiftAmount.

shiftAmount can be either a Logic or a constant be processable by LogicValue.of.

Implementation

LShift(Logic in_, dynamic shiftAmount, {String name = 'lshift'})
    : super((a, shamt) => a << shamt, '<<', in_, shiftAmount,
          name: name, outputSvWidthExpansion: true);