Design a circuit that takes as input two 4-bit numbers x and y and produces a single bit in the output, such that when x = y its output is 1, and when x ≠ y its output is 0.

**Hint****: use four XNOR and one AND gate.**

This is my binary comparator, that compares two 4-bit binary numers (A and B) and outputs whether A=B, A>B or A<B.

I normaly like to build circuits in Minecraft, but for this "bigger" project I needed to use something quicker and easier.

Maybe this comes in handy for someone :-)

**Inputs (on the left):**

- Number A {**A4**, **A3**, **A2**, **A1**}

- Number B {**B4**, **B3**, **B2**, **B1**}

- **chp_enb **- chip enable ... When set to 1, enables the output

**Outputs (on the right):**

- **A=B**

- **A>B**

- **A<B**