有三部电机A,B,C,只有在电机A工作时,电机B才工作,电机C只有在电机B工作时才工作,否则发出报警信号
Alarm = ( (not A) and B) or ( (not B ) and C )
与非门 实现 非门
NOT A = A NAND 1
与非门 实现 与门
A and B = (A NAND B ) NAND 1
与非门 实现 或门
A or B = (NOT A ) NAND (NOT B ) = ( A NAND 1 ) NAND (B NAND 1 )
Alarm = ((not A) and B) or ( (not B ) and C )
= ((A NAND 1) NAND B ) NAND 1 or ((B NAND 1) NAND C ) NAND 1
=( (((A NAND 1) NAND B ) NAND 1) NAND 1 ) NAND ( (((B NAND 1) NAND C ) NAND 1) NAND 1 )
= (A NAND 1) NAND B ) NAND ((B NAND 1) NAND C )
http://blog.eetop.cn/?fromuid=1008998