Skip to content

Commit

Permalink
Fix use of bare Bundle in MemPokeSpec.
Browse files Browse the repository at this point in the history
Now that Bundle is an abstract class (chipsalliance/chisel#774), replace
a bare Bundle with a concrete one.
  • Loading branch information
ucbjrl committed Feb 22, 2018
1 parent 95aa980 commit fb06345
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/test/scala/chisel3/iotesters/MemPokeSpec.scala
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@ import org.scalatest.prop.Checkers

class InnerMemModule extends Module {
//noinspection TypeAnnotation
val io = IO(new Bundle)
val io = IO(new Bundle {
val in = Input(Bool())
})
val nelly = Mem(1024, UInt(32.W))
}

Expand All @@ -21,6 +23,7 @@ class OuterMemModule extends Module {
})
val billy = Mem(1024, UInt(32.W))
val inner = Module(new InnerMemModule)
inner.io.in := false.B

io.readData := billy(io.readAddress)
}
Expand Down

0 comments on commit fb06345

Please sign in to comment.