Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
C
Can
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Minyong Li
Can
Commits
bb11cb2a
There was an error fetching the commit references. Please try again later.
Verified
Commit
bb11cb2a
authored
3 years ago
by
Minyong Li
Browse files
Options
Downloads
Patches
Plain Diff
core.QuarterRound: private vals
Boring change lol
parent
0c38413f
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/main/scala/uk/ac/soton/ecs/can/core/QuarterRound.scala
+14
-14
14 additions, 14 deletions
src/main/scala/uk/ac/soton/ecs/can/core/QuarterRound.scala
with
14 additions
and
14 deletions
src/main/scala/uk/ac/soton/ecs/can/core/QuarterRound.scala
+
14
−
14
View file @
bb11cb2a
...
...
@@ -12,20 +12,20 @@ class QuarterRound extends MultiIOModule {
private
def
rotateLeft
(
v
:
UInt
,
b
:
Int
)
:
UInt
=
v
(
31
-
b
,
0
)
#
#
v
(
31
,
32
-
b
)
val
a0
=
in
(
0
)
val
b0
=
in
(
1
)
val
c0
=
in
(
2
)
val
d0
=
in
(
3
)
val
a1
=
a0
+
b0
val
d1
=
rotateLeft
(
d0
^
a1
,
16
)
val
c1
=
c0
+
d1
val
b1
=
rotateLeft
(
b0
^
c1
,
12
)
val
a2
=
a1
+
b1
val
d2
=
rotateLeft
(
d1
^
a2
,
8
)
val
c2
=
c1
+
d2
val
b2
=
rotateLeft
(
b1
^
c2
,
7
)
private
val
a0
=
in
(
0
)
private
val
b0
=
in
(
1
)
private
val
c0
=
in
(
2
)
private
val
d0
=
in
(
3
)
private
val
a1
=
a0
+
b0
private
val
d1
=
rotateLeft
(
d0
^
a1
,
16
)
private
val
c1
=
c0
+
d1
private
val
b1
=
rotateLeft
(
b0
^
c1
,
12
)
private
val
a2
=
a1
+
b1
private
val
d2
=
rotateLeft
(
d1
^
a2
,
8
)
private
val
c2
=
c1
+
d2
private
val
b2
=
rotateLeft
(
b1
^
c2
,
7
)
out
(
0
)
:=
a2
out
(
1
)
:=
b2
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment