-
Notifications
You must be signed in to change notification settings - Fork 0
/
simparams.py
69 lines (56 loc) · 1.66 KB
/
simparams.py
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
# CPU MODELS
# ----------
# Tuple: (core type, configuration file, voltage, frequency, out-of-order)
cpu_models = {
"aarch64" : {
"sc-a53-odn2" : ("HPI", "se.py", "0.82V", "1.895GHz", False)
},
"x86-64" : {
"sc-i7-6700" : ("DerivO3CPU", "se.py", "1.32V", "4.0GHz", True)
}
}
# PREFETCHER PARAMETERS
# ---------------------
# Tuple: (type, degree, latency, queue size)
hwp_config = {
"stride1" : ("StridePrefetcher", 1, 1, 0),
"stride4q" : ("StridePrefetcher", 4, 0, 4),
"stride8" : ("StridePrefetcher", 8, 1, 0)
}
# MEMORY TECHNOLOGIES
# -------------------
# Tuple: (L1I, L1D, L2, L3)
mem_technologies = {
"default": {
"sram-only" : ("sram", "sram", "sram", "none")
},
"sc-i7-6700": {
"sram-only" : ("sram", "sram", "sram", "sram")
}
}
# MEMORY CASE SCENARIOS
# ---------------------
mem_cases = {
"default": {
"typical"
}
}
# MEMORY CONFIGURATIONS
# ---------------------
# Subtuples:
# - L1I {read, write, tag, resp} latency, size, associativity
# - L1D {read, write, tag, resp} latency, size, associativity
# - L2 {read, write, tag, resp} latency, size, associativity
# - L3 {read, write, tag, resp} latency, size, associativity (optional)
mem_configs = {
"sc-i7-6700" : { # L3 size is the average per-core (2MB x 4 = 8MB total)
"sram" : {
"typical" : ((4, 4, 2, 2, '32kB', 8), (4, 4, 2, 2, '32kB', 8), (10, 10, 2, 2, '256kB', 4), (38, 38, 2, 2, '2MB', 16))
}
},
"sc-a53-odn2" : {
"sram" : {
"typical" : ((4, 4, 2, 2, '32kB', 2), (4, 4, 2, 2, '32kB', 4), (11, 11, 2, 2, '512kB', 16))
}
}
}