Running the following code produces an index out of bounds in the Tester.
It also means the C simulation is not terminated meaning it has to be manually killed.
class MyMod extends Module {
val io = new Bundle {
val a = UInt( INPUT, 4 )
val b = UInt(OUTPUT, 4)
}
io.b := io.a
}
class MyModTests( c : MyMod ) extends Tester {
val ary = Array(1, 2, 3)
println("Cause exception = " + ary(4))
}
Running the following code produces an index out of bounds in the Tester. It also means the C simulation is not terminated meaning it has to be manually killed.