diff options
| author | Palmer Dabbelt | 2015-10-23 13:20:00 -0700 |
|---|---|---|
| committer | Palmer Dabbelt | 2015-10-23 13:20:00 -0700 |
| commit | da7162921544ca6265ee837b811f1eafb9b47208 (patch) | |
| tree | 627d85a99298c431dc638095000c2df096a2eac6 /src/test/scala/chiselTests/Tbl.scala | |
| parent | 6ce580969d1cefcdff18aa8ab6610b1c89c57739 (diff) | |
| parent | 233875001af47b0c7773872f8bd76f1e53ef9e83 (diff) | |
Merge pull request #31 from ucb-bar/scalastyle-tests
Whitespace scalastyle fixes for tests
Diffstat (limited to 'src/test/scala/chiselTests/Tbl.scala')
| -rw-r--r-- | src/test/scala/chiselTests/Tbl.scala | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/test/scala/chiselTests/Tbl.scala b/src/test/scala/chiselTests/Tbl.scala index 4add985e..072f993f 100644 --- a/src/test/scala/chiselTests/Tbl.scala +++ b/src/test/scala/chiselTests/Tbl.scala @@ -1,3 +1,5 @@ +// See LICENSE for license details. + package chiselTests import Chisel._ @@ -15,7 +17,7 @@ class Tbl(w: Int, n: Int) extends Module { } val m = Mem(UInt(width = w), n) io.o := m(io.ri) - when (io.we) { + when (io.we) { m(io.wi) := io.d when(io.ri === io.wi) { io.o := io.d } } @@ -41,7 +43,7 @@ class TblSpec extends ChiselPropSpec { property("All table reads should return the previous write") { forAll(safeUIntPairN(8)) { case(w: Int, pairs: List[(Int, Int)]) => val (idxs, values) = pairs.unzip - assert(execute{ new TblTester(w, 1 << w, idxs, values) }) + assert(execute{ new TblTester(w, 1 << w, idxs, values) }) } } } |
