Administrator approval is now required for registering new accounts. If you are registering a new account, and are external to the University, please ask the repository owner to contact ServiceLine to request your account be approved. Repository owners must include the newly registered email address, and specific repository in the request for approval.

The University Git service will be offline on Wednesday December 1st 2021, between 08:00am - 09:00am to complete a required scheduled change. Please ensure that you do not make any changes or commits to your projects/repositories during this time as these changes may be lost.

Verified Commit 8d984e3e authored by Minyong Li's avatar Minyong Li 💬
Browse files

core.BaseQuarterRound: use better methods

parent d80a482c
......@@ -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)
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment