1 / 6

CDA 3100

CDA 3100. Recitation Week 13. Design a processor:. Design a processor that only supports the ‘ lwrj ’ instruction.

sahara
Download Presentation

CDA 3100

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. CDA 3100 Recitation Week 13

  2. Design a processor: • Design a processor that only supports the ‘lwrj’ instruction. • lwrjrs, rt, rd will read the values in rs and rt, use the value of rs + the value of rtas the memory address, read from the memory a value, set rd to be that value, and go to the instruction whose address is the value of rs • Here are the components you will use (you may or may not use all of them):

  3. Design a processor: • Read the value from the PC register and use it as an index to the Instruction memory

  4. Design a processor: • R Type instruction • First 6 bits are opcode (doesn’t matter yet) • Second 5 bits are first read register (rs) • Third 5 bits are second read register (rt) • Fourth 5 bits are write register (rd) • Rest don’t matter

  5. Design a processor: • Pipe your read registers into the ALU • Use value from rs as the new PC value

  6. Design a processor: • Use result from ALU as a memory address • Send the data fetched from memory to be written to the rd register

More Related