mem: Remove printing of DRAM params
authorAndreas Hansson <andreas.hansson@arm.com>
Fri, 9 May 2014 22:58:48 +0000 (18:58 -0400)
committerAndreas Hansson <andreas.hansson@arm.com>
Fri, 9 May 2014 22:58:48 +0000 (18:58 -0400)
This patch removes the redundant printing of DRAM params.

src/mem/dram_ctrl.cc
src/mem/dram_ctrl.hh

index 19a03b834dab7d2611b9158b4d56344c228fa98e..2da4b76099a60745fb5ceb313fef88cd679af46e 100644 (file)
@@ -165,9 +165,6 @@ DRAMCtrl::startup()
     // start of simulation
     busBusyUntil = curTick() + tRP + tRCD + tCL;
 
-    // print the configuration of the controller
-    printParams();
-
     // kick off the refresh, and give ourselves enough time to
     // precharge
     schedule(refreshEvent, curTick() + tREFI - tRP);
@@ -512,60 +509,6 @@ DRAMCtrl::addToWriteQueue(PacketPtr pkt, unsigned int pktCount)
     }
 }
 
-void
-DRAMCtrl::printParams() const
-{
-    // Sanity check print of important parameters
-    DPRINTF(DRAM,
-            "Memory controller %s physical organization\n"      \
-            "Number of devices per rank   %d\n"                 \
-            "Device bus width (in bits)   %d\n"                 \
-            "DRAM data bus burst (bytes)  %d\n"                 \
-            "Row buffer size (bytes)      %d\n"                 \
-            "Columns per row buffer       %d\n"                 \
-            "Rows    per bank             %d\n"                 \
-            "Banks   per rank             %d\n"                 \
-            "Ranks   per channel          %d\n"                 \
-            "Total mem capacity (bytes)   %u\n",
-            name(), devicesPerRank, deviceBusWidth, burstSize, rowBufferSize,
-            columnsPerRowBuffer, rowsPerBank, banksPerRank, ranksPerChannel,
-            rowBufferSize * rowsPerBank * banksPerRank * ranksPerChannel);
-
-    string scheduler =  memSchedPolicy == Enums::fcfs ? "FCFS" : "FR-FCFS";
-    string address_mapping = addrMapping == Enums::RoRaBaChCo ? "RoRaBaChCo" :
-        (addrMapping == Enums::RoRaBaCoCh ? "RoRaBaCoCh" : "RoCoRaBaCh");
-    string page_policy = pageMgmt == Enums::open ? "OPEN" :
-        (pageMgmt == Enums::open_adaptive ? "OPEN (adaptive)" :
-        (pageMgmt == Enums::close_adaptive ? "CLOSE (adaptive)" : "CLOSE"));
-
-    DPRINTF(DRAM,
-            "Memory controller %s characteristics\n"    \
-            "Read buffer size     %d\n"                 \
-            "Write buffer size    %d\n"                 \
-            "Write high thresh    %d\n"                 \
-            "Write low thresh     %d\n"                 \
-            "Scheduler            %s\n"                 \
-            "Address mapping      %s\n"                 \
-            "Page policy          %s\n",
-            name(), readBufferSize, writeBufferSize, writeHighThreshold,
-            writeLowThreshold, scheduler, address_mapping, page_policy);
-
-    DPRINTF(DRAM, "Memory controller %s timing specs\n" \
-            "tRCD      %d ticks\n"                        \
-            "tCL       %d ticks\n"                        \
-            "tRP       %d ticks\n"                        \
-            "tBURST    %d ticks\n"                        \
-            "tRFC      %d ticks\n"                        \
-            "tREFI     %d ticks\n"                        \
-            "tWTR      %d ticks\n"                        \
-            "tRTW      %d ticks\n"                        \
-            "tWR       %d ticks\n"                        \
-            "tRTP      %d ticks\n"                        \
-            "tXAW (%d) %d ticks\n",
-            name(), tRCD, tCL, tRP, tBURST, tRFC, tREFI, tWTR,
-            tRTW, tWR, tRTP, activationLimit, tXAW);
-}
-
 void
 DRAMCtrl::printQs() const {
     DPRINTF(DRAM, "===READ QUEUE===\n\n");
index ae55a2d1365ef1cbff180f3d5f615ffd15c3e4f4..c673e059507d53621fc0e6984df8c0d706f29bf8 100644 (file)
@@ -414,8 +414,6 @@ class DRAMCtrl : public AbstractMemory
      */
     void prechargeBank(Bank& bank, Tick pre_at);
 
-    void printParams() const;
-
     /**
      * Used for debugging to observe the contents of the queues.
      */