MemTimingSpec.h revision 11555:2efa95cf8504
16166Ssteve.reinhardt@amd.com/* 26166Ssteve.reinhardt@amd.com * Copyright (c) 2012-2014, TU Delft 36166Ssteve.reinhardt@amd.com * Copyright (c) 2012-2014, TU Eindhoven 46166Ssteve.reinhardt@amd.com * Copyright (c) 2012-2014, TU Kaiserslautern 56166Ssteve.reinhardt@amd.com * All rights reserved. 66166Ssteve.reinhardt@amd.com * 76166Ssteve.reinhardt@amd.com * Redistribution and use in source and binary forms, with or without 86166Ssteve.reinhardt@amd.com * modification, are permitted provided that the following conditions are 96166Ssteve.reinhardt@amd.com * met: 106166Ssteve.reinhardt@amd.com * 116166Ssteve.reinhardt@amd.com * 1. Redistributions of source code must retain the above copyright 126166Ssteve.reinhardt@amd.com * notice, this list of conditions and the following disclaimer. 136166Ssteve.reinhardt@amd.com * 146166Ssteve.reinhardt@amd.com * 2. Redistributions in binary form must reproduce the above copyright 156166Ssteve.reinhardt@amd.com * notice, this list of conditions and the following disclaimer in the 166166Ssteve.reinhardt@amd.com * documentation and/or other materials provided with the distribution. 176166Ssteve.reinhardt@amd.com * 186166Ssteve.reinhardt@amd.com * 3. Neither the name of the copyright holder nor the names of its 196166Ssteve.reinhardt@amd.com * contributors may be used to endorse or promote products derived from 206166Ssteve.reinhardt@amd.com * this software without specific prior written permission. 216166Ssteve.reinhardt@amd.com * 226166Ssteve.reinhardt@amd.com * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS 236166Ssteve.reinhardt@amd.com * IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED 246166Ssteve.reinhardt@amd.com * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A 256166Ssteve.reinhardt@amd.com * PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 266166Ssteve.reinhardt@amd.com * HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 276166Ssteve.reinhardt@amd.com * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED 286166Ssteve.reinhardt@amd.com * TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR 296166Ssteve.reinhardt@amd.com * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF 306166Ssteve.reinhardt@amd.com * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING 316166Ssteve.reinhardt@amd.com * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 326166Ssteve.reinhardt@amd.com * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 336166Ssteve.reinhardt@amd.com * 346166Ssteve.reinhardt@amd.com * Authors: Karthik Chandrasekar, Sven Goossens 356166Ssteve.reinhardt@amd.com * 366166Ssteve.reinhardt@amd.com */ 376289Snate@binkert.org 386289Snate@binkert.org#include <stdint.h> 396289Snate@binkert.org 406166Ssteve.reinhardt@amd.com#include "Parametrisable.h" 416166Ssteve.reinhardt@amd.com 426289Snate@binkert.orgnamespace Data { 436166Ssteve.reinhardt@amd.comclass MemTimingSpec : public virtual Parametrisable { 446166Ssteve.reinhardt@amd.com public: 456166Ssteve.reinhardt@amd.com MemTimingSpec(); 466166Ssteve.reinhardt@amd.com void processParameters(); 476166Ssteve.reinhardt@amd.com 486166Ssteve.reinhardt@amd.com double clkMhz; 496166Ssteve.reinhardt@amd.com int64_t RC; 506166Ssteve.reinhardt@amd.com int64_t RCD; 516166Ssteve.reinhardt@amd.com int64_t CCD; 526166Ssteve.reinhardt@amd.com int64_t CCD_S; 536166Ssteve.reinhardt@amd.com int64_t CCD_L; 546166Ssteve.reinhardt@amd.com int64_t RRD; 556166Ssteve.reinhardt@amd.com int64_t RRD_S; 566166Ssteve.reinhardt@amd.com int64_t RRD_L; 57 int64_t FAW; 58 int64_t TAW; 59 int64_t WTR; 60 int64_t WTR_S; 61 int64_t WTR_L; 62 int64_t REFI; 63 int64_t RL; 64 int64_t RP; 65 int64_t RFC; 66 int64_t RAS; 67 int64_t WL; 68 int64_t AL; 69 int64_t DQSCK; 70 int64_t RTP; 71 int64_t WR; 72 int64_t XP; 73 int64_t XPDLL; 74 int64_t XS; 75 int64_t XSDLL; 76 int64_t CKE; 77 int64_t CKESR; 78 double clkPeriod; 79}; 80} 81