proc SCHEMATIC_spice_example1 {} {
make nmos -name M0 -origin {40 110}
make pmos -name M1 -origin {40 -40}
make input -name in -origin {-260 30}
make output -name out -origin {280 30}
make global -orient RXY -name vdd -origin {40 -100}
make global -name gnd -origin {40 170}
make global -name gnd -origin {240 170}
make resistor -orient R90 -name R2 -resistance 10k -origin {160 30}
make name_net -name n1 -origin {90 30}
make name_net -name n0 -origin {-130 30}
make resistor -orient R90 -name R0 -resistance 100k -origin {-30 40}
make resistor -orient R90 -name R1 -resistance 50k -origin {-200 30}
make capacitor -name C0 -capacitance 1p -origin {240 100}
  make_wire -20 -40 -100 -40
  make_wire -100 110 -20 110
  make_wire 40 -100 40 -80
  make_wire 40 150 40 170
  make_wire -70 40 -100 40
  make_wire 10 40 40 40
  make_wire -100 -40 -100 30
  make_wire -240 30 -260 30
  make_wire 40 0 40 30
  make_wire 240 30 200 30
  make_wire 240 30 280 30
  make_wire 90 30 40 30
  make_wire 90 30 120 30
  make_wire -160 30 -130 30
  make_wire -130 30 -100 30
  make_wire -100 30 -100 40
  make_wire -100 40 -100 110
  make_wire 40 30 40 40
  make_wire 40 40 40 70
  make_wire 240 140 240 170
  make_wire 240 30 240 60
}

