| 1 |
| 2 |
Light a given digit from 0 to 9 using digital logic.
A visualization of the problem can be seen below:
| 3 |
A B C D 0 0 0 0 - 0 0 0 0 1 - 1 0 0 1 0 - 2 0 0 1 1 - 3 0 1 0 0 - 4 0 1 0 1 - 5 0 1 1 0 - 6 0 1 1 1 - 7 1 0 0 0 - 8 1 0 0 1 - 9 1 0 1 0 - ? 1 0 1 1 - ? 1 1 0 0 - ? 1 1 0 1 - ? 1 1 1 0 - ? 1 1 1 1 - ?The combinations with ? to the right are not used.
| 4 |
The selection of the number for each light is arbitrary.
| 5 |
| 6 |
An 'X' means that the light is lit for that digit. For example, the top light is lit for a zero but not for a one. A '?' means the combination is not used.
| 7 |
A B AND(A,B) 0 0 0 0 1 0 1 0 0 1 1 1 A B OR(A,B) 0 0 0 0 1 1 1 0 1 1 1 1 A NOT(A) 0 1 1 0The tables for the functions above are known as 'truth tables.'
| 8 |
OR(
OR(
OR(A,C),
AND(B,D)
),
AND(NOT(B),NOT(D))
)
By extending the table on page three above, the correctness
of the functions can be verified. The top light should be lit
for zero, two, three, five, six, seven, eight, and
nine but not for one or four. (The other
combinations are not used and therefore do not matter.) An output
of 1 turns on the light--and output of 0 turns off the light.
For example, the input combination for zero (A = 0, B = 0, C = 0, D = 0)
should turn on the light
which means the output of the
circuitry functions should be a 1 for the given inputs.
The input combination for one (A = 0, B = 0, C = 0, D = 1)
should turn off the light
which means the output of the
circuitry functions should be a 0 for the given inputs.
| 9 |
Exercise 2: Draw Karnaugh maps for lights one to six.
Exercise 3: Develop the circuitry functions
for lights one to six.
Exercise 4: Verify the corrections of the functions developed
in Exercise 3 using the procedure from Exercise 1.
Exercise 5: Download the
Java Developers Kit
, insert the functions developed above, recompile the program,
and run the program to test the correctness of the functions.
Exercise 6: Make any combination of the changes suggested below and repeat Exercises 2 through 5:
Change six: Change seven: Change nine: _ _ _ _ _ |_ to |_ | | to | |_| to |_| |_| |_| | | _| |