1# Copyright (c) 2012, 2017 ARM Limited
2# All rights reserved.
3#
4# The license below extends only to copyright in the software and shall
5# not be construed as granting a license to any other intellectual
6# property including but not limited to intellectual property relating
7# to a hardware implementation of the functionality of the software
8# licensed hereunder. You may use the software subject to the license
--- 25 unchanged lines hidden (view full) ---
34# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
35# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
36# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
37# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
38# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
39#
40# Authors: Brad Beckmann
41
42import math
43import m5
44from m5.objects import *
45from m5.defines import buildEnv
46from m5.util import addToPath, fatal
47
48from common import MemConfig
49
--- 96 unchanged lines hidden (view full) ---
146 protocol = buildEnv['PROTOCOL']
147 exec "import %s" % protocol
148 try:
149 (cpu_sequencers, dir_cntrls, topology) = \
150 eval("%s.create_system(options, full_system, system, dma_ports,\
151 ruby)"
152 % protocol)
153 except:
154 print "Error: could not create sytem for ruby protocol %s" % protocol
155 raise
156
157 # Create the network topology
158 topology.makeTopology(options, network, IntLinkClass, ExtLinkClass,
159 RouterClass)
160
161 # Initialize network based on topology
162 Network.init_network(options, network, InterfaceClass)
--- 76 unchanged lines hidden ---
2# All rights reserved.
3#
4# The license below extends only to copyright in the software and shall
5# not be construed as granting a license to any other intellectual
6# property including but not limited to intellectual property relating
7# to a hardware implementation of the functionality of the software
8# licensed hereunder. You may use the software subject to the license
--- 25 unchanged lines hidden (view full) ---
34# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
35# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
36# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
37# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
38# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
39#
40# Authors: Brad Beckmann
41
42import math
43import m5
44from m5.objects import *
45from m5.defines import buildEnv
46from m5.util import addToPath, fatal
47
48from common import MemConfig
49
--- 96 unchanged lines hidden (view full) ---
146 protocol = buildEnv['PROTOCOL']
147 exec "import %s" % protocol
148 try:
149 (cpu_sequencers, dir_cntrls, topology) = \
150 eval("%s.create_system(options, full_system, system, dma_ports,\
151 ruby)"
152 % protocol)
153 except:
154 print "Error: could not create sytem for ruby protocol %s" % protocol
155 raise
156
157 # Create the network topology
158 topology.makeTopology(options, network, IntLinkClass, ExtLinkClass,
159 RouterClass)
160
161 # Initialize network based on topology
162 Network.init_network(options, network, InterfaceClass)
--- 76 unchanged lines hidden ---