Electronic – D flip flop data extraction

computer-architecturedataflipflop

How do you get the data out of a d flip flop? On wikipedia it says that if the clock is non-rising then it ouputs Q. Isn't the clock always non-rising if it's not changing the data? If it is, then the data is constantly being output every second, even when not asked for it…

Best Answer

D flip flops are simply recording the state of something (input D) when an event happens (the rising edge of the clock), and presenting that recorded value at output Q.

Say you have a car and one of two paint cans (white or black) next to it. The car "outputs" the color it was last painted. A "painting event" is picking up that paint can and painting the car with it. The car then "outputs" the new color, until a new paint can is presented and you have a new "painting event".

You don't ask the car to output it's color, it just does. The voltage output Q of the flip flop is the same way (assuming there's power and it's functioning properly).