#Name: pop #Input: x1, x2 #Output: y1, y2, y3, y4 #Op: (y1,y2,y3,y4) = (pip(x1 and x2), pip(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="y3", type="out") GATE (name="y4", type="out") GATE (name="g1", type="pip") GATE (name="g2", type="pip") WIRE ("x1", "g1/x1") WIRE ("x2", "g1/x2") WIRE ("x1", "g2/x1") WIRE ("x2", "g2/x2") WIRE ("g1/y1", "y1") WIRE ("g1/y2", "y2") WIRE ("g2/y1", "y3") WIRE ("g2/y2", "y4")