In logical gates - can I combine signals without a gate?

In summary: Usually it is a matter of luck that it ever worked. In summary, combining outputs of logic gates is not good practice, as it can lead to unpredictable results and can cause issues in the circuit. It is better to use extra gates to achieve a predictable result. Some technologies, such as CMOS, may allow for combining outputs, but it is not recommended. In later stages of your education or in your own projects, you may consider using a wired-OR or wired-AND gate, but it is not necessary and should be avoided in general.
Engineering news on Phys.org
  • #2
And what exactly should that do?

E.g. what if (A & B) is high and (B & C) is high?
Or one is high and the other is low?
 
  • #3
There are two answers to your question.
Firstly, it's not good practice to 'break the rules' of logic circuitry. That's the correct answer for 'the student'.
Secondly, when you combine outputs for some logic technologies, you can sometimes produce an OR or an AND function (depending on which family you are using). If you try to combine outputs from CMOS, for example, the two outputs will 'fight each other' and either produce a non-logic level or some smoke.

People have been known to use diodes to combine some families of gates safely('diode logic') but stuff is so cheap these days that it's just not worth messing about. You may as well do it 'properly' and get a predictable result with a few extra gates..
 
  • #4
Hi FP :smile:
I think you will be able to answer your own question, if
you think of it this way.
When the outputs of your upper gate and lower gates
are equal, then the combined output can be predicted.
However, if the output of your upper gate is a logical high
(e.g. 3v) and the output of your lower gate is
logic low (0V), what would your combined output be?
Would the 3v be pulled down to Ov?
Would the 0v be pulled up to 3v? Would you have something
in between or ??
 
Last edited:
  • #5
CompuChip- that's exactly what I'm trying to figure out. If I knew the answer I wouldn't have asked :)

Sophie - I do wish to follow the students rules, since I am one. So I wanted to know if I am allowed or not at all to do it. I don't recall studying about CMOS, though.

Quab- I don't know how to relate voltages to signals right now. We only worked with A B C and D...

Er, I fear you guys are a bit ahead of me..I do knOw finding outputs of logical gates via numberless functions..
 
  • #6
You might be able to do that with open collector outputs that share a common load. Normal gates cannot have their outputs paralleled because the result would depend on which could supply the most current or sink the most current.

A better way with standard gates is to take the output of the top gate and feed it into the input marked "B" on the lower gate.

This would give you a legal 3 input AND gate with the bottom gate being the only output.
 
  • #7
Femme_physics said:
Sophie - I do wish to follow the students rules, since I am one. So I wanted to know if I am allowed or not at all to do it. I don't recall studying about CMOS, though.

Definitely not! The schematic you drew doesn't specify the nuts and bolts of the logic so stick to the rules and avoid going wrong.
Such misbehaviour is the equivalent trying to calculate 2+or - 2 = ?

When you go on to build your own stuff you will take liberties, no doubt - but no one will be marking the results!
 
  • #8
Femme_physics said:
Quab- I don't know how to relate voltages to signals right now. We only worked with A B C and D...
That's okay, if you are only working with logic theory so far, then I would say, no, it is not allowed to combine outputs the way you described. :smile: (good question)
I was just trying to let you come to the same conclusion. If these two gates
were inside a computer and wired up as you suggest, when the gate outputs differ (one hi=1, other low=0) then it will put both a 1 and 0 onto the bus (conductive lines between components), simultaneously. The result is unpredictable, so this configuration should not be used.
 
Last edited:
  • #9
Femme_physics said:
CompuChip- that's exactly what I'm trying to figure out. If I knew the answer I wouldn't have asked :)

Well, that is my point exactly.
If there is no obvious answer, then you will have set a convention or definition, or whatever you want to call it. And wherever there is a convention, there will be people using an opposite convention, and confusion arises.

In this case, I would say the intuitive choices are:
(1)
high + high ==> high
high + low ==> low
low + low ==> low

or

(2)
high + high = high
high + low = high
low + low = low

If you make choice (1), you are basically saying that every "implicit" connection is actually an AND gate, and you can just as well draw one so everyone knows what you means (or you could leave out all the AND gates in your drawing, so that everyone gets confused).
And if you made choice (2), you can read the previous sentence again with AND replaced with OR.
 
  • #10
can I combine signals without a gate?
The short answer is NO!
A more detailed answer is DEFINITELY NOT!
But when you are a final year student, working on your own project and with a good understanding of the electronics that lies behind those cute gate symbols, you might consider doing so. But you'd better have a good reason to justify it!

BTW, such an arrangement has a name, it is called a wired-OR gate, or a wired-AND gate, depending on the function it performs.

But, realistically, you will never need to use it. Best to forget about it. :smile:
 
  • #11
Logic circuits are essentially non linear because they only deal in discrete levels of signal (e.g. 0 and 1). To 'combine' them must involve something other than a pair of resistors or just a wire connection, which would give you results like
0+0=0
1+0=1
1+1=2
1+0=1

Because currents add Arithmetically. You don't want regular arithmetic - you want Logic functions with just 1 or 0 for an answer. Wires don't achieve this.
When a 'wired OR' happens to work, there is a lucky form of logic design that just happens to allow it.
BAD practice, as a rule. You can end up with a 'perhaps' gate.
 
  • #12
The logic diagram does not permit it, period.

The various ways to get away with it using actual circuits have been described, but these would belong on an electrical schematic, not a logic diagram.

For example, if you tie two open-collector outputs in a circuit, you have created an additional logic gate in the logic diagram.

So no, it can't be done.
 
  • #13
Thanks for the clear cut answer, guys, I shan't do it then :)
 
  • #15
Yep. A signal can start flipped.
There's no rule against it.
 

Related to In logical gates - can I combine signals without a gate?

1. Can I combine signals without using a gate?

No, you cannot combine signals without using a gate. Logical gates are essential components in digital circuits that are responsible for processing and combining signals. Without gates, it would not be possible to manipulate or combine signals in a logical manner.

2. What happens if I attempt to combine signals without a gate?

If you attempt to combine signals without a gate, the resulting output will be unpredictable or incorrect. Gates are designed to perform specific logical operations, and without them, the signals would not be processed correctly.

3. Are there any alternatives to using a gate for combining signals?

Yes, there are alternative methods for combining signals, such as using transistors or diodes. However, these components essentially act as logic gates and are still necessary for proper signal processing and combining.

4. Can I use different types of gates to combine signals?

Yes, you can use different types of gates to combine signals. Each type of gate has a specific function, such as AND, OR, and NOT, and can be used together in a circuit to perform more complex logical operations.

5. Is there a limit to how many signals can be combined with a gate?

The number of signals that can be combined with a gate depends on the type of gate and the complexity of the circuit. Some gates can only combine two signals, while others can combine multiple signals. However, as the number of signals increases, the circuit can become more complex and may require additional gates to process the signals accurately.

Similar threads

  • Electrical Engineering
Replies
12
Views
1K
  • Electrical Engineering
Replies
10
Views
1K
Replies
16
Views
4K
Replies
25
Views
5K
Replies
8
Views
890
Replies
18
Views
5K
  • Electrical Engineering
Replies
5
Views
3K
Replies
9
Views
2K
  • Electrical Engineering
Replies
8
Views
7K
Replies
4
Views
900
Back
Top