#Name: pip #Input: x1, x2 #Output: y1, y2 #Op: (y1,y2) = ((x1 and x2), (x1 or x2)) GATE (name="x1", type="inp") GATE (name="x2", type="inp") GATE (name="y1", type="out") GATE (name="y2", type="out") GATE (name="g1", type="and2") GATE (name="g2", type="or2") WIRE ("x1", "g1/x1") WIRE ("x2", "g1/x2") WIRE ("x1", "g2/x1") WIRE ("x2", "g2/x2") WIRE ("g1/y", "y1") WIRE ("g2/y", "y2")