From 8d984e3e021bf8d89def1a6e5529727e0a254c65 Mon Sep 17 00:00:00 2001 From: Minyong Li <ml10g20@soton.ac.uk> Date: Mon, 23 Aug 2021 21:16:20 +0100 Subject: [PATCH] core.BaseQuarterRound: use better methods --- src/main/scala/uk/ac/soton/ecs/can/core/BaseQuarterRound.scala | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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 e855983..caeef24 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) } -- GitLab