From 87e4da5fc6086c3d0a661af1929255a8cbd728d7 Mon Sep 17 00:00:00 2001 From: Tor Aamodt Date: Mon, 18 Oct 2010 02:43:17 -0800 Subject: 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] --- src/gpgpu-sim/dram.h | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) (limited to 'src/gpgpu-sim/dram.h') 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*/ -- cgit v1.3