Question: how nmos and pmos work?
Answer: NMOS is built with n-type source and drain and a p-type substrate, while PMOS is built with p-type source and drain and a n-type substrate. In a NMOS, carriers are electrons, while in a PMOS, carriers are holes. When a high voltage is applied to the gate, NMOS will conduct, while PMOS will not.