Searched refs:self (Results 26 - 50 of 275) sorted by relevance

1234567891011

/gem5/src/mem/slicc/ast/
H A DCheckProbeStatementAST.py32 def __init__(self, slicc, in_port, address):
33 super(StatementAST, self).__init__(slicc)
34 self.in_port = in_port
35 self.address = address
37 def __repr__(self):
38 return "[CheckProbeStatementAst: %r]" % self.in_port
40 def generate(self, code, return_type):
41 self.in_port.assertType("InPort")
42 self.address.assertType("Addr")
44 in_port_code = self
[all...]
H A DPairListAST.py30 def __init__(self, slicc):
31 super(PairListAST, self).__init__(slicc)
33 def __repr__(self):
34 return "[PairListAST] %r" % self.pairs
36 def addPair(self, pair_ast):
37 self[pair_ast.key] = pair_ast.value
H A DTransitionDeclAST.py32 def __init__(self, slicc, request_types, states, events, next_state,
34 super(TransitionDeclAST, self).__init__(slicc)
36 self.request_types = request_types
37 self.states = states
38 self.events = events
39 self.next_state = next_state
40 self.actions = actions
42 def __repr__(self):
45 def generate(self):
46 machine = self
[all...]
H A DEnqueueStatementAST.py33 def __init__(self, slicc, queue_name, type_ast, lexpr, statements):
34 super(EnqueueStatementAST, self).__init__(slicc)
36 self.queue_name = queue_name
37 self.type_ast = type_ast
38 self.latexpr = lexpr
39 self.statements = statements
41 def __repr__(self):
43 (self.queue_name, self.type_ast.ident, self
[all...]
H A DAST.py31 def __init__(self, slicc, pairs=None):
32 self.slicc = slicc
33 self.location = slicc.currentLocation()
34 self.pairs = {}
36 self.pairs.update(getattr(pairs, "pairs", pairs))
39 def symtab(self):
40 return self.slicc.symtab
43 def state_machine(self):
44 return self.slicc.symtab.state_machine
46 def warning(self, messag
[all...]
H A DTypeFieldEnumAST.py32 def __init__(self, slicc, field_id, pairs_ast):
33 super(TypeFieldEnumAST, self).__init__(slicc, pairs_ast)
35 self.field_id = field_id
36 self.pairs_ast = pairs_ast
38 def __repr__(self):
39 return "[TypeFieldEnum: %r]" % self.field_id
41 def generate(self, type):
43 self.error("States must in a State Declaration, not a normal enum.")
46 if not type.addEnum(self.field_id, self
[all...]
H A DIsValidPtrExprAST.py33 def __init__(self, slicc, variable, flag):
34 super(IsValidPtrExprAST, self).__init__(slicc)
35 self.variable = variable
36 self.flag = flag
38 def __repr__(self):
39 return "[IsValidPtrExprAST: %r]" % self.variable
41 def generate(self, code):
45 var_type, var_code = self.variable.inline(True);
46 if self.flag:
51 type = self
[all...]
H A DFuncDeclAST.py32 def __init__(self, slicc, return_type, ident, formals, pairs, statements):
33 super(FuncDeclAST, self).__init__(slicc, pairs)
35 self.return_type = return_type
36 self.ident = ident
37 self.formals = formals
38 self.statements = statements
40 def __repr__(self):
41 return "[FuncDecl: %s]" % self.ident
43 def files(self, parent=None):
46 def generate(self, paren
[all...]
H A DOutPortDeclAST.py34 def __init__(self, slicc, ident, msg_type, var_expr, pairs):
35 super(OutPortDeclAST, self).__init__(slicc, pairs)
37 self.ident = ident
38 self.msg_type = msg_type
39 self.var_expr = var_expr
40 self.queue_type = TypeAST(slicc, "OutPort")
42 def __repr__(self):
43 return "[OutPortDecl: %r]" % self.ident
45 def generate(self):
46 code = self
[all...]
H A DEnumDeclAST.py32 def __init__(self, slicc, type_ast, pairs, fields):
33 super(EnumDeclAST, self).__init__(slicc, pairs)
35 self.type_ast = type_ast
36 self.fields = fields
38 def __repr__(self):
39 return "[EnumDecl: %s]" % (self.type_ast)
41 def files(self, parent=None):
42 if "external" in self:
46 ident = "%s_%s" % (parent, self.type_ast.ident)
48 ident = self
[all...]
H A DLocalVariableAST.py34 def __init__(self, slicc, type_ast, ident, pointer = False):
35 super(LocalVariableAST, self).__init__(slicc)
36 self.type_ast = type_ast
37 self.ident = ident
38 self.pointer = pointer
40 def __repr__(self):
41 return "[LocalVariableAST: %r %r]" % (self.type_ast, self.ident)
44 def name(self):
45 return self
[all...]
/gem5/src/mem/slicc/symbols/
H A DVar.py31 def __init__(self, symtab, ident, location, type, code, pairs,
33 super(Var, self).__init__(symtab, ident, location, pairs)
35 self.machine = machine
36 self.type = type
37 self.code = code
39 def __repr__(self):
40 return "[Var id: %s]" % (self.ident)
42 def writeCodeFiles(self, path, includes):
H A DType.py35 def __init__(self, symtab, ident, location, type, code, pairs,
37 super(DataMember, self).__init__(symtab, ident, location, type,
39 self.init_code = init_code
42 def __init__(self, ident, pairs):
43 super(Enumeration, self).__init__(pairs)
44 self.ident = ident
45 self.primary = False
48 def __init__(self, table, ident, location, pairs, machine=None):
49 super(Type, self).__init__(table, ident, location, pairs)
50 self
[all...]
/gem5/configs/example/arm/
H A Ddevices.py113 def __init__(self, system, num_cpus, cpu_clock, cpu_voltage,
115 super(CpuCluster, self).__init__()
116 self._cpu_type = cpu_type
117 self._l1i_type = l1i_type
118 self._l1d_type = l1d_type
119 self._wcache_type = wcache_type
120 self._l2_type = l2_type
124 self.voltage_domain = VoltageDomain(voltage=cpu_voltage)
125 self.clk_domain = SrcClockDomain(clock=cpu_clock,
126 voltage_domain=self
[all...]
/gem5/src/mem/slicc/
H A Dutil.py34 def __init__(self, pairs=None):
35 self.pairs = {}
37 self.pairs.update(pairs)
39 def __contains__(self, item):
40 return item in self.pairs
42 def __getitem__(self, item):
43 return self.pairs[item]
45 def __setitem__(self, item, value):
46 self.pairs[item] = value
48 def get(self, ite
[all...]
H A Dparser.py43 def __init__(self, filename, base_dir, verbose=False, traceback=False, **kwargs):
44 self.protocol = None
45 self.traceback = traceback
46 self.verbose = verbose
47 self.symtab = SymbolTable(self)
48 self.base_dir = base_dir
51 self.decl_list = self.parse_file(filename, **kwargs)
53 if not self
[all...]
/gem5/ext/testlib/
H A Dwrappers.py52 def __init__(self, name, uid, path, result, status, suite_uid):
53 self.name = name
54 self.uid = uid
55 self.path = path
56 self.status = status
57 self.result = result
58 self.suite_uid = suite_uid
62 def __init__(self, name, uid, tags, path, status, result):
63 self.name = name
64 self
[all...]
H A Dsandbox.py44 def interaction(self, *args, **kwargs):
46 self.io_manager.restore_pipes()
49 pdb._Pdb.interaction(self, *args, **kwargs)
52 self.io_manager.replace_pipes()
57 def __init__(self, test, suite):
58 self.test = test
59 self.suite = suite
60 self.log = log.test_log
61 self._init_pipes()
63 def _init_pipes(self)
[all...]
H A Dhandlers.py55 def __init__(self):
56 self._writers = {}
58 def open_writer(self, test_result):
59 if test_result in self._writers:
61 self._writers[test_result] = _TestStreams(test_result.stdout,
64 def get_writer(self, test_result):
65 if test_result not in self._writers:
66 self.open_writer(test_result)
67 return self._writers[test_result]
69 def close_writer(self, test_resul
[all...]
/gem5/util/pbs/
H A Dpbs.py32 def __init__(self, cmd, input = None, output = None, bufsize = -1):
33 self.status = -1
37 self.tochild = os.fdopen(p2c_write, 'w', bufsize)
52 self.fromchild = os.fdopen(c2p_read, 'r', bufsize)
65 self.pid = os.fork()
66 if self.pid == 0:
78 def poll(self):
79 if self.status < 0:
80 pid, status = os.waitpid(self.pid, os.WNOHANG)
81 if pid == self
[all...]
/gem5/src/python/m5/util/
H A Dsmartdict.py57 def __int__(self):
58 return toInteger(str(self))
59 def __long__(self):
60 return toLong(str(self))
61 def __float__(self):
62 return toFloat(str(self))
63 def __bool__(self):
64 return toBool(str(self))
67 def convert(self, other):
70 return bool(self)
[all...]
/gem5/util/stats/
H A Ddisplay.py30 def __init__(self, value, precision, percent = False):
31 self.value = float(value)
32 self.precision = precision
33 self.percent = percent
34 def __str__(self):
35 if isinstance(self.value, str):
36 if self.value.lower() == 'nan':
38 if self.value.lower() == 'inf':
41 if self.precision >= 0:
42 format = "%%.%df" % self
[all...]
H A Dprint.py33 def __init__(self, value, precision, percent = False):
34 self.value = value
35 self.precision = precision
36 self.percent = percent
37 def __str__(self):
38 if isinstance(self.value, str):
39 if self.value.lower() == 'nan':
41 if self.value.lower() == 'inf':
44 if self.precision >= 0:
45 format = "%%.%df" % self
[all...]
/gem5/util/minorview/
H A Dview.py54 def __init__(self, model):
57 self.blobSize = Point(45.0, 45.0)
58 self.pitch = Point(60.0, 60.0)
59 self.origin = Point(50.0, 50.0)
62 self.thickLineWidth = 10.0
63 self.thinLineWidth = 4.0
64 self.midLineWidth = 6.0
67 self.masterScale = Point(1.0,1.0)
68 self.model = model
69 self
[all...]
/gem5/src/python/m5/
H A Ddebug.py60 def __init__(self):
61 self._version = -1
62 self._dict = {}
64 def _update(self):
66 if self._version == current_version:
69 self._dict.clear()
71 self._dict[name] = flag
72 self._version = current_version
74 def __contains__(self, item):
75 self
[all...]

Completed in 21 milliseconds

1234567891011