-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathPStream.java~
More file actions
29 lines (19 loc) · 781 Bytes
/
Copy pathPStream.java~
File metadata and controls
29 lines (19 loc) · 781 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
// Cache Project (ECE 521)
// Neal O'Hara
// ngohara @ ngohara@ncsu.edu
// 10/4/2013
//Stream buffer Prefetching
// Prefetch is enable or disabled for each cache
// has N Stream buffers
// Each buffer contains M memory blocks
// Each has M valid bits
// N = 0 disables prefetch
//
// cache receives read or write, checks cache and first entry in stream
// if miss both, prefetch and replace next X+1 through X+M into stream buffer
// no writeback from stream buffer
// if hit in stream, allocate X from stream, shift stream and fetch X+M+1
// multiple stream buffers are searched in parrallel, with LRU stream being updated
// when dirty blocks evicted from cache, that block invalidated in stream buffer
public class PStream{
}