

Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
In the course of intro to computer architecture, the main points are:Addressing Mode, 16-Bit Number, 24-Bit Instruction, Auto-Increment Register-Indirect Addressing Mode, Speed Efficiency, Appropriate Register, Multiplication Technique, Division Technique, Non-Restoring Division
Typology: Exercises
1 / 3
This page cannot be seen from the preview
Don't miss anything!


to r 0 ’s data with the latter being the LS-byte and the
former the MS-byte. ( r 2 r 3 is similarly defined). add ext opcode = 001111
incremented) value of r (^) j is to be used for the address of the data word to be obtained from memory. Clearly explain the format and what it means. Next, design the CU states for executing the lw+ instruction. lw+ opcode = 010000 Hint : Just like in the sw instruction from Project 1, the 1st or least significant 2 bytes will have the opcode and other information that the CU needs immediately to start processing the first part of the
the initial part is done and loaded into an appropriate register (mdr, ir0, ir1, etc.) so that it enables the
(b) Comment on the speed efficiency of using the 24-bit lw+ instruction above versus using two 16-bit instructions load ind and add imm (you did these in Project 1) to accomplish the same effect as the lw+ instruction.
no shifting). Note that either of r (^) j , rk could be negative. mul slow opcode = 010001
shifting). Note that either of r (^) j , rk could be negative. div slow opcode = 010010
Division”). div fast opcode = 010011 For division, also assume that the D and V specified in r (^) j , rk are unsigned integers represented in 7 bits (MSB–bit 7– is 0, while the numbers are represented in bits 6 to 0). This is needed in order to get the negative V (for subtraction) in 2’s complement that is representable in 8 bits (this is automatically
If ( a 0) then goto step 6 /* quotient is in c */