Commit 4c01e8ee by Benjamin Tu Committed by Thierry Moreau

syntax fix (#3765)

parent e9782030
......@@ -33,7 +33,7 @@ class TestMatrixVectorMultiplication(c: MatrixVectorMultiplication) extends Peek
* This is a software function that computes dot product with a programmable shift
* This is used as a reference for the hardware
*/
def mvm_ref(inp: Array[Int], wgt: Array[Array[Int]], shift: Int) : Array[Int] = {
def mvmRef(inp: Array[Int], wgt: Array[Array[Int]], shift: Int) : Array[Int] = {
val size = inp.length
val res = Array.fill(size) {0}
for (i <- 0 until size) {
......@@ -53,7 +53,7 @@ class TestMatrixVectorMultiplication(c: MatrixVectorMultiplication) extends Peek
val wgtGen = new RandomArray(c.size, c.wgtBits)
val in_a = inpGen.any
val in_b = Array.fill(c.size) { wgtGen.any }
val res = mvm_ref(in_a, in_b, 0)
val res = mvmRef(in_a, in_b, 0)
val inpMask = helper.getMask(c.inpBits)
val wgtMask = helper.getMask(c.wgtBits)
val accMask = helper.getMask(c.accBits)
......
Markdown is supported
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