Verified Commit 453d1bdb authored by Minyong Li's avatar Minyong Li 💬
Browse files

core.QuarterRound: replace Cat w/ ## opr

parent 6614839f
...@@ -4,7 +4,6 @@ ...@@ -4,7 +4,6 @@
package uk.ac.soton.ecs.can.core package uk.ac.soton.ecs.can.core
import chisel3._ import chisel3._
import chisel3.util._
class QuarterRound extends Module { class QuarterRound extends Module {
val io = IO(new Bundle { val io = IO(new Bundle {
...@@ -13,7 +12,7 @@ class QuarterRound extends Module { ...@@ -13,7 +12,7 @@ class QuarterRound extends Module {
}) })
private def rotateLeft(v: UInt, b: Int): UInt = private def rotateLeft(v: UInt, b: Int): UInt =
Cat(v(31 - b, 0), v(31, 32 - b)) v(31 - b, 0) ## v(31, 32 - b)
val a0 = io.in(0) val a0 = io.in(0)
val b0 = io.in(1) val b0 = io.in(1)
......
Supports Markdown
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