NOR SWITCH USING CMOS module switchnor(out,a,b); output out; input a,b; supply1 pwr; supply0 gnd; wire w1; pmos (w1,a,pwr); pmos (out,b,w1); nmos (out,a,gnd); nmos (out,b,gnd); endmodule