What’s the difference between a SRAM cell and a D-Latch

digital-logiclatchmemorysramtransistors

They both seem identical – they both have an "enable" and a single input. When enable is high, the value stored in the element is set to the input. Are they functionally different in any way? (I know they are implemented differently, but I want to know if there is a difference in functionality)

Best Answer

An SRAM cell is functionally equivalent to a D latch (but not to a D-type master-slave flip-flop).

As you say, the implementation details are different: An SRAM cell is typically built so that it is written and read using the same pair of wires ("bit lines") — the difference is whether or not the bit lines are being driven by the control circuitry. On the other hand, a D latch normally uses separate wires for input and output, and the "write enable" logic is built right into it.