1 / 16

CPU Optimization

CPU Optimization. Cache and Pipelines. ม.ค. – พ.ค. 2008 58,378 คัน *. 11,676 ต่อเดือน, 389 ต่อวัน, 16 คันต่อชั่วโมง. คันละ 3:45 นาที. *source: manager.co.th (16/6/2008). Henry Ford’s Model T – First Affordable Car. 15 Million cars were produced between 1908 and 1927.

penn
Download Presentation

CPU Optimization

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. CPU Optimization Cache and Pipelines

  2. ม.ค. – พ.ค. 2008 58,378 คัน* 11,676 ต่อเดือน, 389 ต่อวัน, 16 คันต่อชั่วโมง คันละ 3:45 นาที *source: manager.co.th (16/6/2008)

  3. Henry Ford’s Model T – First Affordable Car 15 Million cars were produced between 1908 and 1927 2.9 L Engine, 20 HP

  4. 1.5 Hrs • First car to use a moving assembly line • Assembly time reduced from 12.5hrs to 1.5hrs • A new car came off the line every 3miutes

  5. Cache Using a small amount of faster memory to store frequently used items from the slower main memory Analogy Internet 1.Direct Download HDD 2. Save & Open

  6. Processor Cache & Pipeline?

  7. FLASH RAM Instruction Cache ALU

  8. (ในกรณีที่ทุกคำสั่งที่ CPU ต้องการนั้นมีอยู่ใน Cache)

  9. Pre-fetch CacheFill up the cache .................... inti; .................... i = 3; 000D: MOVLW 03 000E: BCF 03.5 000F: MOVWF 21 .................... .................... do { .................... i--; 0010: DECF 21,F .................... } while (i>0); 0011: MOVF 21,F 0012: BTFSS 03.2 0013: GOTO 010 .................... .................... .................... } 0014: SLEEP

  10. Buffered CacheFetch current instruction only .................... inti; .................... i = 3; 000D: MOVLW 05 000E: BCF 03.5 000F: MOVWF 21 .................... .................... do { .................... i--; 0010: DECF 21,F .................... } while (i>0); 0011: MOVF 21,F 0012: BTFSS 03.2 0013: GOTO 010 .................... .................... .................... } 0014: SLEEP

More Related