⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 tpower.h

📁 noxim系统的软件实现
💻 H
字号:
/*****************************************************************************  TPower.h -- Power model *****************************************************************************//* Copyright 2005-2007      Fabrizio Fazzino <fabrizio.fazzino@diit.unict.it>    Maurizio Palesi <mpalesi@diit.unict.it>    Davide Patti <dpatti@diit.unict.it> *  This program is free software; you can redistribute it and/or modify *  it under the terms of the GNU General Public License as published by *  the Free Software Foundation; either version 2 of the License, or *  (at your option) any later version. * *  This program is distributed in the hope that it will be useful, *  but WITHOUT ANY WARRANTY; without even the implied warranty of *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the *  GNU General Public License for more details. * *  You should have received a copy of the GNU General Public License *  along with this program; if not, write to the Free Software *  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */#ifndef __TPOWER_H__#define __TPOWER_H__// ---------------------------------------------------------------------------/*The average energy dissipated by a flit for a hop switch was estimatedas being 0.151nJ, 0.178nJ, 0.182nJ and 0.189nJ for XY, Odd-Even, DyAD,and NoP-OE respectivelyWe assumed the tile size to be 2mm x 2mm and that the tiles werearranged in a regular fashion on the floorplan. The load wirecapacitance was set to 0.50fF per micron, so considering an average of25% switching activity the amount of energy consumed by a flit for ahop interconnect is 0.384nJ.*/#define PWR_ROUTING_XY             0.151e-9#define PWR_ROUTING_WEST_FIRST     0.155e-9#define PWR_ROUTING_NORTH_LAST     0.155e-9#define PWR_ROUTING_NEGATIVE_FIRST 0.155e-9#define PWR_ROUTING_ODD_EVEN       0.178e-9#define PWR_ROUTING_DYAD           0.182e-9#define PWR_ROUTING_FULLY_ADAPTIVE 0.0#define PWR_ROUTING_TABLE_BASED    0.185e-9#define PWR_SEL_RANDOM             0.002e-9#define PWR_SEL_BUFFER_LEVEL       0.006e-9#define PWR_SEL_NOP                0.012e-9#define PWR_FORWARD_FLIT           0.384e-9#define PWR_INCOMING               0.002e-9#define PWR_STANDBY                0.0001e-9/2.0// ---------------------------------------------------------------------------class TPower{ public:  TPower();  void Routing();  void Selection();  void Standby();  void Forward();  void Incoming();  double getPower() { return pwr; }  double getPwrRouting() { return pwr_routing; }  double getPwrSelection() { return pwr_selection; }  double getPwrForward() { return pwr_forward; }  double getPwrStandBy() { return pwr_standby; }  double getPwrIncoming() { return pwr_incoming; } private:  double pwr_routing;  double pwr_selection;  double pwr_forward;  double pwr_standby;  double pwr_incoming;  double pwr;};// ---------------------------------------------------------------------------#endif

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -