Saturday, 2025-07-05, 5:47 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 3
BOOLEAN LOGIC GATES - Part 3 | 10:09 AM |
3.0 THE LOGIC GATES
=======================================
Well binary is nice n easy n all but if thats all that a computer
understands then how does it go from that to a word processor or
an entire operating system. Well we build up these complicated
tasks using simple logic gates and boolean algebra, boolean
algebra was created by George Boole in Ireland in the 1800's,
wahey. The gates provide a way to make decisions and more
complex tasks are built upon them. These gates accept input of
Binary numbers and their output is based on the type of gate and
what input was involved. There are three simple gates.
3.1 THE NOT GATE
=======================================
The simplest of all the gates is the NOT gate, it just takes
a binary value of either 1 or 0 and gives back the oppossite.
The NOT gate is symbolised by the operator '~'. Consider the
following.
A | Q
------+-------
0 | 1
1 | 0
~0 = 1
~1 = 0
This table shows all possible inputs and outputs of the NOT
gate, this kind of a table is known as a 'truth table'.
3.2 THE AND GATE
=======================================
The AND gate unlike the NOT gate doesnt take just one input
(A) it takes at least 2 (A,B), its symbol is '&'.
A B | Q
-------+------
0 0 | 0
0 1 | 0
1 0 | 0
1 1 | 1
0 & 0 = 0
0 & 1 = 0
1 & 0 = 0
1 & 1 = 1
As you can see from the truth table above, the output of
a AND gate is only equal to 1 when both A AND B are equal
to 1, this is the following.
If A = 0 and B = 0 then Q = 0
If A = 0 and B = 1 then Q = 0
If A = 1 and B = 0 then Q = 0
If A = 1 and B = 1 then Q = 1
3.3 THE OR GATE
=======================================
The OR gate also only takes in 2 parameters, A and B, its
symbol is '|'
A B | Q
-------+------
0 0 | 0
0 1 | 1
1 0 | 1
1 1 | 1
0 | 0 = 0
0 | 1 = 1
1 | 0 = 1
1 | 1 = 1
The OR gate outputs a value of 1 if either A OR B OR both
are equal to 1
If A = 0 and B = 0 then Q = 0
If A = 0 and B = 1 then Q = 1
If A = 1 and B = 0 then Q = 1
If A = 1 and B = 1 then Q = 1
|
Category: Programming |
Views: 676 |
Added by: Maintate
| Rating: 0.0/0 |
|
|
|