ChatDiagram
Logic · Combinational

2-bit Binary Comparator

A 2-bit magnitude comparator compares A[1:0] and B[1:0] and asserts EQ (equal), GT (A > B), or LT (A < B). XNOR gates detect bit-wise equality; AND/NOT gates encode greater-than and less-than conditions from the MSB.

유형 논리 게이트 다이어그램표준 IEEE Std 91/91a-1991엔진 schematex-logic업데이트됨 2026. 5. 27.
2-bit Binary Comparator
Drawing preview
요청 내용

“Draw a two-bit binary comparator with A1, A0, B1 and B0 inputs and EQ, GT and LT outputs using XNOR, AND, NOT and OR gates.”

그렇다면Add a cascade input for larger words.Change it to a three-bit comparator.
이 도면에 담긴 내용

그 이면의 의사결정을 읽어 보세요.

01XNOR gates produce 1 when bits are equal

used by both EQ and the conditional GT/LT logic.

02MSB checked first

if A1>B1, GT=1 regardless of lower bits.

03

All intermediate signals named explicitly so gate count and critical path are traceable.

Cascade two 2-bit comparators with equality carry-in/carry-out for a 4-bit comparator.

모든 논리 게이트 다이어그램 템플릿 보기 →