Flashcards
1.4.3 Boolean algebra
-
Question
What do the symbols
∧,∨,¬and⊻mean?Answer
∧is AND,∨is OR,¬is NOT and⊻is XOR (exclusive OR). -
Question
How many rows does a truth table need for n inputs?
Answer
2n rows, one for each combination of inputs. Three inputs need 8 rows.
-
Question
State De Morgan's laws.
Answer
¬(A ∧ B) ≡ ¬A ∨ ¬Band¬(A ∨ B) ≡ ¬A ∧ ¬B. To remove a¬from outside a bracket, change the operator and negate each term inside. -
Question
State the rule of double negation.
Answer
¬¬A ≡ A. Negating a value twice gives the original value. -
Question
State the two distribution rules.
Answer
A ∧ (B ∨ C) ≡ (A ∧ B) ∨ (A ∧ C)andA ∨ (B ∧ C) ≡ (A ∨ B) ∧ (A ∨ C). -
Question
What do the rules of commutation and association say?
Answer
Commutation: the order of the inputs does not matter,
A ∧ B ≡ B ∧ A. Association: the grouping does not matter when the operator is the same,(A ∨ B) ∨ C ≡ A ∨ (B ∨ C). -
Question
Simplify
A ∨ (A ∧ B).Answer
A. IfAis 1 the whole expression is 1, and ifAis 0 thenA ∧ Bis also 0 (absorption). -
Question
Why are Karnaugh map rows and columns labelled 00, 01, 11, 10?
Answer
This is Gray code order: neighbouring cells differ in only one variable, so a group of neighbouring 1s shows which variables do not affect the output.
-
Question
What are the rules for grouping 1s on a Karnaugh map?
Answer
Groups are rectangles of 1, 2, 4, 8 or 16 cells. Make them as large as possible and use as few as possible. Groups may overlap and wrap around the edges. Every 1 must be in a group, and no 0 can be. In each group's term, a variable that is 0 throughout is written with
¬. -
Question
What are the outputs of a half adder with inputs
AandB?Answer
Sum
S ≡ A ⊻ Band carryC ≡ A ∧ B. -
Question
What extra input does a full adder have, and why is it needed?
Answer
A full adder has a third input, the carry in from the previous column, so full adders can be chained to add multi-bit numbers. It can be built from two half adders and an OR gate.
-
Question
Describe the behaviour of a D-type flip-flop.
Answer
On the rising edge of the clock pulse, the output
Qtakes the value of the data inputD. At all other timesQholds its value, so it stores one bit. -
Question
What does the symbol
≡mean in a Boolean expression?Answer
Equivalence, read "is equivalent to" or "if and only if": the expressions on each side give the same output for every combination of inputs, e.g.
¬(A ∨ B) ≡ ¬A ∧ ¬B. -
Question
Describe the logic gate symbols for AND, OR, NOT and XOR.
Answer
AND: flat back with a round, D-shaped front. OR: curved back with a pointed front. NOT: a triangle with a small circle at its point. XOR: an OR shape with an extra curved line across the inputs.
-
Question
Name the inputs and outputs of a D-type flip-flop.
Answer
Inputs: data (
D) and clock. Outputs:Q, the stored bit, and¬Q, which is always its opposite. -
Question
How can a full adder be built from half adders?
Answer
One half adder adds
AandB. A second adds that sum to the carry in, giving the final sum. An OR gate combines the two half adders' carries to give the carry out. -
Question
Which groups are not allowed on a Karnaugh map?
Answer
Groups whose size is not a power of two (such as 3 or 6), groups containing a 0, and groups that are not a single rectangle, such as diagonals and L-shapes. Groups may overlap and wrap around the edges.
End of the deck
Keys: Space flips, ← → move between cards.
Tap the card to flip it. Swipe to change card.