Saturday, 2025-07-05, 0:14 AM |
|
|
Welcome Guest RSS |
Statistics |
|
|
Warezy Sponsors |  |
News topics |
Programming
[8]
Coding, Source-code, Tutorial, Problem Solving and more
|
Hardware
[5]
Hardware Info, Troubleshooting, Price, Performance and more
|
History
[4]
More Abou History... you must read here
|
Computer Tips
[1]
Computer Tipz
|
Internet
[1]
Internet news, tools, media, software and problem solving
|
Windows
[8]
Windows Tutorials
|
Mobile
[1]
Mobile trick, tips, tutorial, troubleshooting, hacking
|
News
[1]
News every day
|
Bloging
[0]
|
Newest
[0]
for every thing new posting
|
Games
[0]
Games sources
|
Business
[1]
Business
|
Hobby
[0]
|
Journey
[0]
|
Making Money
[0]
Making money online or offline
|
Troubleshooting
[0]
|
|
|
|

Main » 2009 » January » 8 » BOOLEAN LOGIC GATES - Part 5
BOOLEAN LOGIC GATES - Part 5 | 11:47 AM |
5.0 THE EXCLUSIVE GATES
=======================================
The final 2 gates remaining are the XOR (eXclusive OR) and
XNOR (eXclusive NOR) gates. Here they are.
5.1 THE XOR GATE
=======================================
The logic behind this gate is that if either A or B is equal
to 1 but not both then the output is equal to 1, here is its
truth table.
A B | Q
-------+------
0 0 | 0
0 1 | 1
1 0 | 1
1 1 | 0
The gate is constructed as follows.
(A & ~B) | (~A & B)
(0 & ~0) | (~0 & 0) = 0
(0 & ~1) | (~0 & 1) = 1
(1 & ~0) | (~1 & 0) = 1
(1 & ~1) | (~1 & 1) = 0
5.2 THE XNOR GATE
=======================================
The XNOR gate is simply the opposite of the XOR gate, its truth
table looks like the following.
A B | Q
-------+------
0 0 | 1
0 1 | 0
1 0 | 0
1 1 | 1
Its kind of like ~((A & ~B) | (~A & B)).
This is a good time to point out something about boolean algebra,
remember that ~ changes the value of an input to its opposite,
therefore ~(~A) = A and the 2 ~'s simply cancel eachother out.
So XNOR becomes (~A & B) | (A & ~B).
|
Category: Programming |
Views: 660 |
Added by: Maintate
| Rating: 0.0/0 |
|
|
|