module nor_gate(
    input Vin1, Vin2,
    output Vout
    );
    supply0 gnd;
    supply1 vdd;
    wire temp;
    pmos (temp, vdd, Vin1);
    pmos (Vout, temp, Vin2);
    nmos (Vout, gnd, Vin1);
    nmos (Vout, gnd, Vin2);
endmodule