Network.py revision 9338
12381SN/A# Copyright (c) 2009 Advanced Micro Devices, Inc. 28853Sandreas.hansson@arm.com# All rights reserved. 38711Sandreas.hansson@arm.com# 48711Sandreas.hansson@arm.com# Redistribution and use in source and binary forms, with or without 58711Sandreas.hansson@arm.com# modification, are permitted provided that the following conditions are 68711Sandreas.hansson@arm.com# met: redistributions of source code must retain the above copyright 78711Sandreas.hansson@arm.com# notice, this list of conditions and the following disclaimer; 88711Sandreas.hansson@arm.com# redistributions in binary form must reproduce the above copyright 98711Sandreas.hansson@arm.com# notice, this list of conditions and the following disclaimer in the 108711Sandreas.hansson@arm.com# documentation and/or other materials provided with the distribution; 118711Sandreas.hansson@arm.com# neither the name of the copyright holders nor the names of its 128711Sandreas.hansson@arm.com# contributors may be used to endorse or promote products derived from 138711Sandreas.hansson@arm.com# this software without specific prior written permission. 142381SN/A# 152381SN/A# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 162381SN/A# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 172381SN/A# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 182381SN/A# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 192381SN/A# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 202381SN/A# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 212381SN/A# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 222381SN/A# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 232381SN/A# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 242381SN/A# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 252381SN/A# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 262381SN/A# 272381SN/A# Authors: Steve Reinhardt 282381SN/A# Brad Beckmann 292381SN/A 302381SN/Afrom m5.params import * 312381SN/Afrom m5.SimObject import SimObject 322381SN/Afrom BasicLink import BasicLink 332381SN/A 342381SN/Aclass Topology(SimObject): 352381SN/A type = 'Topology' 362381SN/A cxx_header = "mem/ruby/network/Topology.hh" 372381SN/A description = Param.String("Not Specified", 382381SN/A "the name of the imported topology module") 392665Ssaidi@eecs.umich.edu ext_links = VectorParam.BasicExtLink("Links to external nodes") 402665Ssaidi@eecs.umich.edu int_links = VectorParam.BasicIntLink("Links between internal nodes") 418853Sandreas.hansson@arm.com routers = VectorParam.BasicRouter("Network routers") 428922Swilliam.wang@arm.com print_config = Param.Bool(False, 432381SN/A "display topology config in the stats file") 442381SN/A 452381SN/Aclass RubyNetwork(SimObject): 462381SN/A type = 'RubyNetwork' 478922Swilliam.wang@arm.com cxx_class = 'Network' 482381SN/A cxx_header = "mem/ruby/network/Network.hh" 492381SN/A abstract = True 502381SN/A number_of_virtual_networks = Param.Int(10, ""); 512381SN/A topology = Param.Topology(""); 522381SN/A control_msg_size = Param.Int(8, ""); 532381SN/A ruby_system = Param.RubySystem(""); 542381SN/A