CIRCUIT RSLatch2
ELEMENT OutputPin
 int id 0
 int x 204
 int y 132
 int width 36
 int height 24
 int trpos 1
 String name "L"
 int bits 1
 int watch 1
 String orient "RIGHT"
END
ELEMENT WireEnd
 int id 3
 int x 156
 int y 84
 int width 6
 int height 6
 String put "output"
 ref attach 24
 ref wire 33
END
ELEMENT WireEnd
 int id 4
 int x 108
 int y 132
 int width 6
 int height 6
 String put "input0"
 ref attach 17
 ref wire 28
END
ELEMENT InputPin
 int id 5
 int x 144
 int y 12
 int width 60
 int height 24
 String name "Stopper"
 int bits 1
 int watch 0
 String orient "RIGHT"
END
ELEMENT Stop
 int id 7
 int x 228
 int y 12
 int width 24
 int height 24
END
ELEMENT WireEnd
 int id 9
 int x 204
 int y 144
 int width 6
 int height 6
 String put "input"
 ref attach 0
 ref wire 39
END
ELEMENT InputPin
 int id 10
 int x 24
 int y 144
 int width 36
 int height 24
 int trpos 2
 String name "S"
 int bits 1
 int watch 1
 String orient "RIGHT"
END
ELEMENT WireEnd
 int id 11
 int x 156
 int y 144
 int width 6
 int height 6
 String put "output"
 ref attach 17
 ref wire 39
END
ELEMENT WireEnd
 int id 14
 int x 108
 int y 72
 int width 6
 int height 6
 String put "input0"
 ref attach 24
 ref wire 22
END
ELEMENT NorGate
 int id 17
 int x 108
 int y 132
 int width 48
 int height 24
 int bits 1
 int numInputs 2
 String orientation "right"
 int delay 5
END
ELEMENT WireEnd
 int id 18
 int x 228
 int y 24
 int width 6
 int height 6
 String put "input0"
 ref attach 7
 ref wire 35
END
ELEMENT WireEnd
 int id 19
 int x 108
 int y 96
 int width 6
 int height 6
 String put "input1"
 ref attach 24
 ref wire 38
END
ELEMENT WireEnd
 int id 21
 int x 108
 int y 156
 int width 6
 int height 6
 String put "input1"
 ref attach 17
 ref wire 27
END
ELEMENT WireEnd
 int id 22
 int x 60
 int y 72
 int width 6
 int height 6
 String put "output"
 ref attach 23
 ref wire 14
END
ELEMENT InputPin
 int id 23
 int x 24
 int y 60
 int width 36
 int height 24
 int trpos 3
 String name "R"
 int bits 1
 int watch 1
 String orient "RIGHT"
END
ELEMENT NorGate
 int id 24
 int x 108
 int y 72
 int width 48
 int height 24
 int bits 1
 int numInputs 2
 String orientation "right"
 int delay 5
END
ELEMENT SigGen
 int id 25
 int x 12
 int y 12
 int width 108
 int height 24
 String signals " R 1 for 10\n    0 for 50\n    1 for 50\n    0 for 50\n    0 for 50\n    0 for 50\n    0 for 50\n    0 for 50\n    0\nend\n\nS   0 for 10\n    0 for 50\n    0 for 50\n    0 for 50\n    0 for 50\n    0 for 50\n    1 for 50\n    0 for 50\n    0\nend\n\nStopper\n    0 for 600\n    1 \nend\n"
END
ELEMENT WireEnd
 int id 27
 int x 60
 int y 156
 int width 6
 int height 6
 String put "output"
 ref attach 10
 ref wire 21
END
ELEMENT WireEnd
 int id 28
 int x 108
 int y 120
 int width 6
 int height 6
 ref wire 4
 ref wire 34
END
ELEMENT WireEnd
 int id 29
 int x 168
 int y 120
 int width 6
 int height 6
 ref wire 38
 ref wire 39
END
ELEMENT OutputPin
 int id 30
 int x 204
 int y 72
 int width 36
 int height 24
 int trpos 4
 String name "Q"
 int bits 1
 int watch 1
 String orient "RIGHT"
END
ELEMENT WireEnd
 int id 32
 int x 204
 int y 84
 int width 6
 int height 6
 String put "input"
 ref attach 30
 ref wire 33
END
ELEMENT WireEnd
 int id 33
 int x 168
 int y 84
 int width 6
 int height 6
 ref wire 34
 ref wire 3
 ref wire 32
END
ELEMENT WireEnd
 int id 34
 int x 168
 int y 108
 int width 6
 int height 6
 ref wire 33
 ref wire 28
END
ELEMENT WireEnd
 int id 35
 int x 204
 int y 24
 int width 6
 int height 6
 String put "output"
 ref attach 5
 ref wire 18
END
ELEMENT WireEnd
 int id 38
 int x 108
 int y 108
 int width 6
 int height 6
 ref wire 19
 ref wire 29
END
ELEMENT WireEnd
 int id 39
 int x 168
 int y 144
 int width 6
 int height 6
 ref wire 11
 ref wire 29
 ref wire 9
END
ENDCIRCUIT
