Mesh_westfirst.py (13731:67cd980cb20f) | Mesh_westfirst.py (13774:a1be2a0c55f2) |
---|---|
1# Copyright (c) 2010 Advanced Micro Devices, Inc. 2# 2016 Georgia Institute of Technology 3# All rights reserved. 4# 5# Redistribution and use in source and binary forms, with or without 6# modification, are permitted provided that the following conditions are 7# met: redistributions of source code must retain the above copyright 8# notice, this list of conditions and the following disclaimer; --- 13 unchanged lines hidden (view full) --- 22# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 23# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 24# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 25# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 26# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 27# 28# Authors: Brad Beckmann 29# Tushar Krishna | 1# Copyright (c) 2010 Advanced Micro Devices, Inc. 2# 2016 Georgia Institute of Technology 3# All rights reserved. 4# 5# Redistribution and use in source and binary forms, with or without 6# modification, are permitted provided that the following conditions are 7# met: redistributions of source code must retain the above copyright 8# notice, this list of conditions and the following disclaimer; --- 13 unchanged lines hidden (view full) --- 22# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 23# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 24# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 25# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 26# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 27# 28# Authors: Brad Beckmann 29# Tushar Krishna |
30from __future__ import print_function 31from __future__ import absolute_import |
|
30 31from m5.params import * 32from m5.objects import * 33 | 32 33from m5.params import * 34from m5.objects import * 35 |
34from BaseTopology import SimpleTopology | 36from .BaseTopology import SimpleTopology |
35 36# Creates a generic Mesh assuming an equal number of cache 37# and directory controllers. 38# West-first routing is enforced (using link weights) 39# to guarantee deadlock freedom. 40# The network randomly chooses between links with the same 41# weight for messages within unordered virtual networks. 42# Within ordered virtual networks, a fixed link direction --- 128 unchanged lines hidden --- | 37 38# Creates a generic Mesh assuming an equal number of cache 39# and directory controllers. 40# West-first routing is enforced (using link weights) 41# to guarantee deadlock freedom. 42# The network randomly chooses between links with the same 43# weight for messages within unordered virtual networks. 44# Within ordered virtual networks, a fixed link direction --- 128 unchanged lines hidden --- |