Ruby.py (12066:a4fd03c9ca5a) | Ruby.py (12564:2778478ca882) |
---|---|
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 | 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 |
42from __future__ import print_function 43 |
|
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: | 44import math 45import m5 46from m5.objects import * 47from m5.defines import buildEnv 48from m5.util import addToPath, fatal 49 50from common import MemConfig 51 --- 96 unchanged lines hidden (view full) --- 148 protocol = buildEnv['PROTOCOL'] 149 exec "import %s" % protocol 150 try: 151 (cpu_sequencers, dir_cntrls, topology) = \ 152 eval("%s.create_system(options, full_system, system, dma_ports,\ 153 ruby)" 154 % protocol) 155 except: |
154 print "Error: could not create sytem for ruby protocol %s" % protocol | 156 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 --- | 157 raise 158 159 # Create the network topology 160 topology.makeTopology(options, network, IntLinkClass, ExtLinkClass, 161 RouterClass) 162 163 # Initialize network based on topology 164 Network.init_network(options, network, InterfaceClass) --- 76 unchanged lines hidden --- |