Posts: 298
Threads: 35
Joined: Jan 1970
I'm almost 100% sure you can't. The XOR function can't tell the difference between '1,1' and '0,0' at it's inputs. Inverting the inputs/output in whatever combination makes a new gate with an XOR or XNOR function.
You can of course make and AND function from the following:
A AND B = NOT(A) NOR NOT(B)
This is not as silly as it seems as in transistor logic a NOR gate can be smaller/faster than an AND gate (which is made from an NAND gate followed by an inverter).
Please feel free to correct me on any of the above if I have made an error.
Posts: 78
Threads: 6
Joined: Jan 1970
Tal,
What are you up to now ???????????
Joe
Posts: 241
Threads: 29
Joined: Jan 2008
If you were to bu trying to build an AND function from XOR gates, then it is indeed possible.
Imagine an XOR gate with one input held in a logic 1 state. The gate then acts as an inverter. Similarly, if the input is held low it acts as a non-inverting buffer.
Using an additional 2 diodes, and a resistor allows you to "wire-AND" the outputs of two buffers, and then buffer the output.
Depending on the nature of the surrounding logic, you could even dispense with the XOR gates :-)