1.4.3. Boolean Algebra Flashcards

1
Q

Logic gates

A

Take inputs from 1 or more binary switches and reach an output
Can be combined to form a complex circuit

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Combining logic gates

A

Make a column in your truth table for each gate, starting from the ones needed first

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

NOT gate

A

Symbol: One line going into a triangle with a circle at the point and a line coming out
What it does: Turns a 0 to a 1 and a 1 to a 0
Boolean algebra: P = NOT A
Boolean notation: P = ¬ A

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

AND gate

A

Symbol: Two lines into the long edge of a semi-circle, one coming out
What it does: Only outputs a 1 if both inputs are 1
Boolean algebra: P = A AND B
Boolean notation: A ∧ B

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

OR gate

A

Symbol: Two lines into the inside of a crescent moon, one out
What it does: If one or both input(s) are 1 it outputs a 1
Boolean algebra: P = A OR B
Boolean notation: P = A V B

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

XOR gate

A

Symbol: The OR symbol but with another curve the same as the inside of the moon cutting the lines
What it does: Only outputs 1 if one input is 1, not both
Boolean algebra: P = A XOR B
Boolean notation: P = A ⊻ B

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

De Morgan’s First Law

A

¬(A V B) = ¬A ∧ ¬B

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

De Morgan’s Second Law

A

¬(A ∧ B) = ¬A V ¬B

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

How to implement de Morgan’s laws

A

Invert both terms, swap OR and AND and invert the whole result

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Associative Rule

A

If the same expression is used on three inputs the brackets can be anywhere or not there
e.g. A V (B V C) = (A V B) V C = A V B V C

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Commutative Rule

A

Changing which input comes first makes no difference

E.g. A V B = B V A

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Distribution

A

Allows you to multiply out or factorise an expression, done the same as brackets in maths
e.g. X ∧ (Y V Z) = (X ∧ Y) V (X ∧ Z) and vice versa

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

Double negative

A

¬¬X = X

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

Absorption

A
When brackets have the first input inside in front of it also with an and and an or inside and out you can eliminate the second variable
X V ( X ∧ Y) = X
X ∧ (X V Y) = X
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

Finding an expression from a karnaugh map

A

Draw squares/rectangles around groups of 1s, find the expression for each and put around ors

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

Grouping sizes in karnaugh maps

A

1, 2, 4 or 8

Groups can overlap

17
Q

Order of rows/columns in karnaugh maps

A

00, 01, 11, 10

18
Q

Wraparound

A

Combining smaller groups on the edges to make a larger one with a simpler expression

19
Q

Half-adder circuit

A

Inputs A and B going into a XOR gate to give the digit

The same 2 inputs go into an AND gate for the carry

20
Q

Half-adder vs adder

A

An adder can add 3 bits so is more practical (A, B and the previous carry bit)

21
Q

Adder circuit

A

Repeats the half-adder circuit with the output from the XOR and C as the inputs.
The output of the XOR is the digit
Pass an OR with the 2 AND gates for the carry
Don’t need to remember how to draw

22
Q

n Adders

A

Can add together n pairs of bits with carry bits

23
Q

D-type flip-flop inputs and outputs

A

Inputs D and the clock

Outputs Q and not Q

24
Q

How does a D-type flip-flop work?

A

On the rising edge of the clock (when it goes from 0 to 1), Q changes to equal the value of D and not Q the opposite. It will stay like this until the next rising edge (it doesn’t change on a falling edge)

25
Q

D-type flip-flop uses

A
Storing values (registers or counters)
Static RAM