Circuit Realization of XOR function with Three inputs

Click For Summary

Discussion Overview

The discussion revolves around developing a circuit realization of the XOR function with three inputs, specifically focusing on logic design principles. Participants explore different methods to achieve this, including Boolean expressions and K-maps, while addressing challenges encountered in the process.

Discussion Character

  • Homework-related
  • Exploratory
  • Technical explanation

Main Points Raised

  • One participant expresses uncertainty about how to derive the XOR function for three inputs, mentioning their familiarity with NAND and NOR functions but not XOR.
  • Another participant suggests starting with a K-map for the XOR function and converting it into a Sum of Products (SOP) representation using 2-input gates.
  • A different participant acknowledges their lack of experience with K-maps and indicates they will attempt to work it out later.
  • One participant shares their progress, noting difficulties in grouping 1's in the K-map to obtain a minimized expression.
  • A later reply reveals that a participant was able to derive the correct Boolean expression from the truth table and successfully tested it in LogiSim after some reflection.

Areas of Agreement / Disagreement

Participants do not reach a consensus on the method for solving the problem initially, with various approaches being proposed and explored. However, one participant eventually finds a solution independently.

Contextual Notes

Some participants express uncertainty about K-map techniques and the application of Boolean laws, indicating a need for clarification on these topics. The discussion includes attempts at different methods without resolving all uncertainties related to the XOR function's realization.

Who May Find This Useful

Students studying logic design, particularly those preparing for exams involving circuit realizations and Boolean algebra.

Na0s
Messages
3
Reaction score
0

Homework Statement


This is from a past exam paper for logic design in my course. I have an exam coming up and would love to know how to solve this one.
[/B]
Develop a circuit realization of the XOR function with three inputs. You may use AND, OR and NOT-gates with not more than two inputs.

Either draw the circuit or (for simplicity) write down the exact equivelant Boolean Expression with correctly positioned parenthesis

Homework Equations


DeMorgans Law...I think...

The Attempt at a Solution


I have not really gotten anywhere with this one.
NAND and NOR functions with three inputs worked out fine for me, but not this one.

For DeMorgans you have to:
  1. Change all variables to their complements.
  2. Change all AND operations to ORs.
  3. Change all OR operations to ANDs.
  4. Take the complement of the entire expression.
So how does this one work with XOR?
(A xor B xor C) = (A'B + AB') AND C - this seems off..
I am not even sure if I am moving in the right direction. If anyone could lay out the steps in how to do this one I would appreciate it.
 
Physics news on Phys.org
Na0s said:

Homework Statement


This is from a past exam paper for logic design in my course. I have an exam coming up and would love to know how to solve this one.
[/B]
Develop a circuit realization of the XOR function with three inputs. You may use AND, OR and NOT-gates with not more than two inputs.

Either draw the circuit or (for simplicity) write down the exact equivelant Boolean Expression with correctly positioned parenthesis

Homework Equations


DeMorgans Law...I think...

The Attempt at a Solution


I have not really gotten anywhere with this one.
NAND and NOR functions with three inputs worked out fine for me, but not this one.

For DeMorgans you have to:
  1. Change all variables to their complements.
  2. Change all AND operations to ORs.
  3. Change all OR operations to ANDs.
  4. Take the complement of the entire expression.
So how does this one work with XOR?
(A xor B xor C) = (A'B + AB') AND C - this seems off..
I am not even sure if I am moving in the right direction. If anyone could lay out the steps in how to do this one I would appreciate it.
Welcome to the PF.

I would start with a K-map of the XOR function of 3 inputs, and then use a SOP representation to convert the K-map into the equivalent circuit using 2-input gates. Can you give that a try and show us your work?
 
Let me give it a go. I am currently in the process of learning K maps so I am still not familiar with how to do them properly.
I will get back to you when I have tried working it out.

Have to head out for a while so I can't do it right now. Thanks =]
 
I have added an image to show what I have currently done. What I am struggling with is the Kmap.
I see that you are supposed to group 1's together to get a minimised expression. SSOP.
Even for SOP, how do I actually get that from this map?
79d475885a2edf31e13023946ae318df.png
 
Now I feel silly looking at this.

So I was close to the answer already but kept moving off in completely the wrong direction most of the time. So what I did was just, got the SOP minterms from the truth table. Applied the associative law on the boolean expression. And that gave me the answer I was looking for. Tested it out in LogiSim and it works just great. Thanks for the help, I clearly didnt get enough sleep yesterday. But after some rest I took another look and solved it.

150907e72fde7ba2ab1f0daff73fa38e.png
 

Similar threads

Replies
4
Views
6K
  • · Replies 3 ·
Replies
3
Views
28K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 7 ·
Replies
7
Views
2K
Replies
10
Views
3K
  • · Replies 12 ·
Replies
12
Views
3K
  • · Replies 2 ·
Replies
2
Views
3K
Replies
6
Views
2K
  • · Replies 1 ·
Replies
1
Views
7K
  • · Replies 6 ·
Replies
6
Views
25K