https://notesforioeengineers.blogspot.com/2021/05/digital-logic.html