diff options
| author | Jim Lawson | 2016-01-05 14:18:50 -0800 |
|---|---|---|
| committer | Jim Lawson | 2016-01-05 14:18:50 -0800 |
| commit | 3fb693ea5209c402ca944086713684fa53e8c34c (patch) | |
| tree | 5ecacd4722b3e5931491569d17dc4ccb00814200 /src/test/scala/chiselTests/Module.scala | |
| parent | a98dab0c5726434c2aaa457787ef32c380c5556d (diff) | |
Scalastyle fixes - whitespace or comments only.
Diffstat (limited to 'src/test/scala/chiselTests/Module.scala')
| -rw-r--r-- | src/test/scala/chiselTests/Module.scala | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/test/scala/chiselTests/Module.scala b/src/test/scala/chiselTests/Module.scala index 4191eea7..27fd5125 100644 --- a/src/test/scala/chiselTests/Module.scala +++ b/src/test/scala/chiselTests/Module.scala @@ -21,7 +21,7 @@ class ModuleVec(val n: Int) extends Module { val pluses = Vec.fill(n){ Module(new PlusOne).io } for (i <- 0 until n) { pluses(i).in := io.ins(i) - io.outs(i) := pluses(i).out + io.outs(i) := pluses(i).out } } @@ -29,10 +29,10 @@ class ModuleVec(val n: Int) extends Module { class ModuleVecTester(c: ModuleVec) extends Tester(c) { for (t <- 0 until 16) { val test_ins = Array.fill(c.n){ rnd.nextInt(256) } - for (i <- 0 until c.n) + for (i <- 0 until c.n) poke(c.io.ins(i), test_ins(i)) step(1) - for (i <- 0 until c.n) + for (i <- 0 until c.n) expect(c.io.outs(i), test_ins(i) + 1) } } @@ -42,7 +42,7 @@ class ModuleWire extends Module { val io = new SimpleIO val inc = Wire(Module(new PlusOne).io) inc.in := io.in - io.out := inc.out + io.out := inc.out } /* @@ -61,27 +61,27 @@ class ModuleWhen extends Module { val s = new SimpleIO val en = Bool() } - when(io.en) { + when(io.en) { val inc = Module(new PlusOne).io inc.in := io.s.in - io.s.out := inc.out + io.s.out := inc.out } otherwise { io.s.out := io.s.in } } class ModuleSpec extends ChiselPropSpec { - + property("ModuleVec should elaborate") { elaborate { new ModuleVec(2) } } ignore("ModuleVecTester should return the correct result") { } - + property("ModuleWire should elaborate") { elaborate { new ModuleWire } } ignore("ModuleWireTester should return the correct result") { } - + property("ModuleWhen should elaborate") { elaborate { new ModuleWhen } } |
