CMOS inverter consists of one PMOS and one NMOS. The PMOS is responsible for charging and NMOS is responsible for discharging. The working of CMOS inverter is when the input is high the output will be low and when input is low the output will be high.