tell me the basic difference btn basic latch (not gated latch) && flip flop and explain with logic
Latches and flip-flops are the basic elements for storing information.One latch or flip-flop can store one bit of information.
Main difference as follows:--
latch-- outputs are constantly affected by their inputs as long as the enable signal is asserted or we can say that when they are enabled, their content changes immediately when input changes.
Flip-flops-- output is changed only on the falling or rising edge of enable signal.This enable signal is usually the controlling clock signal.After the rising or falling edge of the clock,the flip flop content remains constant even if the input changes.