logiclab LIVE ENGINE

DIGITAL COMPONENTS

Digital comparator.

Compare two n-bit numbers A and B — unsigned or signed (two's complement). Type a decimal value or toggle bits directly, and watch which relation — A>B, A=B, or A<B — lights up, along with the simplified Boolean logic and gate circuit behind each one.

Comparator

Choose a bit-width and signedness, then type a decimal value or toggle A and B's bits directly. The relation that currently holds is highlighted in the Boolean logic section below.

A > B

BASIC GATES

A = B

BASIC GATES

A < B

BASIC GATES