70 likes | 176 Views
Logic Experiment 6. 老師:伍紹勳 助教:江長庭 鄭仲傑. BCD Adder. Equipment : IC : 7402(NOR)x 1 、 7408(AND) x 1 、 7404(Inverter)x 1 、 7432(OR) x 1 、 LED x 3. Comparator circuit. 2bits Comparator circuit Design A=B, A>B, A<B. A=B. A=A 1 A 0 & B=B 1 B 0 First, consider low bit A 0 B 0
E N D
Logic Experiment 6 老師:伍紹勳 助教:江長庭 鄭仲傑
BCD Adder Equipment: IC:7402(NOR)x 1、7408(AND) x 1、7404(Inverter)x 1、7432(OR) x 1、LED x 3
Comparator circuit 2bits Comparator circuit Design A=B, A>B, A<B
A=B A=A1A0 & B=B1B0 First, consider low bit A0 B0 If A0 =B0, LED would be light(X0=1) Result of X0 would be A XNOR B !!
A=B A=A1A0 & B=B1B0 Second, consider high bit A1B1 If A1=B1, LED would be light(X1=1) Result of X1 would be A XNOR B !!
A=B A=A1A0 & B=B1B0 Finally, If A=B X1=1 & X0=1 Result of LED would be X=X1X0
Demo A=B, A>B , A<B A>B = A<B= Choose the value of A and B, and then there is only one result of LED.