D-FLIP FLOP

A D flip-flop is a sequential logic device that stores a binary input (0 or 1) and passes it to…