simulate.py (13714:35636064b7a1) simulate.py (13992:05f4102a536f)
1# Copyright (c) 2012 ARM Limited
1# Copyright (c) 2012,2019 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
9# terms below provided that you ensure that this notice is replicated

--- 41 unchanged lines hidden (view full) ---

51import _m5.core
52from _m5.stats import updateEvents as updateStatEvents
53
54from . import stats
55from . import SimObject
56from . import ticks
57from . import objects
58from m5.util.dot_writer import do_dot, do_dvfs_dot
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
9# terms below provided that you ensure that this notice is replicated

--- 41 unchanged lines hidden (view full) ---

51import _m5.core
52from _m5.stats import updateEvents as updateStatEvents
53
54from . import stats
55from . import SimObject
56from . import ticks
57from . import objects
58from m5.util.dot_writer import do_dot, do_dvfs_dot
59from m5.util.dot_writer_ruby import do_ruby_dot
59
60from .util import fatal
61from .util import attrdict
62
63# define a MaxTick parameter, unsigned 64 bit
64MaxTick = 2**64 - 1
65
66_memory_modes = {

--- 38 unchanged lines hidden (view full) ---

105 os.path.join(options.outdir, options.json_config), 'w')
106 d = root.get_config_as_dict()
107 json.dump(d, json_file, indent=4)
108 json_file.close()
109 except ImportError:
110 pass
111
112 do_dot(root, options.outdir, options.dot_config)
60
61from .util import fatal
62from .util import attrdict
63
64# define a MaxTick parameter, unsigned 64 bit
65MaxTick = 2**64 - 1
66
67_memory_modes = {

--- 38 unchanged lines hidden (view full) ---

106 os.path.join(options.outdir, options.json_config), 'w')
107 d = root.get_config_as_dict()
108 json.dump(d, json_file, indent=4)
109 json_file.close()
110 except ImportError:
111 pass
112
113 do_dot(root, options.outdir, options.dot_config)
114 do_ruby_dot(root, options.outdir, options.dot_config)
113
114 # Initialize the global statistics
115 stats.initSimStats()
116
117 # Create the C++ sim objects and connect ports
118 for obj in root.descendants(): obj.createCCObject()
119 for obj in root.descendants(): obj.connectPorts()
120

--- 253 unchanged lines hidden ---
115
116 # Initialize the global statistics
117 stats.initSimStats()
118
119 # Create the C++ sim objects and connect ports
120 for obj in root.descendants(): obj.createCCObject()
121 for obj in root.descendants(): obj.connectPorts()
122

--- 253 unchanged lines hidden ---