70 likes | 185 Vues
This experiment involves designing a 2-bit comparator circuit using basic logic ICs including NOR, AND, Inverter, and OR gates. The circuit will compare two 2-bit binary numbers, A and B, through a series of conditions: equal (A = B), greater (A > B), and less (A < B). The functionality is verified through LED indicators that light up based on the comparison results. The process entails checking the lower bits first followed by the higher bits to determine the output state. A hands-on demo enables verification of the circuit's performance with selected values of A and B.
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.