3.4.2 Boolean Logic Flashcards
A computer is basically a collection of (what)?
These components have 2 states ?
A computer is basically a collection of transistors and circuits. These components have two states:
on - a current is flowing through the component
off - a current is not flowing through the component
These two states can easily be represented by using binary:
These two states can easily be represented by using binary:
1 = on (TRUE) 0 = off (FALSE)
In its most basic form, a computer is ?
A logic gate is ?
In its most basic form, a computer is a collection of powered and unpowered circuits and transistors.
A logic gate is a series of transistors connected together to give one or more outputs, each output being based on the input or combination of inputs supplied to it.
NOT Logic gate
- symbol
- expression operator (statement)
Triangle pointing to circle
—|>0—
A¯ (The line would be above)
AND Logic gate
- symbol
- expression operator (statement)
D shape
=D—
A.B (A dot B)
OR Logic gate
- symbol
- expression operator (statement)
Crescenty shape - but slightly stretched horizontally
=) >-
A+B
XOR Logic gate
- symbol
- expression operator (statement)
OR gate, but with another end of crescent
=)) >-
A⊕B (A plus B with a circle around the plus)
NOT gate truth table
Input Output
1 0
0 1
AND gate truth table
Input A Input B Output 0 0 0 0 1 0 1 0 0 1 1 1
OR gate truth table
A B Output 0 0 0 0 1 1 1 0 1 1 1 1
XOR gate is also called
Exclusive OR gate
XOR gate truth table
A B Output 0 0 0 0 1 1 1 0 1 1 1 0
Q = A.B (WITH A LINE OVER WHOLE THING)
How to draw
AND gate followed by a NOT gate
The convention for truth table?
The convention for truth tables is that the rightmost column of inputs goes 0101010101…., and then each column left doubles the intervals of 0s and 1s
Like this:
Input A Input B 0 0 0 1 1 0 1 1
If there were a third input, the rows would go 0 0 0 0, then 1 1 1 1 if needed. A fourth would have up to eight 0s, then switch to eight 1s if needed, and so on
If three inputs - how many rows will truth table have ?
We know from the start that the truth table will have 8 rows because there are 8 possible combinations of 3 inputs. (2 x 2 x 2 = 8)