0
\$\begingroup\$

This [Circuit A] is allowed in Digital:

enter image description here

This [Circuit B] is also allowed:

enter image description here

Until I turn off one of the inputs:

enter image description here

This [Circuit C] causes a different error, depending on whether the input is on or off.

When it is off - I get an error about oscillation:

enter image description here

When the input is on - I get an error about a short circuit:

enter image description here

My questions are:

  1. Is [Circuit A] actually valid, i.e., would it not lead to a short circuit in real life? Or is Digital incorrectly not detecting this as error?

  2. Is [Circuit B] valid (i.e. no short circuit) as long as the inputs are both on or off?

  3. It's clear to me that [Circuit C] is invalid, but I wonder if Digital points out the correct consequences in the error messages. Would the circuit really oscillate when the input is off, and short when the input is on? And if so - why the difference in behavior?

\$\endgroup\$

1 Answer 1

3
\$\begingroup\$

No, none of the circuits are valid.

You can't connect two or more outputs together.

There is a problem if one output is logic '1' and the other output is logic '0'. The result is arbitrary or invalid.

(Exceptions apply. In some scenarios such a case could be defined what it is and thus valid. Like wired-and / wired-or circuits).

So you can't think something is on or off, because for many people on means something is actively happening and off means nothing is happening so it is irrelevant.

In this case, logic state '0' is as just as strong output than logic state '1', and you can't have a logic state 'half' by connecting logic '0' and logic '1' outputs together.

\$\endgroup\$
2
  • \$\begingroup\$ Thanks! Can I connect multiple outputs if all except one are in Hi-Z at any given moment? If so - is it something actually done in real circuits, or just theoretical? \$\endgroup\$
    – obe
    Commented Mar 17 at 9:38
  • 1
    \$\begingroup\$ @obe Of course in that case you can. That's one of the exceptions. Thats how buses work (or at least worked when they were shared medium). Up to one active driver at any given time while others are passive. \$\endgroup\$
    – Justme
    Commented Mar 17 at 9:43

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.