Electrical – Logisim full adder output unknown

adderdigital-logic

So I was implementing a 16-bit square root function using this algorithm.

The components contains several 8-bit multipliers and 16-bit comparators, with gates addressing the cycle mechanism mentioned in the algorithm. Here's the highest level schematic:

All ARGs are exactly the same (The first one looks a bit large, but still the same):

On the top right is a 16-bit comparator, nothing wrong with it. The error is in the lower left 8-bit multiplier.

As you can see, one of the output wire is red, indicating some errors.

It turns out that it was from one of the full adder in the 8-bit multiplier, as such:

1.

2.

3.

How come the output of that particular Full Adder becomes blue(unkown)?

After I investigate that full adder, all its wires are blue, which makes little sense to me, since its inputs aren't unknown at all!

Here is the circuit file.

Best Answer

I've noticed a similar bug in the past when working with logisim. Try saving the file, closing it, and reopening it. That should solve the problem with the misbehaving full adder.

Related Topic