Chapter 8
Page 176
We start with a truth table that shows the relationships between the signals and the input to the D flip-flop.
Store | di | ri | Di |
---|---|---|---|
0 |
0 |
0 |
0 |
0 |
0 |
1 |
1 |
0 |
1 |
0 |
0 |
0 |
1 |
1 |
1 |
1 |
0 |
0 |
0 |
1 |
0 |
1 |
0 |
1 |
1 |
0 |
1 |
1 |
1 |
1 |
1 |
Using a Karnaugh map:
we get:
Di(Store, di, ri) = (¬Store ∧ ri) ∨ (Store ∧ di)
Applying De Morgan’s law:
¬Di(Store, di, ri) = ¬(¬Store ∧ ri) ∧ ¬(Store ∧ di)
And complementing both sides gives us:
Di(Store, di, ri) = ¬(¬(¬Store ∧ ri) ∧ ¬(Store ∧ di))
So we can use NAND gates. Notice the placement of the parentheses when manipulating the expressions in the equations here. De Morgan’s law applies to the individual terms in the expression. In the final complementing of both sides of the equation, we’re complementing the entire expression on the righthand side of the equation.