1 / 12

MIPS processor continued

MIPS processor continued. Review. Different parts in the processor should be connected appropriately to be able to carry out the functions. Connections depending on what we need Learnt R-type, lw, sw, beq. In class exercise.

elita
Download Presentation

MIPS processor continued

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. MIPS processor continued

  2. Review • Different parts in the processor should be connected appropriately to be able to carry out the functions. • Connections depending on what we need • Learnt R-type, lw, sw, beq

  3. In class exercise • Design a simplified MIPS processor that supports onlyaddi. Assume the control signals have been generated and only the data path needs to be designed. addi $rt, $rs, imm opcode (6 bits) rs (5 bits) rt (5 bits) imm (16 bits)

  4. In class excercise

  5. Data path for both R-type and memory-type instructions add $rd, $rs, $rt, format: opcode (6 bits) rs (5 bits) rt (5 bits) rd (5 bits) 00000 funct (6 bits) lw $rt, offset_value($rs): opcode (6 bits) rs (5 bits) rt (5 bits) offset (16 bits) sw $rt, offset_value($rs): opcode (6 bits) rs (5 bits) rt (5 bits) offset (16 bits)

  6. Data path for both R-type and memory-type instructions add $rd, $rs, $rt, format: opcode (6 bits) rs (5 bits) rt (5 bits) rd (5 bits) 00000 funct (6 bits) lw $rt, offset_value($rs): opcode (6 bits) rs (5 bits) rt (5 bits) offset (16 bits) sw $rt, offset_value($rs): opcode (6 bits) rs (5 bits) rt (5 bits) offset (16 bits)

  7. Datapath for R-type, memory, and branch operations

  8. Datapath for R-type, memory, and branch operations (Answer)

  9. Datapath for Memory, R-type and Branch Instructions, plus the control signals

  10. Jump Instruction • Jump instruction seems easy to implement • We just need to replace the lower 28 bits of the PC with the lower 26 bits of the instruction shifted by 2 bits • The shift is achieved by simply concatenating 00 to the jump offset week-13-3.ppt

  11. 31 26 25 0 0 0 0 0 1 0 opcode Address Implementing Jumps • The one we have supports arithmetic/logic instructions, branch instructions, load and store instructions • We need also to support the jump instruction • What are the changes we need to make?

  12. Supporting Jump Instruction

More Related