Is it possible to print UInt and SInt values in CHISEL?
I have the code below inside a Module.
val foo = 0.S(2.W)
var min : SInt = -2.S
println(s"DEEEEBUG Values of foo: $foo min: ${min.toString()}")
min= min + 1.S
println(s"min: ${min.toString()}")
But the last line does not print the correct value of min. This is the output
DEEEEBUG Values of foo: SInt<2>(0) max: SInt<2>(-2)
min: SInt<2>(OpResult in TwoLevelBpred)
How do I print the value of min after the addition?