Skip to content
Digital logic (gates / K-map / truth table) templates

Physics — Logic: T flip-flop

A toggle flip-flop built from AND and NOR gates.

Template previewDigital logic (gates / K-map / truth table)
T flip-flop (gate level)TCLKG1G2G3G4QQbarEvaluated: 2 inputs, 2 outputs, 4 rows. 3 things are probably not what was meant.`G3` is a NOR with one wire into it, from `G1`. A one-input NOR is an inverter, and the figure still draws the two-i…`G4` is a NOR with one wire into it, from `G2`. A one-input NOR is an inverter, and the figure still draws the two-i…`Q` and `Qbar` compute the same function — they agree in all 4 rows. Two outputs named as complements that are the s…Q = ¬(T · CLK)Qbar = ¬(T · CLK)

Make it your own.

title "T flip-flop (gate level)"
type gates
input T at (0,0)
input CLK at (0,2)
gate AND G1 at (3,0)
gate AND G2 at (3,2)
gate NOR G3 at (6,0.5)
gate NOR G4 at (6,2.5)
output Q at (9,0.5)
output Qbar at (9,2.5)
wire T G1
wire T G2
wire CLK G1
wire CLK G2
wire G1 G3
wire G2 G4
wire G3 Q
wire G4 Qbar