115 Midterm Ans
115 Midterm Ans
A B C D deduct total
20 27 5 71 123
Midterm
Fall 2022 · National Yang Ming Chiao Tung University – November 8, 2022
Name ________________________________
Note: Write your name and student ID. There are 123 points in 120 minutes. Pace yourself, and good luck!
√ F 160 is the hexadecimal number immediately after the hexadecimal number 159.
1) ____
√ 2) ____ The following Boolean equation is true: ABC+(A’+B’+C)(D+E)=ABC+(A’+B’)(D+E).
√
系 *< * ε E
3) ____ The step of designing NAND-NAND circuit is firstly, Draw a two-levelO OR-AND circuit
implement the function, and use the NAND to replace all the gates.
≈ 4) ____ If XY=XZ, then we can conclude Y=Z. frxse,Ysc 0 ,
s
1
q
5) ____ An expression formed by ORing the minterms of a function is the sum-of-products (SOP) form.
6) ____ For a multiple-variable Boolean function, a minterm is a term where one or more true or
complement variables are ANDed.
r 7) ____ To obtain a minimum multiple-output circuit, we should utilize the common terms among
individual output functions ←
whenever a common term exists.
8
√ 8) ____ DeMorgan's theorem gives the following equality:(Q’ & TP = Q + T’, where Q and T are Boolean
expressions.
: {
9) ____ The output of a two-input EXCLUSIVE OR gate is 1 only when the two inputs are different.
10) ____ Both static and dynamic hazards will not occur if every logic gate has zero delay.
Page 2
A
①
1. ______ Which of the following decimal values represents the BCD code (011001010010.00010110) BCD?
A. (652.16)10 B. (1618.13)10 C. (652.13)10 D. (1618.06)10 6
d:iii
8 qx
θ
∅ B
2. ______ The 4-bits binary code 1000 can represent ___. ?
A . [-0] in 2’s complement e B. [-0] in sign and magnitude
C. [-0] in 1’s complement D. none of the above
\ 7
B
3. ______ Consider a function F(A,B,C,D)=m(0,1,2,3,5,7,8,10,11,12,14). How many prime implicants
[
exist in F?
意R A. 4 B. 5 C. 6 D. 7
c
4. ______ Consider the same function F(A,B,C,D)=m(0,1,2,3,5,7,8,10,11,12,14). How many essential
prime implicants exist in F?
A. 1 B. 2 C. 3 D. 4
℃
5. ______ Which of the following addition results is overflowed if each signed number is represented in 4
bits?.
A. Add (-3) and (-4) in 2’s complement 7
芹
B. Add (-6) and (-5) and (7) in 2’s complement
e
C. Add (-7) and (-3) and (1) in 2’s complement
D. Add (5) and (3) and (-4) in 2’s complement
4
D
6. ______ Which equation can represent the logic relation among the three Boolean variables (A, B, and F)
shown in the following waveform?
0
l
1 o ”
e
66B
8. ______ Assuming that F1= m(3, 5, 7), F2= m(1,3, 5, 6), F3= m(1,3, 5, 6,7), which of the following
descriptions is correct? s s
口
。。
。山
。
Page 3
X
3. [12 pts.] Following are the midterm expression of a multiple-output circuit. Realize the multiple-output circuit
with the minimum gate count using only 2-input NAND gates and inverts. 我 能 sx (化BC s 成 (Bc ) +λ[
B
① ≈ ①
θ
F1(a,b,c)=m(0,1,2,7) BE
; 化與
F2(a,b,c)=m(0,1,2,4) 1
, '
C 'E{ ☆* ) 入 λ[ 微 c
①
e
F3(a,b,c)=m(2,4,6,7) Ber t AES 入 ABC
;
品 θ
. ①
,
√ 4. [14 pts.] Use multiplexers to realize the following functions and draw the corresponding circuits.
(a). Design an 8-to-1 multiplexer using only 4-to-1 multiplexers. [7 pts.]
(b). Use only one 4-to-1 multiplexer to realize the function f(a,b,c,d)= m(1,5,6,8,9,12)+ d(13,14) [7 pts.]
。
身
Page 4
S
D
C v
(b). List all minterms of the Boolean function Y (A, B, C, D). Please use mi to represent a minterm. [3pts.]
(c). Given the signals of A, B, C, D in the following timing chart, draw the signals of Q, R, S, Y in the timing
chart. The delays for NOT gate, AND gate, and OR gate are 2ns, 3ns, and 3ns, respectively. (you may need
to draw the signals of t, u,v first to find out the answer) [6 pts.]
A
ns
0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
Page 5
(d) Assuming that only one input signal can change each time, the given circuit may generate a static-1 hazard
at the output Y when some specific pairs of input values are supplied. For example, if we supply(0, 1, 0,
1)followed by (0, 0, 0, 1), then a static-1 hazard will occur at the output Y. Here, we use (VA, VB, VC, VD)
to represent the input values of signals A, B, C, and D. Write down all possible pairs of input values which
can cause a static-1 hazard at output Y (order of the two input values does matters!). (0, 1, 0, 1) →(0, 0, 0,
1) is one of the answers for sure. [6 pts.]
(e) Add some gates to the original circuit to eliminate all above static-1 hazards. You don’t need to draw the
new circuit. Just write down the corresponding Boolean expression of Y. [6 pts.]