Ruby.py (9791:39c75548bcd4) | Ruby.py (9793:6e6cefc1db1f) |
---|---|
1# Copyright (c) 2012 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 --- 81 unchanged lines hidden (view full) --- 90 This is a wrapper for the legacy topologies. 91 """ 92 exec "import %s as Topo" % options.topology 93 topology = eval("Topo.%s(controllers)" % options.topology) 94 return topology 95 96def create_system(options, system, piobus = None, dma_ports = []): 97 | 1# Copyright (c) 2012 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 --- 81 unchanged lines hidden (view full) --- 90 This is a wrapper for the legacy topologies. 91 """ 92 exec "import %s as Topo" % options.topology 93 topology = eval("Topo.%s(controllers)" % options.topology) 94 return topology 95 96def create_system(options, system, piobus = None, dma_ports = []): 97 |
98 system.ruby = RubySystem(clock = options.ruby_clock, 99 stats_filename = options.ruby_stats, | 98 system.ruby = RubySystem(stats_filename = options.ruby_stats, |
100 no_mem_vec = options.use_map) 101 ruby = system.ruby 102 103 protocol = buildEnv['PROTOCOL'] 104 exec "import %s" % protocol 105 try: 106 (cpu_sequencers, dir_cntrls, topology) = \ 107 eval("%s.create_system(options, system, piobus, dma_ports, ruby)" --- 90 unchanged lines hidden --- | 99 no_mem_vec = options.use_map) 100 ruby = system.ruby 101 102 protocol = buildEnv['PROTOCOL'] 103 exec "import %s" % protocol 104 try: 105 (cpu_sequencers, dir_cntrls, topology) = \ 106 eval("%s.create_system(options, system, piobus, dma_ports, ruby)" --- 90 unchanged lines hidden --- |