ucb-bar / chisel2-deprecated

chisel.eecs.berkeley.edu
387 stars 89 forks source link

C simulation left running if exception in tester #678

Closed da-steve101 closed 8 years ago

da-steve101 commented 8 years ago

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))
}
JackDavidson commented 8 years ago

just a note, this is the same issue as https://github.com/ucb-bar/chisel/issues/180