Fundamentals and applications of digital logic circuits