chisel: issue with combinational expression and when