RouterInputPort.h revision 10448
16019Shines@cs.fsu.edu/* Copyright (c) 2012 Massachusetts Institute of Technology 27111Sgblack@eecs.umich.edu * 37111Sgblack@eecs.umich.edu * Permission is hereby granted, free of charge, to any person obtaining a copy 47111Sgblack@eecs.umich.edu * of this software and associated documentation files (the "Software"), to deal 57111Sgblack@eecs.umich.edu * in the Software without restriction, including without limitation the rights 67111Sgblack@eecs.umich.edu * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 77111Sgblack@eecs.umich.edu * copies of the Software, and to permit persons to whom the Software is 87111Sgblack@eecs.umich.edu * furnished to do so, subject to the following conditions: 97111Sgblack@eecs.umich.edu * 107111Sgblack@eecs.umich.edu * The above copyright notice and this permission notice shall be included in 117111Sgblack@eecs.umich.edu * all copies or substantial portions of the Software. 127111Sgblack@eecs.umich.edu * 137111Sgblack@eecs.umich.edu * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 146019Shines@cs.fsu.edu * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 156019Shines@cs.fsu.edu * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 166019Shines@cs.fsu.edu * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 176019Shines@cs.fsu.edu * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 186019Shines@cs.fsu.edu * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 196019Shines@cs.fsu.edu * THE SOFTWARE. 206019Shines@cs.fsu.edu */ 216019Shines@cs.fsu.edu 226019Shines@cs.fsu.edu#ifndef __DSENT_MODEL_ELECTRICAL_ROUTER_ROUTER_INPUT_PORT_H__ 236019Shines@cs.fsu.edu#define __DSENT_MODEL_ELECTRICAL_ROUTER_ROUTER_INPUT_PORT_H__ 246019Shines@cs.fsu.edu 256019Shines@cs.fsu.edu#include "util/CommonType.h" 266019Shines@cs.fsu.edu#include "model/ElectricalModel.h" 276019Shines@cs.fsu.edu 286019Shines@cs.fsu.edunamespace DSENT 296019Shines@cs.fsu.edu{ 306019Shines@cs.fsu.edu class RouterInputPort : public ElectricalModel 316019Shines@cs.fsu.edu { 326019Shines@cs.fsu.edu public: 336019Shines@cs.fsu.edu RouterInputPort(const String& instance_name_, const TechModel* tech_model_); 346019Shines@cs.fsu.edu virtual ~RouterInputPort(); 356019Shines@cs.fsu.edu 366019Shines@cs.fsu.edu public: 376019Shines@cs.fsu.edu // Set a list of properties' name needed to construct model 386019Shines@cs.fsu.edu void initParameters(); 396019Shines@cs.fsu.edu // Set a list of properties' name needed to construct model 406019Shines@cs.fsu.edu void initProperties(); 416019Shines@cs.fsu.edu 426019Shines@cs.fsu.edu // Clone and return a new instance 436019Shines@cs.fsu.edu virtual RouterInputPort* clone() const; 446019Shines@cs.fsu.edu 456019Shines@cs.fsu.edu protected: 466019Shines@cs.fsu.edu // Build the model 476019Shines@cs.fsu.edu virtual void constructModel(); 487692SAli.Saidi@ARM.com virtual void propagateTransitionInfo(); 496242Sgblack@eecs.umich.edu 506019Shines@cs.fsu.edu }; // class RouterInputPort 517678Sgblack@eecs.umich.edu} // namespace DSENT 527408Sgblack@eecs.umich.edu 536216Snate@binkert.org#endif // __DSENT_MODEL_ELECTRICAL_ROUTER_ROUTER_INPUT_PORT_H__ 547720Sgblack@eecs.umich.edu 556019Shines@cs.fsu.edu