Final Examination 00

# Final Examination 00 - Name Solution Computer Architecture...

This preview shows pages 1–4. Sign up to view the full content.

Name Solution Computer Architecture EE 4720 Final Examination 8 May 2000, 10:00–12:00 CDT Alias MPL phone home!!! Problem 1 (20 pts) Problem 2 (10 pts) Problem 3 (10 pts) Problem 4 (21 pts) Problem 5 (39 pts) Exam Total (100 pts) Good Luck!

This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document
Problem 1: An extended DLX ISA, Triple-DLX [tm], includes new three-operand integer ALU in- structions. (Assume that the integer ALU can perform integer multiply.) Some sample instructions appear below: add_add r1, r2, r3, r4 ! r1 = r2 + r3 + r4 add_mul r5, r6, r7, r8 ! r5 = ( r6 + r7 ) * r8 mul_add r5, r6, r7, r8 ! r5 = ( r6 * r7 ) + r8 ( a ) (8 pts)A new instruction type, Type-T, will be used for these instructions. Show how the new Type-T instructions can be coded. The coding should be chosen to ease implementation and should allow for at least 64 three-operand instructions. Assume that there are six free opcode Feld values and seven free func-Feld values available for your use. Explain how to distinguish Type-T instructions from Type-R, Type-I, and Type-J in- structions. How many Type-T instructions can be provided using your coding? The DLX codings are given below for reference and can be used to explain your answer. Type R: Opcode 0 0 5 rs1 6 10 rs2 11 15 rd 16 20 func 21 31 Type I: Opcode 0 5 rs1 6 10 rd 11 15 Immediate 16 31 Type J: Opcode 0 5 O±set 6 31 The instruction format is similar to Type R, except an rs3 Feld is added. It’s added after rd, rather than before, so that decoding logic would not have to look for rd in a third place. Type T instruction use one of the 6 opcodes, opcode 1 is used in the example. The funcette Feld, at 6 bits, speciFes which of 64 instructions to perform. Type T: Opcode 1 0 5 rs1 6 10 rs2 11 15 rd 16 20 rs3 21 25 funcette 26 31 2

This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

### Page1 / 12

Final Examination 00 - Name Solution Computer Architecture...

This preview shows document pages 1 - 4. Sign up to view the full document.

View Full Document
Ask a homework question - tutors are online