Professional Documents
Culture Documents
I nstructions:
. Write your ansr,vers on a 'yellow'pad paper(s). Staple on the upper left corner if using multiple
sheets of paper.
o Alwavs show vour comnlete solution.
. Put your name, student number, and section on the upper right corner of each page.
o Submit yourtime-stamped papers in the drop box on EEEI Rm.220.
o No late submission will be accepted.
bJ Complete the table below by providing the logic expression for the followingvariables in the circuit
in Figure 3b. (1.5 poinal
Logic Expression
R(A,B,c,D) (t.c)
s(A, B,C,D) C(netr 7..Y 1'
ru,B,c,D) f (rrxr{c)'l'c
I o
A S
A
B a
B Z T
C
c
D
Figure 3a Figure 3b
a') C'
r0
4 (d+crr).(C'c).( I'ta' r' ) c)( G .3)* 6,ns + a8( . &5 ' o(c
0al
=
'a I. -l,i.1[1r')Rs+o't*s
Ct J = a'B'r ,O t gC n cPt -a i.dE.x5+Qci
It
tc ofrr,D- a(
s
I
0l
o)
CtIYEI 1, (4, c)
! a ,(r'r J) r-vJAF)
h'o'+
ao
0r
tl
H rd LI
x
s
)r'r+
R
I
Part 5 (Design Problem 1)
An AND gate's output is 1 ifall inputs are 1. An 0R gate's output is 1 if at least one ofits input is 1. A 2-
input XoRgate's output is one ifone of its input is 1 but the other is 0. However, in general, an XOR
gate's output is 1 ifthe number of 1's in its input is odd. Design a logic circuitthat acts behaves like a 4-
input XOR The inputs of the XORgate are A, B, C, and D while is output is X.
Meanwhile a multiplexer is a logic circuitthat switches a single output to a set ofinputs based on a
control signal. Desigr a 2-input multiplexer with enable. The output is Y. The enable sigral is A" When A
is 0 the output is always zero; otherwise, the output will be dependent on B, C, and D. B is the control
signal while C and D are the input sigaals. IfB is 0, the output Y takes the value ofC. If B is 1, the output
Y takes the value ofD.
1 0 1 1 I !t 0 0
I t 0 0 o @ 0 0
1 1 0 1 t I
1 1 I 0 ! o 'f?DODreob
1 1 1 1 o I
b) Draw the equivalent K-map for X and highlight the groupings to needed to come up with a simplified
SOP expression forX. (3 poins)
'I
Suppose we are to create a logic blockto interface a common cathode 7-segment display so that it can
display the numbers 0-9, depending on an input Z which is a 4-bit number. lfthe input Z exceeds the
number 9, then an 'X' should be displayed where only top and bottom segments are NOT lit up fdisplay
is similar to 'H'J, The table below shows an example for the input-to-output correspondence for
segment a.
Z Displayed Output
Zt Zz Zt Zo Number/Charactsr a
0 0 0 0 0 1
0 0 0 1 1 0
0 0 1 0 Z 1
0 0 1 1
) 1
0 I t, 0 4 0
0 1 0 1 5 1
0 1 7 0 6 1
0 1 1 1 7 1
1 0 0 0 I 1
1 0 0 1 9 L
L 0 1 0 'x' 0
1 0 I 1 'x' 0
,x,
1 1 0 0 0
7 1 0 1 'x' 0
,x,
1 1 1 0 0
1 1 1 1 'x' 0
7 a
a a
b b b
23
LOGIC c c
z Zt d d I
Zt
Zo
oc K e
t e
g
Eachsegment lights up whenever its corresponding signal is high. For example, to display the number
9, <a,b,c,...,g> should be <1111011> where only segment e is off.The way the numbers are displayed
should follow the image below:
NEEHS
ENfEEE
The real bonus exercise: Determining the digital circuify forsegment d.
a) Complete the tnrth table for the output for segment d only, be sure to include t}re input combination
Z. [4 pointsJ
4) t-t Zt 7r?-,
oooo
Zo 7 1 5)
ab m0r lo n
ll o oo o
o
,
*z*)it?ieJz' * tie'u
r I
ooto L
4 = +],trtlt,
I
oor, , I ut
otoo
olot
.l
5
0
I lr
+ $xi ti
Otlo o b \
Ottl 7
'g
I
o a ziz)zi
i';dc, I
root q I
lOto lo o
toll ll o
I r oo l1 o
lrol r) o
rrlo l1 o
tl t5 o
lt