sequential logic diagram