140 likes | 250 Views
Student ID. Name. Seat. EE 333 Exam 1 September 28, 2006. Answers. Instructions Print your name, student ID, and seat in the above blanks. This is a Closed Book exam. Do all of the problems. They may vary in points but the total is 100. Questions are short answer and problems.
E N D
Student ID Name Seat EE 333 Exam 1September 28, 2006 Answers Instructions Print your name, student ID, and seat in the above blanks. This is a Closed Book exam. Do all of the problems. They may vary in points but the total is 100. Questions are short answer and problems. Do not use any additional pages of paper. If you run out of room, use the back sides. Do not remove the staple. Please write clearly or print. Illegible or unreadable answers may not be graded for partial credit. Mark your answer with a box or star. University of Portland School of Engineering
MIPS machine language (decimal) You may also use the following pseudo-instructions: la rdest, address lb rt, address sb rt, address University of Portland School of Engineering
MIPS architecture University of Portland School of Engineering
Problem 1, (10 pts) • What are the five classic components of a computer and what do they do? • Memory: holds instructions and data • Datapath: routes information around computer • Input: brings information into computer • Output: takes information away from computer • Control: coordinates the activities of computer University of Portland School of Engineering
Problem 2, (10 pts) For the 16-bit hex number 0xff85 in two’s complement notation: • What is it’s decimal value? • What is it’s hex representation sign extended to 32-bits? University of Portland School of Engineering
1010 1100 1000 0010 0000 0000 0001 0000 Problem 3, (10 pts) Find the assembly instruction for: 0x ac82 0010 43 4 16 2 op rs rt immed rs rt sw $2, 16($4) University of Portland School of Engineering
0000 0001 0010 0010 0000 0000 0001 1010 Problem 4, (10 pts) For the MIPS assembly instruction div $9, $2 • What is the op code? • What is rs? • What is rt? • What is the function? • What is machine instruction in hex? op = 0 rs = 9 rt = 2 func = 26 = 0x 1a 0x 0122 001a University of Portland School of Engineering
Problem 5, (10 pts) Write a program segment for c = a + b University of Portland School of Engineering
Problem 6, (10 pts) Find the memory byte in hex. memory (hex) University of Portland School of Engineering
Problem 7, (10 pts) Complete the table below for LS181 ALU University of Portland School of Engineering
Problem 8, (10 pts) Design a “shift left logical” circuit that accepts a 16-bit input A and 2-bit shift amount Shamt that shifts A either 0, 1, 2, or 3 positions. Use only 16-bit shift left logical one position (SLL1) circuits and 16-bit Muxes. University of Portland School of Engineering
Problem 9, (10 pts) For the MIPS architecture, complete the table 1 = Instruction Fetch 2 = Decode & Register Read 3 = Execution 4 = Memory Access 5 = Register Write University of Portland School of Engineering
Problem 10, (10 pts) Draw the trace for signal Sout University of Portland School of Engineering
Statistics University of Portland School of Engineering