Searched refs:self (Results 176 - 200 of 275) sorted by relevance

1234567891011

/gem5/util/pbs/
H A Djob.py48 def __init__(self):
49 self.sudo = False
50 self.rsync = 'rsync'
51 self.compress = False
52 self.archive = True
53 self.delete = False
54 self.options = ''
56 def do(self, src, dst):
58 if self.sudo:
61 args.append(self
[all...]
/gem5/src/arch/
H A Dmicro_asm.py49 def __init__(self, name):
50 self.microops = []
51 self.name = name
52 self.directives = {}
53 self.micro_classes = {}
54 self.labels = {}
56 def add_microop(self, mnemonic, microop):
57 self.microops.append(microop)
59 def __str__(self):
60 string = "%s:\n" % self
[all...]
/gem5/ext/ply/ply/
H A Dcpp.py124 def __init__(self,name,value,arglist=None,variadic=False):
125 self.name = name
126 self.value = value
127 self.arglist = arglist
128 self.variadic = variadic
130 self.vararg = arglist[-1]
131 self.source = None
141 def __init__(self,lexer=None):
144 self.lexer = lexer
145 self
[all...]
/gem5/src/dev/alpha/
H A DTsunami.py108 def attachIO(self, bus):
109 self.cchip.pio = bus.master
110 self.pchip.pio = bus.master
111 self.fake_sm_chip.pio = bus.master
112 self.fake_uart1.pio = bus.master
113 self.fake_uart2.pio = bus.master
114 self.fake_uart3.pio = bus.master
115 self.fake_uart4.pio = bus.master
116 self.fake_ppc.pio = bus.master
117 self
[all...]
/gem5/util/stats/
H A Dprofile.py32 def __init__(self, filename):
33 self.filename = filename
40 self[line[3:]] = current
46 def __init__(self, filename):
47 self.filename = filename
49 def __getattribute__(self, attr):
52 for value in self.itervalues():
57 return FileData(self.filename)
60 return max([ len(sym) for sym in self.iterkeys() ])
62 return super(RunData, self)
[all...]
/gem5/ext/testlib/
H A Dtest.py69 def __init__(self, name=None, fixtures=tuple(), **kwargs):
70 self.fixtures = self.fixtures + list(fixtures)
72 name = self.__class__.__name__
73 self.name = name
79 def __init__(self, function, name=None, **kwargs):
80 self.test_function = function
83 TestCase.__init__(self, name=name, **kwargs)
85 def test(self, *args, **kwargs):
86 self
[all...]
H A Dconfig.py93 def __init__(self, include, regex):
94 self.include = include
95 self.regex = re.compile(regex)
97 def __str__(self):
98 type_ = 'Include' if self.include else 'Remove'
99 return '%10s: %s' % (type_, self.regex.pattern)
113 def __init__(self):
115 self.__dict__ = self.__shared_dict
117 def _init(self, parse
[all...]
/gem5/src/mem/ruby/network/simple/
H A DSimpleNetwork.py46 def setup_buffers(self):
49 for link in self.int_links:
52 for i in range(int(self.number_of_virtual_networks)):
55 self.int_link_buffers = network_buffers
58 for router in self.routers:
62 for link in self.int_links:
64 for i in range(int(self.number_of_virtual_networks)):
68 for link in self.ext_links:
70 if link.int_node in self.routers:
71 for i in range(int(self
[all...]
/gem5/configs/example/
H A Dread_config.py139 def __init__(self, object_name, port_name, index):
140 self.object_name = object_name
141 self.port_name = port_name
142 self.index = index
155 def __str__(self):
156 return '%s.%s[%d]' % (self.object_name, self.port_name, self.index)
158 def __cmp__(self, right):
159 return cmp((self
[all...]
/gem5/src/cpu/testers/traffic_gen/
H A DPyTrafficGen.py48 def start(self, meta_generator):
66 def createTrace(self, duration, trace_file, addr_offset=0):
68 return self.getCCObject().createTrace(duration, trace_file,
/gem5/src/dev/arm/
H A DEnergyCtrl.py51 def generateDeviceTree(self, state):
52 node = self.generateBasicPioDeviceNode(state, 'gem5_energy_ctrl',
53 self.pio_addr, 0x1000)
/gem5/ext/pybind11/tests/
H A Dtest_virtual_functions.py9 def __init__(self, state):
10 super(ExtendedExampleVirt, self).__init__(state + 1)
11 self.data = "Hello world"
13 def run(self, value):
15 return super(ExtendedExampleVirt, self).run(value + 1)
17 def run_bool(self):
21 def get_string1(self):
24 def pure_virtual(self):
25 print('ExtendedExampleVirt::pure_virtual(): %s' % self.data)
28 def __init__(self, stat
[all...]
H A Dtest_operator_overloading.cpp70 // `-Wall`, which is used here for overloading (e.g. `py::self += py::self `).
73 // TODO(eric): This could be resolved using a function / functor (e.g. `py::self()`).
90 .def(py::self + py::self)
91 .def(py::self + float())
92 .def(py::self - py::self)
93 .def(py::self - float())
94 .def(py::self * floa
[all...]
/gem5/ext/googletest/googletest/test/
H A Dgtest_xml_test_utils.py51 def AssertEquivalentNodes(self, expected_node, actual_node):
71 self.assertEquals(Node.CDATA_SECTION_NODE, actual_node.nodeType)
72 self.assertEquals(expected_node.nodeValue, actual_node.nodeValue)
75 self.assertEquals(Node.ELEMENT_NODE, actual_node.nodeType)
76 self.assertEquals(Node.ELEMENT_NODE, expected_node.nodeType)
77 self.assertEquals(expected_node.tagName, actual_node.tagName)
81 self.assertEquals(
89 self.assert_(
93 self.assertEquals(
99 expected_children = self
[all...]
/gem5/src/dev/sparc/
H A DT1000.py116 def attachOnChipIO(self, bus):
117 self.iob.pio = bus.master
118 self.htod.pio = bus.master
124 def attachIO(self, bus):
125 self.hvuart.device = self.hterm
126 self.puart0.device = self.pterm
127 self.fake_clk.pio = bus.master
128 self
[all...]
/gem5/util/style/
H A Dstyle.py62 def __init__(self, verbose=False):
63 self.verbose = verbose
65 def prompt(self, prompt, results, default):
67 result = self._prompt(prompt, results, default)
72 def _prompt(self, prompt, results, default):
76 def write(self, string):
80 def _prompt(self, prompt, results, default):
83 def write(self, string):
87 def __init__(self, ui, *args, **kwargs):
88 super(MercurialUI, self)
[all...]
/gem5/site_scons/gem5_scons/
H A D__init__.py68 def __init__(self, tool, max_sources=99):
69 self.format = self.tool_color + (" [%8s] " % tool) \
70 + self.pfx_color + "%s" \
71 + self.srcs_color + "%s" \
72 + self.arrow_color + " -> " \
73 + self.tgts_color + "%s" \
75 self.max_sources = max_sources
77 def __call__(self, target, source, env, for_signature=None):
79 source = source[0:self
[all...]
/gem5/src/dev/x86/
H A DPc.py78 def attachIO(self, bus, dma_ports = []):
79 self.south_bridge.attachIO(bus, dma_ports)
80 self.i_dont_exist1.pio = bus.master
81 self.i_dont_exist2.pio = bus.master
82 self.behind_pci.pio = bus.master
83 self.com_1.pio = bus.master
84 self.fake_com_2.pio = bus.master
85 self.fake_com_3.pio = bus.master
86 self.fake_com_4.pio = bus.master
87 self
[all...]
/gem5/util/maint/
H A Dlist_changes.py48 def __init__(self, rev):
49 self.rev = rev
50 self._log = None
51 self._tags = None
53 def _git(self, args):
57 def log(self):
62 if self._log is None:
63 self._log = self._git(
64 ["show", "--format=%B", "--no-patch", str(self
[all...]
/gem5/configs/common/
H A DSysPaths.py41 def __init__(self, subdirs, sys_paths=None):
44 self._subdir = os.path.join(*subdirs)
46 self._sys_paths = sys_paths
48 def __call__(self, filename):
49 if self._sys_paths is None:
64 self._sys_paths = list(paths)
66 filepath = os.path.join(self._subdir, filename)
67 paths = (os.path.join(p, filepath) for p in self._sys_paths)
/gem5/configs/topologies/
H A DCrossbar.py40 def makeTopology(self, options, network, IntLink, ExtLink, Router):
53 routers = [Router(router_id=i) for i in range(len(self.nodes)+1)]
54 xbar = routers[len(self.nodes)] # the crossbar router is the last router created
59 for (i, n) in enumerate(self.nodes)]
62 link_count = len(self.nodes)
65 for i in range(len(self.nodes)):
71 link_count += len(self.nodes)
73 for i in range(len(self.nodes)):
/gem5/src/systemc/
H A DTlm.py37 def __init__(self, width, desc):
42 super(TlmTargetSocket, self).__init__(my_role, desc)
45 def __init__(self, width, desc):
50 super(VectorTlmTargetSocket, self).__init__(my_role, desc)
53 def __init__(self, width, desc):
58 super(TlmInitiatorSocket, self).__init__(my_role, desc, is_source=True)
61 def __init__(self, width, desc):
66 super(VectorTlmInitiatorSocket, self).__init__(
/gem5/util/
H A Dqdo98 def __init__(self, cmd):
101 pexpect.spawn.__init__(self, cmd)
106 self.full_output = ""
107 self.quick_timeout = 15
110 self.expect('\$ ', options.oarsub_timeout)
113 self.kill(9)
114 self.safe_close()
116 self.do_command('unset PROMPT_COMMAND; PS1="qdo$ "')
119 def expect(self, regexp, timeout = -1):
120 pexpect.spawn.expect(self, regex
[all...]
/gem5/ext/googletest/googlemock/scripts/
H A Dupload.py118 def __init__(self, url, code, msg, headers, args):
119 urllib2.HTTPError.__init__(self, url, code, msg, headers, None)
120 self.args = args
121 self.reason = args["Error"]
127 def __init__(self, host, auth_function, host_override=None, extra_headers={},
142 self.host = host
143 self.host_override = host_override
144 self.auth_function = auth_function
145 self.authenticated = False
146 self
[all...]
/gem5/ext/googletest/googletest/scripts/
H A Dupload.py118 def __init__(self, url, code, msg, headers, args):
119 urllib2.HTTPError.__init__(self, url, code, msg, headers, None)
120 self.args = args
121 self.reason = args["Error"]
127 def __init__(self, host, auth_function, host_override=None, extra_headers={},
142 self.host = host
143 self.host_override = host_override
144 self.auth_function = auth_function
145 self.authenticated = False
146 self
[all...]

Completed in 25 milliseconds

1234567891011