Xorer.scala 280 Bytes
Newer Older
Minyong Li's avatar
Minyong Li committed
1
2
3
4
5
6
7
8
9
10
11
package uk.ac.soton.ecs.can.core

import chisel3._

class Xorer extends MultiIOModule {
  val lhs = IO(Input(Vec(16, UInt(32.W))))
  val rhs = IO(Input(Vec(16, UInt(32.W))))
  val out = IO(Output(Vec(16, UInt(32.W))))

  out := lhs.zip(rhs).map { case (lhs, rhs) => lhs ^ rhs }
}