I am trying to understand the diagram for register write operation in MIPS(Single Cycle Data Path). I do not get why do we need to AND the output of the decoder to the write enable signal? I am not getting how would it enable the specific register. Please help me out with it.

Thanks.
I am trying to understand the diagram for register write operation in MIPS(Single Cycle
Share
There are several inconsistencies in the diagram. The “n-to-2^n” decoder should have
ninputs and2^noutputs. With such a decoder, the number of registers should be2^n.The decoder inputs specify the address (i.e. the register) to be written to. For any of the
2^npossible register numbers, the corresponding output of the decoder will be set to1, with all other outputs set to0.The “write” signal is probably driven off a clock.
The purpose of the
ANDgates is to make the “write” signal propagate to the correct register (just the one!) The register is chosen by the address fed into the decoder, as described above.The selected register will latch onto the “register data”, most probably on the rising edge of the clock. All the remaining registers will keep their present values, since their
Cinputs will remain at0throughout.