Skip to content
Snippets Groups Projects
Verified Commit 8d984e3e authored by Minyong Li's avatar Minyong Li :speech_balloon:
Browse files

core.BaseQuarterRound: use better methods

parent d80a482c
No related branches found
No related tags found
No related merge requests found
...@@ -9,6 +9,5 @@ abstract class BaseQuarterRound extends MultiIOModule { ...@@ -9,6 +9,5 @@ abstract class BaseQuarterRound extends MultiIOModule {
val in = IO(Input(Vec(4, UInt(32.W)))) val in = IO(Input(Vec(4, UInt(32.W))))
val out = IO(Output(Vec(4, UInt(32.W)))) val out = IO(Output(Vec(4, UInt(32.W))))
protected def rotateLeft(v: UInt, b: Int): UInt = protected def rotateLeft(v: UInt, b: Int): UInt = v.tail(b) ## v.head(b)
v(31 - b, 0) ## v(31, 32 - b)
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment