BaseQuarterRound.scala 379 Bytes
Newer Older
Minyong Li's avatar
Minyong Li committed
1
2
3
4
5
6
7
8
9
10
11
// SPDX-FileCopyrightText: 2021 Minyong Li <ml10g20@soton.ac.uk>
// SPDX-License-Identifier: CERN-OHL-W-2.0

package uk.ac.soton.ecs.can.core

import chisel3._

abstract class BaseQuarterRound extends MultiIOModule {
  val in = IO(Input(Vec(4, UInt(32.W))))
  val out = IO(Output(Vec(4, UInt(32.W))))

12
  protected def rotateLeft(v: UInt, b: Int): UInt = v.tail(b) ## v.head(b)
Minyong Li's avatar
Minyong Li committed
13
}