(Solved) : P2 Use Fresh Unmodified Copy Cpu Diagram Cpujpg Use Diagram Repeat Five Parts P1 Differen Q41354188 . . .

P2. Use a fresh, unmodified copy of the CPU diagram (cpu.jpg).(Do not use any other diagram.) You will repeat all five parts ofP1, but for a different instruction: Modify the diagram to supporta new instruction called “jsa”, or “jump to stored address”. (Thisis NOT a MIPS instruction. I invented it for this assignment.) Theinstruction works as follows: The format is I-type, similar to lwor sw: jsa offset(register) jsa 20($s0) jsa 0($t1) …etc… Theinstruction is a jump instruction that jumps to another address.The destination address is stored in memory, so this instructionfirst reads from memory, then it uses the data from memory as thedestination address. During execution, jsa reads the value from thespecified register, then adds the offset to this value. This formsa memory address. The processor reads the data from this memoryaddress. This data is then used as the new PC (program counter) forthe following instruction. This instruction would allow you tobuild (in memory) tables of program addresses. You could then jumpto programs by looking up the program address that is stored in thetable in memory. (Polymorphic function calls in C++ do exactlythis.) Make sure to provide the various discussion points (same asP1). //////////////////No need to solve P1, just providing forreference for the above question////////////////////////////// P1.Modify the supplied CPU diagram (cpu.jpg) to support the “lui”instruction. Keep your changes to a minimum. You will need to’shift left’, but this is just an adjustment of wires. Indicatethis clearly/simply. You may expand the rightmost MUX (and it’scontrol), but you may not add new gates or logic blocks. Write oneparagraph that describes how/why your changes implement the “lui”instruction. Give a non-trivial example of the “lui” instruction.Then, on a second copy of your modified diagram, show how the datavalues for this instruction flow through the processor. Then, usethe assumptions from part 3 of the study question. Add a fewsentences of discussion to answer this: What is the minimum lengthof time that the “lui” instruction needs to complete? Finally, makea small table that shows the control signals for the processor forthis instruction. (Your table should look similar to the table onpage 266.) Use ‘don’t cares’ where appropriate.

0 Add u х ALU -1 Add result Shift left 2 RegDst Branch MemRead Instruction [31-26] MemtoReg ALUOP Control MemWrite ALUSrc Reg

0 Add u х ALU -1 Add result Shift left 2 RegDst Branch MemRead Instruction [31-26] MemtoReg ALUOP Control MemWrite ALUSrc RegWrite Instruction [25-21] Read Read address register 1 PC Read data 1 Instruction [20-16] Read Zero register 2 Instruction 0 ALU [31-0 Read ALU Read data 2 Address Write data result Instruction M Instruction [15-11] register memory х Write data Registers Data Write memory data 16 32 Instruction [15-0] Sign extend ALU control Instruction [5-0] Show transcribed image text 0 Add u х ALU -1 Add result Shift left 2 RegDst Branch MemRead Instruction [31-26] MemtoReg ALUOP Control MemWrite ALUSrc RegWrite Instruction [25-21] Read Read address register 1 PC Read data 1 Instruction [20-16] Read Zero register 2 Instruction 0 ALU [31-0 Read ALU Read data 2 Address Write data result Instruction M Instruction [15-11] register memory х Write data Registers Data Write memory data 16 32 Instruction [15-0] Sign extend ALU control Instruction [5-0]

Expert Answer


Answer to P2. Use a fresh, unmodified copy of the CPU diagram (cpu.jpg). (Do not use any other diagram.) You will repeat all five …