# POO: # Simple test cell: # Input: x1, x2, x3 # Output: y1, y2 # y1, y2 = (nand(x1,x2) , nor(x2,x3)) GATE (name="x1", type="inp") GATE (name="x2", type="inp") GATE (name="x3", type="inp") GATE (name="y1", type="out") GATE (name="y2", type="out") GATE (name="g1", type="nand2") GATE (name="g2", type="nor2") WIRE ("x1", "g1/x1") WIRE ("x2", "g1/x2") WIRE ("x2", "g2/x1") WIRE ("x3", "g2/x2") WIRE ("g1/y", "y1") WIRE ("g2/y", "y2")