The data path shown in the figure computes the number of 1s in the 32-bit input word corresponding to an unsigned even integer stored in the shift register. The unsigned counter, initially zero, is incremented if the most significant bit of the shift register is 1.
The microprogram for the control is shown in the table below with missing control words for microinstructions I1,I2,.....,In
Micro- instruction | reset_counter | shift_left | load_output |
BEGIN | 1 | 0 | 0 |
I1 | ? | ? | ? |
: | : | : | : |
In | ? | ? | ? |
END | 0 | 0 | 1 |