1 / 14

林仲祥 , 李苡嬋 CSIE, NTU 11 / 03, 2008

ACA2008 HW3. Simplescalar: Victim Cache. 林仲祥 , 李苡嬋 CSIE, NTU 11 / 03, 2008. ISCA’90 (Norman P. Jouppi) “Improving direct-mapped cache performance by the addition of a small fully-associative cache and prefetch buffers”. Victim Cache. 2. Victim Cache. General cache. data. Data. Hit.

beatrizd
Download Presentation

林仲祥 , 李苡嬋 CSIE, NTU 11 / 03, 2008

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. ACA2008 HW3 Simplescalar: Victim Cache 林仲祥, 李苡嬋CSIE, NTU11 / 03, 2008

  2. ISCA’90 (Norman P. Jouppi) “Improving direct-mapped cache performance by the addition of a small fully-associative cache and prefetch buffers” Victim Cache 2

  3. Victim Cache General cache data Data Hit data Miss Data Victim miss data data data Search data data data Victim cache Memory (or lower cache)

  4. Victim Cache General cache data data Miss Data data Victim miss data data data Search data data data Victim cache Memory (or lower cache)

  5. Victim Cache General cache data data Miss Data data Victim miss data data data Search data data LRU data data Victim cache Memory (or lower cache)

  6. Victim Cache General cache data data Miss Data data Victim hit data data Search data data data Victim cache Memory (or lower cache)

  7. HW3 How To Implement by SimpleScalar

  8. Software Architecture • Cache cache.c / cache.h

  9. Hardware Architecture • D-Cache L1 load store

  10. sim-outorder.c • ruu_issue(); • for loads, first scan LSQ to see if a store forward is possible, if not, access the data cache. • ruu_commit(); • stores must retire their store value to the cache at commit. store load

  11. cache.c • cache_create(); • create and initialize a general cache structure • cache_access(); • access a cache

  12. cache.c: cache_create(); • Check all cache parameters • Allocate the cache structure • Initialize user parameters • Initialize cache stats • Allocate data blocks

  13. cache.c: cache_access(); • Check for a hit • Fast hit • access to same block • Hit • access cache • update dirty (write hit) • update list by LRU policy • Miss • select the appropriate block to replace • write back replaced block data • read data block • update block tags • update dirty status (if cmd = write)

  14. Other information… • Most modifications in this homework: • cache.c • cache.h • Cache configuration (refer to hack_guide.pdf) • <name>:<nsets>:<bsize>:<assoc>:<repl> • Ex. dl1:8:32:2:l • Name = dl1 • # of set = 8 • Block size = 32 bytes • # of way = 2 • Replacement policy = LRU # of set = 8 block size = 32 bytes # of way (assoc) = 2

More Related