diff options
| author | Mahmoud <[email protected]> | 2019-08-26 12:17:52 -0400 |
|---|---|---|
| committer | Mahmoud <[email protected]> | 2019-08-26 12:17:52 -0400 |
| commit | c2a1e3a668f9a88239184e13460f7e1725b15c90 (patch) | |
| tree | 0546cc50d6e222072add55e36999a338b925d807 /src/gpgpu-sim/gpu-cache.h | |
| parent | 56c52cf6c4b369e9fd05759e9b16ea37ff6e332c (diff) | |
Banked L1, adding iSLIP and RR arbiteratio and adding some comments
Diffstat (limited to 'src/gpgpu-sim/gpu-cache.h')
| -rw-r--r-- | src/gpgpu-sim/gpu-cache.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gpgpu-sim/gpu-cache.h b/src/gpgpu-sim/gpu-cache.h index 337f710..90adbb5 100644 --- a/src/gpgpu-sim/gpu-cache.h +++ b/src/gpgpu-sim/gpu-cache.h @@ -584,6 +584,7 @@ public: m_nset_log2 = LOGB2(m_nset); m_valid = true; m_atom_sz = (m_cache_type == SECTOR)? SECTOR_SIZE : m_line_sz; + m_sector_sz_log2 = LOGB2(SECTOR_SIZE); original_m_assoc = m_assoc; //For more details about difference between FETCH_ON_WRITE and WRITE VALIDAE policies @@ -734,6 +735,7 @@ protected: unsigned m_nset_log2; unsigned m_assoc; unsigned m_atom_sz; + unsigned m_sector_sz_log2; unsigned original_m_assoc; bool m_is_streaming; @@ -775,7 +777,9 @@ class l1d_cache_config : public cache_config{ public: l1d_cache_config() : cache_config(){} virtual unsigned set_index(new_addr_type addr) const; + unsigned set_bank(new_addr_type addr) const; unsigned l1_latency; + unsigned l1_banks; }; class l2_cache_config : public cache_config { |
