diff --git a/src/main/scala/uk/ac/soton/ecs/can/core/BaseQuarterRound.scala b/src/main/scala/uk/ac/soton/ecs/can/core/BaseQuarterRound.scala index e855983a893a15b3fbc966edc813facac204d8e3..caeef24d8460458b5fccfb6345d765e25e3741f8 100644 --- a/src/main/scala/uk/ac/soton/ecs/can/core/BaseQuarterRound.scala +++ b/src/main/scala/uk/ac/soton/ecs/can/core/BaseQuarterRound.scala @@ -9,6 +9,5 @@ abstract class BaseQuarterRound extends MultiIOModule { val in = IO(Input(Vec(4, UInt(32.W)))) val out = IO(Output(Vec(4, UInt(32.W)))) - protected def rotateLeft(v: UInt, b: Int): UInt = - v(31 - b, 0) ## v(31, 32 - b) + protected def rotateLeft(v: UInt, b: Int): UInt = v.tail(b) ## v.head(b) }