diff options
| author | Mahmoud <[email protected]> | 2019-04-11 22:32:08 -0400 |
|---|---|---|
| committer | Mahmoud <[email protected]> | 2019-04-11 22:32:08 -0400 |
| commit | ec2ada3b5f2ef91341d30e8f56f3c4d9ecafb2a4 (patch) | |
| tree | 8dc5adbbde6c74c5665e348bfea7e2bc7f5988f5 /src/gpgpu-sim/addrdec.h | |
| parent | bb7ed349e146ea6b9ef1100d81fa7ac5ef2751cb (diff) | |
adding some stats and random hashing
Diffstat (limited to 'src/gpgpu-sim/addrdec.h')
| -rw-r--r-- | src/gpgpu-sim/addrdec.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/gpgpu-sim/addrdec.h b/src/gpgpu-sim/addrdec.h index bdc5fec..a5333fb 100644 --- a/src/gpgpu-sim/addrdec.h +++ b/src/gpgpu-sim/addrdec.h @@ -40,6 +40,7 @@ enum partition_index_function{ BITWISE_PERMUTATION, IPOLY, PAE, + RANDOM, CUSTOM }; @@ -55,6 +56,7 @@ struct addrdec_t { unsigned sub_partition; }; + class linear_to_raw_address_translation { public: linear_to_raw_address_translation(); @@ -62,7 +64,7 @@ public: void init(unsigned int n_channel, unsigned int n_sub_partition_in_channel); // accessors - void addrdec_tlx(new_addr_type addr, addrdec_t *tlx) const; + void addrdec_tlx(new_addr_type addr, addrdec_t *tlx) const; new_addr_type partition_address( new_addr_type addr ) const; private: @@ -92,6 +94,7 @@ private: unsigned int gap; int m_n_channel; int m_n_sub_partition_in_channel; + }; #endif |
