Larger gates can be used for a whole building, such as a castle or fortified town, or the actual doors that block entry through the gatehouse.
In ancient and medieval times, gatehouses of cities and castles were heavily defended and fortified to prevent breaching of the gates. Often the gate would consist of several pairs of doors and iron grates along a tunnel through the gatehouse. The top of the tunnel commonly had murder holes to allow defenders to attack invaders trying to breach the inner doors. Drawbridges were common in conjuction with gates to facilitate passing the moat; moats were often used to increase the effective height of the walls.
See also: City gate, Triumphal arch, Torii
Depending on technology, a 2-input nand or nor gate requires 4 or 6 transistors.
An edge-triggered D-type flip-flop is usually considered equivalent to 6 gates, more if it has clock enable and reset functionality.
See also: logic gate.