- #1

- 49

- 0

## Homework Statement

Hi, it's me again.

Now I am going to design a 4-bit magnitude comparator using just ONE 4-bit adder and infinitely large number of gates (AND, OR, NOT, NAND, NOR, XOR, XNOR) for

__signed numbers (negative binary).__

## Homework Equations

A > B => A

_{3}barB

_{3}+ A

_{2}barB

_{2}x

_{3}+ A

_{1}barB

_{1}x

_{3}x

_{2}+ A

_{0}barB

_{0}x

_{3}x

_{2}x

_{1}

similar for A < B and A = B.

## The Attempt at a Solution

This is my attempt. Frankly, this is my first time encountering problems related to comparator design because this is never said to be in the syllabus of the course (introductory course). I find this in a past paper... seemingly indicating that the instructor wants us to divide and conquer it within the 3 hours of exam.

I do this all by resources on the internet. So there may be a lot of mistakes.