summaryrefslogtreecommitdiff
path: root/src/gpgpu-sim/dram.h
diff options
context:
space:
mode:
authorTor Aamodt <[email protected]>2010-10-18 02:43:17 -0800
committerTor Aamodt <[email protected]>2010-10-18 02:43:17 -0800
commit87e4da5fc6086c3d0a661af1929255a8cbd728d7 (patch)
treea4f40e66f5ca0d6efdf9d51672a1180c8a381170 /src/gpgpu-sim/dram.h
parentb577cbcdf229a2c02d1bf8584c6e82be7a14cb33 (diff)
Re-designed cache model:
- read only cache model with integrated mshrs (no L1D, yet); new cache interface should be easily extendable to support texture cache with latency fifo and separate tag/data arrays, though this is not yet added (currently tags and data arrays are not decoupled for texture) - new partition model using the above removes all old MSHRs, L1D etc... passing CUDA 3.1 regression [git-p4: depot-paths = "//depot/gpgpu_sim_research/fermi/distribution/": change = 7875]
Diffstat (limited to 'src/gpgpu-sim/dram.h')
-rw-r--r--src/gpgpu-sim/dram.h14
1 files changed, 5 insertions, 9 deletions
diff --git a/src/gpgpu-sim/dram.h b/src/gpgpu-sim/dram.h
index cf9f68d..2a94a31 100644
--- a/src/gpgpu-sim/dram.h
+++ b/src/gpgpu-sim/dram.h
@@ -125,22 +125,18 @@ class dram_t
public:
dram_t( unsigned int parition_id, const struct memory_config *config, class memory_stats_t *stats );
- int full();
+ bool full() const;
void print( FILE* simFile ) const;
void visualize() const;
void print_stat( FILE* simFile );
- unsigned int que_length() const;
+ unsigned que_length() const;
bool returnq_full() const;
unsigned int queue_limit() const;
void visualizer_print( gzFile visualizer_file );
class mem_fetch* pop();
- void returnq_push( class mem_fetch *mf, unsigned long long gpu_sim_cycle);
- class mem_fetch* returnq_pop( unsigned long long gpu_sim_cycle);
- class mem_fetch* returnq_top();
void push( class mem_fetch *data );
- void issueCMD();
- void queue_latency_log_dump( FILE *fp );
+ void cycle();
void dram_log (int task);
struct memory_partition_unit *m_memory_partition_unit;
@@ -188,7 +184,7 @@ private:
unsigned int max_mrqs;
unsigned int ave_mrqs;
- class ideal_dram_scheduler* m_fast_ideal_scheduler;
+ class frfcfs_scheduler* m_fast_ideal_scheduler;
unsigned int n_cmd_partial;
unsigned int n_activity_partial;
@@ -202,7 +198,7 @@ private:
struct memory_stats_t *m_stats;
class Stats* mrqq_Dist; //memory request queue inside DRAM
- friend class ideal_dram_scheduler;
+ friend class frfcfs_scheduler;
};
#endif /*DRAM_H*/