Hint: Remember how we create truth tables. We systematically list all possible combinations of the truth values for the variables in the Boolean formula, and the truth values of expressions involving these variables. For example, for Part a, all you need to do is to fill in the table below.
A B C (B ∨ C) A ∧ (B ∨ C) -------------- ------- ------------ 0 0 0 0 0 1 0 1 0 0 1 1 1 0 0 1 0 1 1 1 0 1 1 1
The commutative rule lets us switch the order of two terms, while the associative rule lets us move parentheses around (or add or remove them) when the connectives are all the same. The above table shows that step 2 was derived from step 1 via the commutative rule, step 3 was derived from step 2 via the associative rule, and step 4 was derived from step 3 via the idempotence rule. We can also use DeMorgan's Law to transform expressions (as in lecture). Here is the proof that ¬ (A ∧ (B ∨ C)) is equivalent to ¬ A ∨ (¬ B ∧ ¬ C):
Step Formula Justification (Rule) 1. A ∧ (B ∧ A) Commutative 2. A ∧ (A ∧ B) Associative 3. (A ∧ A) ∧ B Idempotence 4. A ∧ B
Step Formula Justification (Rule) 1. ¬ (A ∧ (B ∨ C)) DeMorgan's Law 2. ¬ A ∨ ¬ (B ∨ C) DeMorgan's Law 3. ¬ A ∨ (¬ B ∧ ¬ C)
A seven-segment display can be used to form each of the ten decimal digits as shown below.
We can define a circuit abstractly below that requires four Boolean inputs A, B, C, and D, and produces seven Boolean outputs s1, s2, ..., s7 to make the segments of the display form digits:
A segment si is lit if si is 1 (True) and not lit if si is 0 (False).
Your answer should be of the following form:
s7 = (________) ∨ (________) ∨ (________) ∨ ...
where each missing section is a Boolean expression with all 4 input variables that is True when ABCD represents a decimal digit that results in the segment s7 of the display being lit. To help you get started, the digit 0 (binary 0000) will light segment s7, so the first expression in the formula above would be
(¬A ∧ ¬B ∧ ¬C ∧ ¬D)
since s7 would be True (i.e. 1) if A = 0, B = 0, C = 0, and D = 0. You will need to find all of the other missing expressions for s7. Hint: Consider all the digits for which s7 would be lit.
What is the largest amount of memory in gigabytes that can be directly addressable in a 32-bit architecture? Assume that the archicture supports byte-addressable memory where each addressable location corresponds to one byte of memory.