The document discusses the difference between D-latches and D flip-flops (DFFs) as memory cells used in computer chips. D-latches store input data (D) while the clock signal is high, but the output (Q) maintains its previous value when the clock is low. DFFs update the output only on the rising edge of the clock signal. While D-latches are simpler, DFFs can be constructed using two D-latches, making DFFs a basic memory cell that synchronizes output to a clock. Timing diagrams and truth tables are provided to illustrate the differences between D-latches and DFFs.
The document discusses the difference between D-latches and D flip-flops (DFFs) as memory cells used in computer chips. D-latches store input data (D) while the clock signal is high, but the output (Q) maintains its previous value when the clock is low. DFFs update the output only on the rising edge of the clock signal. While D-latches are simpler, DFFs can be constructed using two D-latches, making DFFs a basic memory cell that synchronizes output to a clock. Timing diagrams and truth tables are provided to illustrate the differences between D-latches and DFFs.
The document discusses the difference between D-latches and D flip-flops (DFFs) as memory cells used in computer chips. D-latches store input data (D) while the clock signal is high, but the output (Q) maintains its previous value when the clock is low. DFFs update the output only on the rising edge of the clock signal. While D-latches are simpler, DFFs can be constructed using two D-latches, making DFFs a basic memory cell that synchronizes output to a clock. Timing diagrams and truth tables are provided to illustrate the differences between D-latches and DFFs.
ALU performs many calculations based on the data we input.
When we change the
input data, the output will suddenly change. The data doesn’t persist in our chip. We can store this data in a chip by the use of a transistor (a simple memory cell). Computer memory is made from arrays of cells, each of which is capable of storing a single bit, a one or a zero (Nisan, 2005). The purpose of the memory is to store the input value, update and retrieve the stored value. The difference between DFF and D-Latch There are two common types of memory cells used in the chip to store data. They are D-Latch and D flip-flop. The D-Latch is more basic than the D flip-flop. The logical diagram of the D-Latch The D-latch is a level triggering device. When the clock pin is high (1), data (D) controls the (Q). When the clock pin is low (0), the (Q) pin maintains the previous values even if D changes. The truth table for D-latch The D flip-flop (DFF) is constructed based on a D-latch. The purpose of DFF is the same with D-latch. So, DFF is also known as edge-triggered latches. The DFF also has D, Clock, and Q. It is different from the D-latch because DFF updates its value within rising edge, transitioning from low to high (Tranoff, 2007). D can only control Q in this short time. The truth table for DFF The difference between DFF and D-latch can be seen by simulating both cells with the same resources. Timing diagram for D-latch Timing diagram for DFF Can one chip be used for constructing the other? DFF can be constructed by using two D-latches. Because the Flip flop can be considered as a basic memory cell so that it stores the value on the data line with the advantage of the output being synchronized to a clock. The construction of DFF using two D-latches is as follows.
References Tarnoff, D. (2007). Computer organization and design fundamentals. http://faculty.etsu.edu/tarnoff/138292/ Nisan, N., & Schocken, S. (2005). The elements of computing systems. MIT Press. http://f.javier.io/rep/books/The%20Elements%20of%20Computing%20Systems.pdf