NAME:___________________________
Laboratory section number (or day/time):___________________________
PHYS345 Second Midterm Exam December 2, 1999 This is a closed book exam.
Programmable calculators and graphing calculators may be used during this exam.
Since this exam booklet may be separated for grading; it is important to:
Show ALL work on problem sheet and only on that sheet.
Please read questions carefully.
Credit may be lost inadvertently if solutions are not neat and orderly.
Be careful with units, signs, and significant figures.
1. (20 points)
Justify your answers in all cases!
In the PHYS345 lab you notice a partially completed 2-bit counter.
You recall a recent conversation where the instructor was extolling the
virtues of an enable line to control whether the counter would count up or count down.
That is, when E is true, the counter should count up through the states in the
repetitive sequence 0, 1, 2, 3 and when E is false,
the counter should count down in the sequence 3, 2, 1, 0.
Complete the circuit diagram so that it works as desired;
that is, set up the D input of flip-flop 0.
DC\BA
00
01
11
10
00
1
1
1
1
01
1
0
0
0
11
1
0
0
0
10
1
0
0
1
A B 0 0 0 1 1 0 1 1
2. (20 points)
Truth table for the three-input exclusive NOR gate:
| A | B | C | XNOR | |
|---|---|---|---|---|
| 0 | 0 | 0 | 1 | |
| 0 | 0 | 1 | 0 | |
| 0 | 1 | 1 | 1 | |
| 0 | 1 | 0 | 0 | |
| 1 | 1 | 0 | 1 | |
| 1 | 0 | 0 | 0 | |
| 1 | 0 | 1 | 1 | |
| 1 | 1 | 1 | 0 |
At a different workstation in the PHYS345 lab you notice the 2-bit counter shown. It is different from the circuit you designed in the previous problem but you are interested in learning what it does.
Construct the timing diagrams below to ascertain the state diagram for both E=1 and E=0.
|
Complete the state diagram to show the behavior of this 2-bit counter for E disabled.
|
|
|
Complete the state diagram to show the behavior of this 2-bit counter for E enabled.
|
|
|