Docsity

Final Exam for Introduction to Computer Engineering | ECE 2030, Exams of Electrical and Electronics Engineering

Toggle sidebar
bg1
Name GT#________
ECE2030h Fall ’01 - Exam p. 1 of 5
ECE 2030h, Intro. To Computer Eng., Final Exam
Dec. 12, 2001
Prof. John A. Copeland
School of Electrical and Computer Engineering
RULES.
iThis quiz is closed book.
ii. Non-programmable calculators may be used.
iii Answer all questions and show all work to receive full credit.
iv All questions have the same weight. (10 Points). All sub-questions within a
question are weighted equally.
vPlease do not ask the proctors any questions during the exam about exam
questions. Part of the test is understanding the question as written, without supplemental
information. If you feel additional data is needed to solve the problem, make (and state) an
assumption and then work the problem.
Question 1 – Minterm and Maxterm Indices
For the truth tables below, show the minterm sum of products, and the maxterm product of sums:
A
B
C
F
0
0
0
0
0
0
1
0
0
1
0
1
0
1
1
0
1
0
0
1
1
0
1
1
1
1
0
1
1
1
1
0
sum of products ____________________________________________________________________
product of sums ____________________________________________________________________
pf3
pf4
pf5

Partial preview of the text

Download Final Exam for Introduction to Computer Engineering | ECE 2030 and more Exams Electrical and Electronics Engineering in PDF only on Docsity!

Name GT#________ ECE2030h Fall ’01 - Exam p. 1 of 5 ECE 2030h, Intro. To Computer Eng., Final Exam Dec. 12, 2001 Prof. John A. Copeland School of Electrical and Computer Engineering RULES. i This quiz is closed book. ii. Non-programmable calculators may be used. iii Answer all questions and show all work to receive full credit. i v All questions have the same weight. (10 Points). All sub-questions within a question are weighted equally. v Please do not ask the proctors any questions during the exam about exam questions. Part of the test is understanding the question as written, without supplemental information. If you feel additional data is needed to solve the problem, make (and state) an assumption and then work the problem.

Question 1 – Minterm and Maxterm Indices

For the truth tables below, show the minterm sum of products, and the maxterm product of sums: A B C F 0 0 0 0 0 0 1 0 0 1 0 1 0 1 1 0 1 0 0 1 1 0 1 1 1 1 0 1 1 1 1 0 sum of products ____________________________________________________________________ product of sums ____________________________________________________________________

Question 2 – Karnaugh Map For the Karnaugh map below, circle the Prime Implicants and label

the Essential Prime Implicants with “EPI”. AB \ CD 00 01 11 10 00 0 1 1 0 01 1 0 1 1 11 1 0 0 1 01 0 1 0 0 Write the reduced logic expression: ____________________________________________ minterm indices (decimal) ____________________________________________________

Question 3 – Mixed Logic. Design a logic circuit for the logic function

X = (AB’ + A’B) + (C’D)’

. using the mixed logic technique. Assume only signals A, B, C, and D are available. A’ = NOT A.. Step 1. Step 2.

Question 6 – Binary Arithmetic in Two’s Complement Notation

Do the arithmetic below in two’s compliment binary arithmetic (8-bit integers, -128 to +127). +31 ______________________________________ -63 ______________________________________ = -32 _______________________________________

Question 7. Our MIPS architecture has only “Branch on Equal” (BEQ $X, $Y) and “Branch on Not

Equal” (BNE $X, $Y) commands. Show how to use the “Set on Less Than” (SLT $1, $X, $Y) and BEQ or BNE to make as two-command equivalent of the following (note: $0 always = 0 ): BLT $2, $ BGT $2, $ BLE $2, $ BGE $2, $ Show how to make a branch comand that always jumps ahead to the label xxx. B_______________ ADD $4, $3, $ xxx: ADDI $4, $4, 56

Question 8. Branch and Jump Ranges

a. What is the range of a BNE or BEQ instruction? _____________ to __________________ b. What is the range of a “j” jump instruction? _________________to __________________ c. What is the range of a “jr” jump instruction? _________________to __________________ note: you can use G to mean 2^30, (~ 1 billion), M to mean 2^20 (~ 1 million), K to mean 2^10 (1024)

Question 9 – CPU Control Lines

Show how the control lines are set to achieve the operations below. Assume msel = 1; asl: 0=AU, 1=LU, 2=SU, 3 = invalid; ST: 0=arithmetic, 1=logical, 2=rotate, 3 = invalid; LF: 0=AND, 1=OR, 2=XOR, 3 = invalid; a’/s: 0=add, 1= subtract rwe: 1=write, 0= do not write Add $5 to the value in $2 and put the result into memory (address=$9) M[9] = $5 + $ (note: loading or storing data requires a separate CPU clock cycle) Mem r ’ / w X Y Z r w e asl a ’ / s en ld en st en im en im va (Immediate Value)

Question 10. When is a “jal” jump used? What value is put into register $ra? Why?