Question

3. Examine the difficulty of adding a proposed ss Rd, Rn, #immediate (Store sum) instruction to...

3. Examine the difficulty of adding a proposed ss Rd, Rn, #immediate (Store sum) instruction to the LEGv8 instruction set, which works as follows: Mem[Reg[Rd]]=Reg[Rn]+immediate; (20 pts)

a. Which new functional blocks (if any) do we need for this instruction? (4 pts)

b. Which existing functional blocks (if any) require modification? (4 pts)

c. What new datapaths do we need (if any) to support this instruction? (4 pts)

d. What new control unit signals (if any) do we need for this instruction? (4 pts)

e. Modify the complete control and datapath Figure to demonstrate the implementation of this new instruction.

0 0
Add a comment Improve this question Transcribed image text
Answer #1

Please find my answer for 3 Questions.

Pelase repost others in separate post.

I have written the Instruction set for the repective Interpretation:-

a) Let me explain you the process of load with increment which can be done in two ways:-

i) Firstly read port in Registers basically to define read Rn and next by choosing a alternative ALU to add Rn to Rp +
Rq or Finally a third input to the actual ALU,
ii) Last step is to extend the actual ALU to perform the shifts and simultaneously adding the SLL ALU operations.

b)

i)First of all, The instruction adopts the instruction memory, both actual read ports like ALU, Registers and
the write port.
ii). After that, Make sure one of the actual register read ports have the lane
that reached immediate to the ALU, and the register write port.


d)
i)In this step, we need to focus more on a controlling of a signal which tells the Arithmetic logic unit to perform the specific task.
ii) Next, This time we need to differenciate the ALU Operations to control signals which adds the SLL modiifcation to it.

Interprepation Set:

ADDI Rs,Ra, Imm12: Reg[Rd] = Reg[Rn].
ADDS Rb, Ra, Rz: Reg[Ra] = Reg[Rs] + Reg[Rb].
B Imm26: PC = PC

B.LT Imm19: PC = PC.

BL Imm26: X30 = PC + 4 , PC = PC

BR Rd: PC = Reg[Rd].

CBZ Rt, Imm19: If (Reg[Rt] == 0) PC = PC

LDUR Rt, [Rn, #Imm9]: Reg[Rt] = Mem[Reg[Rn]

STUR Rt, [Rn, #Imm9]: Mem[Reg[Rn] +
SUBS Rd, Rn, Rm: Reg[Rd] = Reg[Rn] - Reg[Rm].

Add a comment
Know the answer?
Add Answer to:
3. Examine the difficulty of adding a proposed ss Rd, Rn, #immediate (Store sum) instruction to...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • Examine the difficulty of adding a proposed LWI Rd, Rm(Rn) (“Load With Increment”) instruction to LEGv8....

    Examine the difficulty of adding a proposed LWI Rd, Rm(Rn) (“Load With Increment”) instruction to LEGv8. Interpretation: Reg[Rd]=Mem[Reg[Rm]+Reg[Rn]] a) Which new functional blocks (if any) do we need for this instruction? b) Which existing functional blocks (if any) require modification? c) Which new data paths (if any) do we need for this instruction? d) What new signals do we need (if any) from the control unit to support this instruction?

  • Inst Memory Instruction dr Rs Rt Rd Imm16 Rd Rt Equa ALUctr MemtoReg MemWr RegWr Rs Rt Ra Rb buSA...

    Inst Memory Instruction<31:0> dr Rs Rt Rd Imm16 Rd Rt Equa ALUctr MemtoReg MemWr RegWr Rs Rt Ra Rb buSA 32 RegFile busB bus W 32 32 clk WrEn Adr clk imm162 Data In Data Memory 16 E 32 clk imm 16 Extop ALUSr Figure 1: MIPS datapath with control signals Consider again the MIPS datapath with control signals as pre- sented in Figure 1. We want to add a new instruction to the MIPS instruction set architecture foo. Its...

  • Modify the circuit to support a MFCC instruction. MFCC Rd instruction: Move From Condition Codes MFCC copies into the fo...

    Modify the circuit to support a MFCC instruction. MFCC Rd instruction: Move From Condition Codes MFCC copies into the four rightmost bits of Rd the values of the ALU signals Carry (C), Overflow (O), Zero (Z) and Negative (N) as they were set by the previous R- type instruction. The remaining 28 bits of Rd are set to zero. Describe the changes and additions needed for the single-cycle MIPS processor datapath and control to support this instruction. Hints: 1) MFCC...

  • 4. (10 pts) The following MIPS single-cycle datapath cannot perform Divide instruction. Indicate any changes to...

    4. (10 pts) The following MIPS single-cycle datapath cannot perform Divide instruction. Indicate any changes to the datapath that must be done in order to support Div instruction, e.g., adding extra wires, extra logic gates, extra registers, etc. Do your modification on the following figure if necessary, and show the dataflow for this instruction using dash lines on the modified figure. Also show the values of the corresponding control signals in the following table and add new control signals to...

  • Question 4: Single Cycle Datapath Control (15 points) We wish to add the hardware support for...

    Question 4: Single Cycle Datapath Control (15 points) We wish to add the hardware support for a special R-type instruction jlr Jump and Link Register) to the single-cycle datapath below. Though this is an R-type instruction, but it is a special one that has the opcode being 000001 (instead of 000000), so the control unit will be able to differentiate this jlr instruction from the other R-type instructions and generate a special set of controls for this instruction. Opcode rs...

  • Group Project 1 The Micro-1 Processor Simulation <Micro-1 Computer> Here's the organization of a computer equipped...

    Group Project 1 The Micro-1 Processor Simulation <Micro-1 Computer> Here's the organization of a computer equipped with a Micro-1 processor Memory contains an array of integer cells: int cell[] = new int[CAP]; where CAP is the capacity of memory. Initially this is set to 256. Internally, the Micro-1 processor is equipped with eight 32-bit data/address registers and two 32 bit control registers: PC, the program counter, contains the address of the next instruction to execute. IR, the instruction register, contains...

  • I've posted 3 classes after the instruction that were given at start You will implement and...

    I've posted 3 classes after the instruction that were given at start You will implement and test a PriorityQueue class, where the items of the priority queue are stored on a linked list. The material from Ch1 ~ 8 of the textbook can help you tremendously. You can get a lot of good information about implementing this assignment from chapter 8. There are couple notes about this assignment. 1. Using structure Node with a pointer point to Node structure to...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT