






Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!







Department of Electrical and Computer Engineering The University of Texas at Austin
EE 306, Fall, 2008 Yale Patt, Instructor TAs: Jeffrey Allan, Arvind Chandrababu, Eiman Ebrahimi, Aravind Jakkani, Khubaib, Allison Korczynski, Pratyusha Nidamaluri, Zrinka Puljiz, Che-Chun Su, Christopher Wiley. Final Exam, December 10, 2008
Name:
Problem 1 (20 points):
Problem 2 (15 points):
Problem 3 (10 points):
Problem 4 (15 points):
Problem 5 (15 points):
Problem 6 (20 points):
Problem 7 (20 points):
Total (115 points):
Note: Please be sure that your answers to all questions (and all supporting work that is required) are contained in the space provided.
Note: Please be sure your name is written legibly on each sheet of the exam.
I will not cheat on this exam.
Signature
Problem 1 (20 points)
Part a (5 points): A main program puts a value in R0, and then calls SUB. What does the subroutine SUB do? Please answer in ten words or fewer.
SUB ST R1, SaveR ADD R1,R0,R ADD R1,R1,R ADD R1,R1,R ADD R0,R0,R ADD R0,R0,R LD R1, SaveR RET SaveR1 .FILL x
Put answer here:
Part b (5 points): The MUX select line labeled ADDR1MUX in the LC-3 Data Path is controlled by the output of the OR-gate shown below. Complete the wiring of the inputs to the OR-gate and the second input to the AND gate, to achieve the correct signal for ADDR1MUX.