What is Latches in Computer Architecture?


A latch is a device with particularly two stable states and these states are high-output and low-output. A latch has a feedback direction, to maintain the data. Latches can be memory devices and can save one bit of information. It is used to “latch onto” data and save it in the required area. One of the most generally used latches is the SR latch.

SR Latch

An SR latch is an asynchronous device. An SR latch does not rely upon control signals but relies only on the state of the S and R inputs. An SR latch can be generated by interlinking two NOR gates with a cross-feedback loop. SR latches can also be constructed by interlinking NAND gates but the inputs are exchanged and contradict.

A simple SR latch circuit is demonstrated in the diagram, where the inputs S and R define ’set’ and ’reset’. The present output of a latch is based on the state of the latch. Therefore, the output at nth instant defined as Qn is based on output at (n−1)th instant defined by Qn-1.

The table demonstrates the truth table for the SR latch.

SRQn$\overline{Q_{n}}$
1010
0101
1100
00Qn-1$\overline{Q_{n}-1}$

A similar SR latch can be constructed using NAND gates. The diagram shows how an SR latch can be generated using the NAND gate.

The table demonstrates the truth table for an SR latch that is generated using a NAND gate.

$\overline{S}$$\overline{R}$Qn$\overline{Q_{n}}$
0110
1001
0011
11Qn-1$\overline{Q_{n}-1}$

Updated on: 22-Jul-2021

4K+ Views

Kickstart Your Career

Get certified by completing the course

Get Started
Advertisements