solution_1
solution_1
1 – Digital Electronics II
Solution Sheet 1
(Question ratings: A=Easy, …, E=Hard. All students should do questions rated A, B or C as a minimum)
1A. AND gate: 0 forces output low, 1 allows DATA through. OR gate: 0 allows DATA through, 1
forces output high. XOR gate: 0 allows DATA through, 1 inverts DATA.
It is often useful to think of a gate like this: one input a signal, the others controlling it.
DATA
CONTROL
X
Y
Z
2B. P is high when an odd number of its inputs are high (an odd parity gate) Q is low when all its inputs are
the same R is high when exactly one of its inputs is high. All of these properties are true of a 2-input
XOR gate. Talking about a 3-input XOR gate (or larger) is ambiguous because no one can tell which of
these three gates you mean.
A B C P Q R
0 0 0 0 0 0
0 0 1 1 1 1
0 1 0 1 1 1
0 1 1 0 1 0
1 0 0 1 1 1
1 0 1 0 1 0
1 1 0 0 1 0
1 1 1 1 0 0
3A. The latch output, X, follows D whenever C is high and freezes in its current state when C goes low.
The flipflop output Y, only ever changes on the rising edge of C when it changes to the value that D has
just prior to the edge.
C
D
X
Y
T
C
Y
D
8 5 >4
5B. Whenever C is high, the latch output, X, will follow its input: this means that we get a feedback loop
containing an odd number of inverters. Such a loop will oscillate (indeed the oscillation f requency of
C
X
Y
.
6B.
7B.