MS Final Exam Logic Design 20182-1
MS Final Exam Logic Design 20182-1
Faculty of Engineering
Marking Scheme
Exam Paper
BSc CE
Question 1 This question is attributed with 10 marks if answered properly; the answers are the following:
1) The binary number 11101011000111010 can be written in hexadecimal as ________.
a) DD63A16 b) 1D63A16
c) 1D63116 d) 1D33A16
2) Refer to the following figure. If A = 0 and B = 1, what will be the logic states at X, Y and Z?
a) Adder b) Multiplexer
c) Demultiplexer d) Parity generator
9) If the input combination A=0, B=1 is applied to this circuit, the (steady state) output will be:
c) (2 marks)
Solution
Question 3 This question is attributed with 7 marks if answered properly; the answers are the following:
a) (4 marks)
Solution
Inputs Outputs 𝑺 = 𝑪𝒊𝒏 ⨁(𝑿⨁𝒀)
{ }
𝑿 𝒀 𝑪𝒊𝒏 𝑺 𝑪𝒐𝒖𝒕 𝑪𝒐𝒖𝒕= 𝑪𝒊𝒏 ∙ (𝑿⨁𝒀) + 𝑿𝒀
0 0 0 0 0 Proof:
0 0 1 1 0 The sum:
0 1 0 1 0 𝐒=𝐗 ̅ ̅𝐘𝐂𝐢𝐧 + 𝐗̅𝐘𝐂̅̅̅̅ ̅ ̅̅̅̅
𝐢𝐧 + 𝐗𝐘 𝐂𝐢𝐧 + 𝐗𝐘𝐂𝐢𝐧
0 1 1 0 1 ̅̅̅̅ ̅ ̅
= 𝐂𝐢𝐧 (𝐗𝐘 + 𝐗𝐘) + 𝐂𝐢𝐧 (𝐗 ̅ ̅𝐘 + 𝐗𝐘)
1 0 0 1 0 = ̅̅̅̅ ̅𝐘 + 𝐗𝐘
𝐂𝐢𝐧 (𝐗 ̅) + 𝐂𝐢𝐧 ̅̅̅̅̅̅̅̅̅̅̅̅̅̅
̅𝐘 + 𝐗𝐘
(𝐗 ̅)
1 0 1 0 1 𝑺 = 𝑪𝒊𝒏 ⨁(𝑿⨁𝒀)
1 1 0 0 1 The carry output:
1 1 1 1 1 ̅ 𝐘𝐂𝐢𝐧 + 𝐗𝐘̅ 𝐂𝐢𝐧 + 𝐗𝐘𝐂𝐢𝐧 + 𝐗𝐘 ̅̅̅̅
𝑪𝒐𝒖𝒕 = 𝐗 𝐂𝐢𝐧
Truth table for the full adder ̅ ̅ ̅̅̅̅
= 𝐂𝐢𝐧 (𝐗𝐘 + 𝐗𝐘) + 𝐗𝐘(𝐂𝐢𝐧 + 𝐂𝐢𝐧 )
𝑪𝒐𝒖𝒕= 𝑪𝒊𝒏 ∙ (𝑿⨁𝒀) + 𝑿𝒀
X Y X Y C in
S
XY X Y C
in XY
Cout
b) (2 marks)
Solution
c) (2 marks)
Solution
Question 5 This question is attributed with 5 marks if answered properly; the answers are the following:
Solution
a) (1.5 marks)
b) (2 marks)
c) (1.5 marks)
Question 6 This question is attributed with 5 marks if answered properly; the answers are the following:
Solution
(2 marks)
(2 marks)
(1 mark)