From 0ba1e72e9b9c369e93b282100b0064e76191f0eb Mon Sep 17 00:00:00 2001 From: Andreas Hansson Date: Fri, 9 May 2014 18:58:48 -0400 Subject: [PATCH] mem: Remove printing of DRAM params This patch removes the redundant printing of DRAM params. --- src/mem/dram_ctrl.cc | 57 -------------------------------------------- src/mem/dram_ctrl.hh | 2 -- 2 files changed, 59 deletions(-) diff --git a/src/mem/dram_ctrl.cc b/src/mem/dram_ctrl.cc index 19a03b834..2da4b7609 100644 --- a/src/mem/dram_ctrl.cc +++ b/src/mem/dram_ctrl.cc @@ -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"); diff --git a/src/mem/dram_ctrl.hh b/src/mem/dram_ctrl.hh index ae55a2d13..c673e0595 100644 --- a/src/mem/dram_ctrl.hh +++ b/src/mem/dram_ctrl.hh @@ -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. */ -- 2.30.2