Problems to prepare for the Midterm, ps
In the Bad version, an extra register is generated for oOutput. The assumption is that this is not what was desired.
In the Good version, the selection of the output value is taken out of the if statement with the clock. Note that the sensitivity list now includes more items. For potentially better simulation efficiency, the combinational logic that is determining the value for oOutput could be put in a separate process. This would reduce the need for simulating the FSM part of the process, such as the case where iX or iY changes.