Hi,
I want to cast chisel's Bool var to Scala's Boolean type;
Its motivation is that conditional branch (Scala's if-statement) in tester2 to conditionally assign value by referencing from chisel code;
if (dut.io.ack == true) {
dut.io.DatIn.poke(1234.U)
} else {
dut.io.DatIn.poke(4321.U)
}
for example. the if-statement is Scala(Java)'s grammar, so it can fail the execution, and inside of the if-statement should be a type supported by Scala, I think.
To casting correctly, is there method or something approach?
Best,
S.Takano