In: Electrical Engineering
Verify the operation of a D flip-flop by providing appropriate inputs to the D, Preset, and Clear pins. Use CLOCK input to the flip-flop to function properly ( can be found under wiring in Logisim)
//If you present a diagram designed in the "Logisim app" it would be very much appreciated. Thank you
please note that the D flipflop in logisim have 'en" ( enable input) rather than preset , and the clock is effective to the flip flop only when en=1, it is different to preset actually, this is an important thing which have to considered and the clear input is active high here and as we know it is asynchoronous that is doesn't depend upon the clock.
i) simulation result when clear is active
we can see that from the above simulation result that Q=0 as clear =1
ii) simulation result when clock applied and enabled i.e en=1 and clear inactive and D=0
we can see from the simulation result above that Q=0 as D=0 when clock applied.
iii) simulation result when clock applied and enabled i.e en=1 and clear inactive and D=1.
we can see from the simulation result above that Q=1 as D=1 when clock applied.