Logic — SR latch (NAND)
Cross-coupled NAND SR latch.
Make it your own.
title "SR latch (NAND)"
type gates
input S at (0,0)
input R at (0,3)
gate NAND G1 at (3,0.7)
gate NAND G2 at (3,2.3)
output Q at (6,0.7)
output Qbar at (6,2.3)
wire S G1
wire R G2
wire G1 Q
wire G2 Qbar