summaryrefslogtreecommitdiff
path: root/src/gpgpu-sim/dram.h
diff options
context:
space:
mode:
authorMahmoud <[email protected]>2018-08-29 19:10:47 -0400
committerMahmoud <[email protected]>2018-08-29 19:10:47 -0400
commitb013499f5f490086c7a7c5c28b04346e79ab2635 (patch)
treeecb5a32f22deb4933c6690286cc1c15743455070 /src/gpgpu-sim/dram.h
parent944f6dbf23d792dde360d3a4f2334de3b541de52 (diff)
improving code quality 2
Diffstat (limited to 'src/gpgpu-sim/dram.h')
-rw-r--r--src/gpgpu-sim/dram.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/gpgpu-sim/dram.h b/src/gpgpu-sim/dram.h
index 0d4c0e7..965936b 100644
--- a/src/gpgpu-sim/dram.h
+++ b/src/gpgpu-sim/dram.h
@@ -93,6 +93,17 @@ struct bank_t
unsigned int bkgrpindex;
};
+enum bank_index_function{
+ LINEAR_BK_INDEX = 0,
+ BITWISE_XORING_BK_INDEX,
+ CUSTOM_BK_INDEX
+};
+
+enum bank_grp_bits_position{
+ HIGHER_BITS = 0,
+ LOWER_BITS
+};
+
struct mem_fetch;
class dram_t