Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[VTA][Chisel] Scala Style Fix #3765

Merged
merged 1 commit into from
Aug 13, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions vta/hardware/chisel/src/test/scala/unittest/MvmTest.scala
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand All @@ -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)
Expand Down