Source: http://myweb.utaipei.edu.tw/~cyang/class/Digital_System/ch_01.pdf