I was wondering whether there are any fundamental differences between using the Mux statement vs. using the when-otherwise statement?
For example:
when(read){
dataReg := inValue
}.otherwise{
dataReg := 0.U
}
Or
dataReg := Mux (read, inValue, 0.U)
Should there be any preferences for one of them?