
I am implementing the binary code to gray code using 2X1 MUX. Using MUX consumes less power which is an important factor to be considered while doing circuit design.

I have created 2X1 MUX as my subcircuit using PMOS and NMOS.The subcircuit block created is used in main binary code to gray code circuit.
Creating the subcircuit was challenging  for me .

Challenges and learning: 
1.I didnt connect the pins of component properly .
2. Understood how to edit the subcircuit. 
3.When main circuit was complete using 2X1 MUX component i was not able to convert kicad to ngspice so sumanto sir suggested no need to convert from kicad to ngspice directly use sky130.
4.Understood how to modify the parameters in netlist to get proper waveform. 
  
 
Overall for me it was a great learning  about CMOS and its behaviour.
 

Thank you for giving this opportunity.