dram_ctrl.hh (10216:52c869140fc2) | dram_ctrl.hh (10245:70333502b9b5) |
---|---|
1/* 2 * Copyright (c) 2012-2014 ARM Limited 3 * All rights reserved 4 * 5 * The license below extends only to copyright in the software and shall 6 * not be construed as granting a license to any other intellectual 7 * property including but not limited to intellectual property relating 8 * to a hardware implementation of the functionality of the software --- 197 unchanged lines hidden (view full) --- 206 /** This comes from the outside world */ 207 const PacketPtr pkt; 208 209 const bool isRead; 210 211 /** Will be populated by address decoder */ 212 const uint8_t rank; 213 const uint8_t bank; | 1/* 2 * Copyright (c) 2012-2014 ARM Limited 3 * All rights reserved 4 * 5 * The license below extends only to copyright in the software and shall 6 * not be construed as granting a license to any other intellectual 7 * property including but not limited to intellectual property relating 8 * to a hardware implementation of the functionality of the software --- 197 unchanged lines hidden (view full) --- 206 /** This comes from the outside world */ 207 const PacketPtr pkt; 208 209 const bool isRead; 210 211 /** Will be populated by address decoder */ 212 const uint8_t rank; 213 const uint8_t bank; |
214 const uint16_t row; | 214 const uint32_t row; |
215 216 /** 217 * Bank id is calculated considering banks in all the ranks 218 * eg: 2 ranks each with 8 banks, then bankId = 0 --> rank0, bank0 and 219 * bankId = 8 --> rank1, bank0 220 */ 221 const uint16_t bankId; 222 --- 14 unchanged lines hidden (view full) --- 237 /** 238 * A pointer to the BurstHelper if this DRAMPacket is a split packet 239 * If not a split packet (common case), this is set to NULL 240 */ 241 BurstHelper* burstHelper; 242 Bank& bankRef; 243 244 DRAMPacket(PacketPtr _pkt, bool is_read, uint8_t _rank, uint8_t _bank, | 215 216 /** 217 * Bank id is calculated considering banks in all the ranks 218 * eg: 2 ranks each with 8 banks, then bankId = 0 --> rank0, bank0 and 219 * bankId = 8 --> rank1, bank0 220 */ 221 const uint16_t bankId; 222 --- 14 unchanged lines hidden (view full) --- 237 /** 238 * A pointer to the BurstHelper if this DRAMPacket is a split packet 239 * If not a split packet (common case), this is set to NULL 240 */ 241 BurstHelper* burstHelper; 242 Bank& bankRef; 243 244 DRAMPacket(PacketPtr _pkt, bool is_read, uint8_t _rank, uint8_t _bank, |
245 uint16_t _row, uint16_t bank_id, Addr _addr, | 245 uint32_t _row, uint16_t bank_id, Addr _addr, |
246 unsigned int _size, Bank& bank_ref) 247 : entryTime(curTick()), readyTime(curTick()), 248 pkt(_pkt), isRead(is_read), rank(_rank), bank(_bank), row(_row), 249 bankId(bank_id), addr(_addr), size(_size), burstHelper(NULL), 250 bankRef(bank_ref) 251 { } 252 253 }; --- 135 unchanged lines hidden (view full) --- 389 * 390 * @param act_tick Time when the activation takes place 391 * @param rank Index of the rank 392 * @param bank Index of the bank 393 * @param row Index of the row 394 * @param bank_ref Reference to the bank 395 */ 396 void activateBank(Tick act_tick, uint8_t rank, uint8_t bank, | 246 unsigned int _size, Bank& bank_ref) 247 : entryTime(curTick()), readyTime(curTick()), 248 pkt(_pkt), isRead(is_read), rank(_rank), bank(_bank), row(_row), 249 bankId(bank_id), addr(_addr), size(_size), burstHelper(NULL), 250 bankRef(bank_ref) 251 { } 252 253 }; --- 135 unchanged lines hidden (view full) --- 389 * 390 * @param act_tick Time when the activation takes place 391 * @param rank Index of the rank 392 * @param bank Index of the bank 393 * @param row Index of the row 394 * @param bank_ref Reference to the bank 395 */ 396 void activateBank(Tick act_tick, uint8_t rank, uint8_t bank, |
397 uint16_t row, Bank& bank_ref); | 397 uint32_t row, Bank& bank_ref); |
398 399 /** 400 * Precharge a given bank and also update when the precharge is 401 * done. This will also deal with any stats related to the 402 * accesses to the open page. 403 * 404 * @param bank The bank to precharge 405 * @param pre_at Time when the precharge takes place --- 286 unchanged lines hidden --- | 398 399 /** 400 * Precharge a given bank and also update when the precharge is 401 * done. This will also deal with any stats related to the 402 * accesses to the open page. 403 * 404 * @param bank The bank to precharge 405 * @param pre_at Time when the precharge takes place --- 286 unchanged lines hidden --- |