Lauren P.

asked • 03/07/24

Create a 5-bit signed comparator

In Cirsim below, create a 5-bit signed comparator. The inputs are two 5-bit bus inputs A and B. The outputs are three single-bit outputs: G, L, and E. The output G is true if A>B. the output E is true if A=B, and the output L is true if A<B. Note that this is a signed comparison, not an unsigned comparison. The rule to determining the result will be different than it would be for an unsigned comparison.

Below you will see three tabs: main, sub, and adder. You are free to use the tabs if you wish but are not required to. However, it is likely going to be much easier to solve this problem using the tabs than not.


There are 3 tabs: adder, sub, and main. It is in cirsim and you can use the following gates to solve the problem:

0 block, 1 block, IN pin, OUT pin, AND gate, NAND gate, OR gate, NOR gate, XOR gate, Inverter, button, LED, CLK, Bus input, Bus output, Fm Bus, To bus. you can also use the adder and subtractor component box once it is manually made in the adder and sub tab.

I am looking for a diagram (3 different diagrams) drawing this out

1 Expert Answer

By:

Oliver A. answered • 06/05/24

Tutor
New to Wyzant

Computer science expert with 5+ years of experience

Still looking for help? Get the right answer, fast.

Ask a question for free

Get a free answer to a quick problem.
Most questions answered within 4 hours.

OR

Find an Online Tutor Now

Choose an expert and meet online. No packages or subscriptions, pay only for the time you need.