A general question regarding switches in CMOS. Have a look at the schematic below (symplified current mirror)
There is a input reference current, on/off switch, a PMOS mirror and the resulting output current. In literature I noticed that the switch is implemented as a PMOS, but sometimes also as a NMOS. Beside the difference in logic functionality, what are the differences? Which is prefered? Thanks in advance.