Is it possible to implement an XOR gate using only NOR gates?

In summary: There's a video of someone implementing it as well.In summary, Kel says that he has tried combining NOR gates and can't see how to make the circuit behave like an XOR gate/port. He also says that using only NOR gates can work, but he's not sure about NOR gates. He asks for help.
  • #1
kel
62
0

Homework Statement



Part 1 - give the truth table for an XOR port
part 2 - implement the results (from part 1) using only NOR ports

Homework Equations





The Attempt at a Solution



So far I have tried combining NOR gates and have even used single input NOR gates (effectively turning them into NOT gates), but I whatever combination I use I can't see how to make the circuit behave like an XOR gate/port.

I always end up with 2 signals going into a final NOR gate that could be 0&0, 0&1, 1&0 or 1&1, but by definition I thought that an XOR will only have a '1' signal if and only if we have 0&1 OR 1&0 - Which is not the same as a NOR gate. So I can't see how using only NOR gates can work.It would be easy to make the XOR using NOT and AND gates, but I'm not so sure about NOR gates.

Can anyone suggest something? a hint would be appreciated

Thanks
Kel
 
Physics news on Phys.org
  • #2
So did you make the truth table?
With NOR (or NAND) you can make all the other gates.

The XOR gate with logical operators: pq + pq, where p and q are the inputs and underline means negation. So what you need to construct from the NORs are the NOT gate (which you said you've done) AND and OR (NOT NOR).
 
  • #3
Päällikkö said:
... The XOR gate with logical operators: pq + pq, ...

I assume the + is the AND operation? What logical operation is implied between p and q and their inverted signals in this equation?
 
  • #4
andrevdh said:
I assume the + is the AND operation? What logical operation is implied between p and q and their inverted signals in this equation?

Multiplication is AND, + is OR, I suppose that notation is rather commonly used (and doesn't require LaTeX, which would take a little longer to type).

In other notation:
[tex](p \land \lnot q) \lor (\lnot p \land q)[/tex]
 
  • #5
I have the truth table, but could you please explain how to use the NOR gate to make an AND and an OR gate.

This I think is where my difficulty lies, I can't see how to get the inputs to give me the right output so that I can make a XOR gate. But if like you say it's possible to make a NOR work like an AND or OR gate then that would make it fairly easy I should think.

Thanks again
Kel
 
  • #6
A AND B = (not A) NOR ( not B)
 
  • #7
Päällikkö said:
Multiplication is AND, + is OR, I suppose that notation is rather commonly used (and doesn't require LaTeX, which would take a little longer to type).

In other notation:
[tex](p \land \lnot q) \lor (\lnot p \land q)[/tex]

So does pq means that p and the inverted signal of q are NORed together?
 
  • #8
andrevdh said:
So does pq means that p and the inverted signal of q are NORed together?

No. They're ANDed. AND can be expressed with NORs (see Mentz114's hint).
 
  • #9
Thank you. So I guess his problem is solved, because you get OR by NOTting the NOR (which is constructed by feeding the signal to both legs of a NOR, that is building the NOT function).
 
Last edited:
  • #10
NOT is a single input NOR.
 
  • #11
Ah, so you tie the other input to ground (or does it default to ground [low] if not connected?).
 
  • #12
If we're talking hardware, connect it to [low]. Leaving it floating could have bad effects.

See the first post also where the single input NOR is mentioned.
 

1. What is an XOR gate?

An XOR gate, also known as an exclusive OR gate, is a digital logic gate that performs the logical exclusive OR operation. It takes in two binary inputs and produces a single binary output, which is true only when one of the inputs is true.

2. How does an XOR gate work?

An XOR gate works by comparing the two input signals. If one input is true and the other is false, the output will be true. However, if both inputs are true or both are false, the output will be false.

3. What is the truth table for an XOR gate?

The truth table for an XOR gate is as follows:

Input A Input B Output
0 0 0
0 1 1
1 0 1
1 1 0

4. What are the applications of XOR gates?

XOR gates are commonly used in digital circuits, especially in computer processors. They are also used in error detection and correction, encryption algorithms, and in creating parity bit circuits.

5. Can an XOR gate be used as a basic building block for other logic gates?

Yes, an XOR gate can be used as a building block for other logic gates such as the XNOR gate, which is the inverse of an XOR gate, and the half adder circuit, which is used in binary addition.

Similar threads

  • Introductory Physics Homework Help
Replies
25
Views
4K
  • Introductory Physics Homework Help
Replies
3
Views
1K
  • Introductory Physics Homework Help
Replies
12
Views
2K
  • Engineering and Comp Sci Homework Help
Replies
3
Views
1K
  • Electrical Engineering
Replies
12
Views
1K
  • Engineering and Comp Sci Homework Help
Replies
4
Views
4K
  • Introductory Physics Homework Help
Replies
17
Views
2K
  • Electrical Engineering
Replies
8
Views
7K
  • Engineering and Comp Sci Homework Help
Replies
10
Views
3K
  • Set Theory, Logic, Probability, Statistics
Replies
16
Views
1K
Back
Top