cpu organization
play

CPU ORGANIZATION Mahdi Nazm Bojnordi Assistant Professor School of - PowerPoint PPT Presentation

CPU ORGANIZATION Mahdi Nazm Bojnordi Assistant Professor School of Computing University of Utah CS/ECE 3810: Computer Organization Overview Notes Homework 8 is due Thursday (Mar. 28 th ) n Verify your submitted file before midnight


  1. CPU ORGANIZATION Mahdi Nazm Bojnordi Assistant Professor School of Computing University of Utah CS/ECE 3810: Computer Organization

  2. Overview ¨ Notes ¤ Homework 8 is due Thursday (Mar. 28 th ) n Verify your submitted file before midnight ¨ This lecture ¤ Single Cycle Processor ¤ Multi-Cycle/Pipelined Processor

  3. Recall: Clocking the Processor ¨ Fetch unit is involved in processing all instructions ¤ Program counter (PC) and instruction memory ¨ Which of the units need a clock? ¨ What is being saved (latched) on the rising edge of the clock? ¨ The latched value remains there for an entire cycle

  4. R-type Instructions ¨ Instructions of the form ¤ Example: add $t1, $t2, $t3 ¨ Registers and ALU

  5. I-type Instructions ¨ Instructions of the form ¤ Examples: lw $t1, 8($t2) and sw $t1, 8($t2) ¨ Registers, ALU, and data memory ¤ Where is the constant operand

  6. I-type Instructions ¨ Instructions of the form ¤ Examples: lw $t1, 8($t2) and sw $t1, 8($t2) ¨ Registers, ALU, and data memory ¤ Where is the constant operand

  7. J-type Instructions ¨ Instructions of the form ¤ Example: beq $t1, $t2, offset

  8. The Processor Datapath ¨ Control signals are generated per instruction

  9. The Single Cycle MIPS Processor ¨ A new PC is locked at the beginning of each cycle

  10. Processing Instructions ¨ A sequence of processing tasks per instruction

  11. Processing Instructions ¨ Every RISC instruction may Processor require multiple processing steps functional register ¤ Instruction Fetch (IF) units file ¤ Instruction Decode (ID) ¤ Register Read (RR) n All instructions? ¤ Execute Instructions (EXE) instructions data ¤ Memory Access (MEM) n All instructions? Memory ¤ Register Write Back (WB)

  12. Single-cycle MIPS Architecture ¨ Example: simple MIPS architecture ¤ Critical path includes all of the processing steps Write Back Controller PC Inst. Register Data ALU Memory File Memory Inst. Fetch Inst. Decode Execute Memory

  13. Single-cycle RISC Architecture ¨ Example program ¤ CT=6ns; CPU Time = ? AND $1,$2,$3 XOR $4,$2,$3 SUB $5,$1,$4 ADD $6,$1,$4 MUL $7,$5,$6 Time

  14. Single-cycle RISC Architecture ¨ Example program ¤ CT=6ns; CPU Time = 5 x 6ns = 30ns AND $1,$2,$3 How to improve? XOR $4,$2,$3 SUB $5,$1,$4 ADD $6,$1,$4 MUL $7,$5,$6 Time

  15. Reusing Idle Resources ¨ Each processing step finishes in a fraction of a cycle ¤ Idle resources can be reused for processing next instructions Write Back PC Inst. Register Data ALU Memory File Memory Inst. Fetch Inst. Decode Execute Memory

  16. Pipelined Architecture ¨ Five stage pipeline ¤ Critical path determines the cycle time 0.7ns Write Back PC Inst. Register Data ALU Memory File Memory Inst. Fetch Inst. Decode Execute Memory 1.5ns 1.05ns 1.25ns 1.5ns

Download Presentation
Download Policy: The content available on the website is offered to you 'AS IS' for your personal information and use only. It cannot be commercialized, licensed, or distributed on other websites without prior consent from the author. To download a presentation, simply click this link. If you encounter any difficulties during the download process, it's possible that the publisher has removed the file from their server.

Recommend


More recommend