BasicRouter.py revision 11664
18257SBrad.Beckmann@amd.com# Copyright (c) 2011 Advanced Micro Devices, Inc. 28257SBrad.Beckmann@amd.com# All rights reserved. 38257SBrad.Beckmann@amd.com# 48257SBrad.Beckmann@amd.com# Redistribution and use in source and binary forms, with or without 58257SBrad.Beckmann@amd.com# modification, are permitted provided that the following conditions are 68257SBrad.Beckmann@amd.com# met: redistributions of source code must retain the above copyright 78257SBrad.Beckmann@amd.com# notice, this list of conditions and the following disclaimer; 88257SBrad.Beckmann@amd.com# redistributions in binary form must reproduce the above copyright 98257SBrad.Beckmann@amd.com# notice, this list of conditions and the following disclaimer in the 108257SBrad.Beckmann@amd.com# documentation and/or other materials provided with the distribution; 118257SBrad.Beckmann@amd.com# neither the name of the copyright holders nor the names of its 128257SBrad.Beckmann@amd.com# contributors may be used to endorse or promote products derived from 138257SBrad.Beckmann@amd.com# this software without specific prior written permission. 148257SBrad.Beckmann@amd.com# 158257SBrad.Beckmann@amd.com# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 168257SBrad.Beckmann@amd.com# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 178257SBrad.Beckmann@amd.com# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 188257SBrad.Beckmann@amd.com# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 198257SBrad.Beckmann@amd.com# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 208257SBrad.Beckmann@amd.com# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 218257SBrad.Beckmann@amd.com# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 228257SBrad.Beckmann@amd.com# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 238257SBrad.Beckmann@amd.com# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 248257SBrad.Beckmann@amd.com# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 258257SBrad.Beckmann@amd.com# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 268257SBrad.Beckmann@amd.com# 278257SBrad.Beckmann@amd.com# Authors: Steve Reinhardt 288257SBrad.Beckmann@amd.com# Brad Beckmann 298257SBrad.Beckmann@amd.com 308257SBrad.Beckmann@amd.comfrom m5.params import * 319465Snilay@cs.wisc.edufrom ClockedObject import ClockedObject 328257SBrad.Beckmann@amd.com 339465Snilay@cs.wisc.educlass BasicRouter(ClockedObject): 348257SBrad.Beckmann@amd.com type = 'BasicRouter' 359338SAndreas.Sandberg@arm.com cxx_header = "mem/ruby/network/BasicRouter.hh" 368257SBrad.Beckmann@amd.com router_id = Param.Int("ID in relation to other routers") 3711664Stushar@ece.gatech.edu latency = Param.Cycles(1, "number of cycles inside router") 38