Designing an XOR Gate from NOR Gates: Truth Tables and Boolean Algebra

  • Thread starter AdkinsJr
  • Start date
  • Tags
    Gate
In summary: I'm really struggling to understand how to get from here to there.In summary, the XOR gate can be derived from the NOR gate by replacing the ANDs in the top line with their equivalent NOR gates.
  • #1
AdkinsJr
150
0

Homework Statement


Use truth tables for a NOR gate to design an XOR gate.

I'm trying to understand how to design simple gates using boolean algebra and I'm getting nowhere. An example I'm working on is a XOR gate built from NOR gates, I already know how to wire it to a breadboard and it works, but I don't understand how to derive the configuration (I attached a diagram). Topics that come up are boolean algebra and Karnaugh maps which are supposed to help, but I can't seem to get instructors or other students to explain it to me how to use this kind of math to actually design a logic circuit.

I attached the XOR diagram as well as truth tables, Karnaugh Map, and the corresponding representation of the function in boolean algebra.

The XOR gate has 5 NOR gates wired as shown of course I just looked it up, but there is no way I would ever be able to come up with that configuration myself. Any tips or advice? Where do you even start?
 

Attachments

  • xor-gate.png
    xor-gate.png
    13.2 KB · Views: 5,000
  • truthtabl.PNG
    truthtabl.PNG
    4.9 KB · Views: 960
Physics news on Phys.org
  • #2
For something as simple as an XOR gate, just think about what it IS. It represents a mildly complex Boolean statement, which in words is "one or the other but not both" or more in gate-like terms, "(A and not B) or (B and not A)". Now break that down. Take the first term. A and not B. Since you can trivially simply wire a NOR gate to give you an inverse, that part is taken care of and basically need to make an AND gate out of NOR gates. Can you figure out how to do that on your own? Then take the other half and do the same kind of thing.

Now, that brute force approach won't always give you the SIMPLEST circuit, but it will give you one that works and learning how to get that far is the first step. As with so many kinds of problems, just break it down and do it little by little.
 
  • Like
Likes berkeman
  • #3
phinds has helpfully reminded you of the XOR function: A⊕B = A• ̚ B + ̚ A•B

But De Morgan shows how to implement the AND function using the OR function: A•B = ̚ ( ̚ A + ̚ B)

So you can replace each of the ANDs in the top line with its equivalent NOR

Any inverters needed can be formed also using any inverting gate, e.g., a NOR
 
  • #4
Before assembling the AND gate from NOR gates let me see if I can make the XOR gate more intuitively..

I can take the first term and get the "not B" by wiring the inputs of the NOR gate together, so the truth table just becomes an inverter for that chunk. ...then I have to "AND" the output of the inverter with "A." So now I have AB*...I can do the same thing then to get the A*B term... and then "or" the outputs AB* and A*B to finally get my function XOR = AB*+A*B...

I think the diagram I attached of this is correct, I used NOR, AND and OR gates...
 

Attachments

  • norgatedesign2.png
    norgatedesign2.png
    15.6 KB · Views: 778
  • #5
Yes, that's okay as far as it goes.
 

1. How is an XOR gate created using NOR gates?

An XOR (Exclusive OR) gate can be created by combining two NOR gates in a specific configuration. The output of one NOR gate is connected to the input of the other NOR gate, and the output of the second NOR gate is connected to the input of the first NOR gate. This creates a feedback loop that produces the XOR logic function.

2. What is the truth table for an XOR gate made from NOR gates?

The truth table for an XOR gate made from NOR gates is the same as the truth table for a standard XOR gate. The output is 1 (true) only when one of the inputs is 1, and the output is 0 (false) when both inputs are the same.

3. How does an XOR gate made from NOR gates differ from a standard XOR gate?

In terms of functionality, an XOR gate made from NOR gates is no different from a standard XOR gate. However, the internal circuitry and the number of components used may differ. An XOR gate made from NOR gates uses four NOR gates, while a standard XOR gate can be created using only two transistors.

4. What are the advantages of using an XOR gate made from NOR gates?

An XOR gate made from NOR gates can be advantageous in terms of circuit design and cost. NOR gates are easier to fabricate and require fewer components compared to other logic gates. Using NOR gates to create an XOR gate can also reduce the overall complexity of a circuit.

5. Are there any limitations to using an XOR gate made from NOR gates?

One potential limitation of using an XOR gate made from NOR gates is that it may have slower propagation delay compared to other XOR gate designs. This means that the output of the gate may take longer to stabilize after a change in the input. However, with advancements in technology, this limitation can be minimized.

Similar threads

  • Engineering and Comp Sci Homework Help
Replies
10
Views
3K
  • Engineering and Comp Sci Homework Help
Replies
4
Views
3K
  • Engineering and Comp Sci Homework Help
Replies
7
Views
6K
  • Engineering and Comp Sci Homework Help
Replies
2
Views
1K
  • Engineering and Comp Sci Homework Help
Replies
4
Views
26K
  • Engineering and Comp Sci Homework Help
Replies
4
Views
992
  • Engineering and Comp Sci Homework Help
Replies
6
Views
16K
  • Engineering and Comp Sci Homework Help
Replies
6
Views
24K
  • Engineering and Comp Sci Homework Help
Replies
1
Views
1K
  • Engineering and Comp Sci Homework Help
Replies
1
Views
5K
Back
Top