Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Minyong Li
Can
Commits
8d984e3e
Verified
Commit
8d984e3e
authored
Aug 23, 2021
by
Minyong Li
💬
Browse files
core.BaseQuarterRound: use better methods
parent
d80a482c
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/main/scala/uk/ac/soton/ecs/can/core/BaseQuarterRound.scala
View file @
8d984e3e
...
...
@@ -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
)
}
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment