/gem5/configs/learning_gem5/part3/ |
H A D | ruby_caches_MI_example.py | 53 def __init__(self): 57 super(MyCacheSystem, self).__init__() 59 def setup(self, system, cpus, mem_ctrls): 62 ruby system (self). This causes infinite recursion in initialize() 66 self.network = MyNetwork(self) 69 self.number_of_virtual_networks = 5 70 self.network.number_of_virtual_networks = 5 77 self.controllers = \ 78 [L1Cache(system, self, cp [all...] |
H A D | msi_caches.py | 51 def __init__(self): 55 super(MyCacheSystem, self).__init__() 57 def setup(self, system, cpus, mem_ctrls): 60 ruby system (self). This causes infinite recursion in initialize() 64 self.network = MyNetwork(self) 69 self.number_of_virtual_networks = 3 70 self.network.number_of_virtual_networks = 3 77 self.controllers = \ 78 [L1Cache(system, self, cp [all...] |
H A D | test_caches.py | 51 def __init__(self): 55 super(TestCacheSystem, self).__init__() 57 def setup(self, system, tester, mem_ctrls): 60 ruby system (self). This causes infinite recursion in initialize() 68 self.network = MyNetwork(self) 71 self.number_of_virtual_networks = 3 72 self.network.number_of_virtual_networks = 3 74 self.controllers = \ 75 [L1Cache(system, self, sel [all...] |
/gem5/src/mem/slicc/symbols/ |
H A D | Func.py | 32 def __init__(self, table, ident, name, location, return_type, param_types, 34 super(Func, self).__init__(table, ident, location, pairs) 35 self.return_type = return_type 36 self.param_types = param_types 37 self.param_strings = param_strings 38 self.body = body 39 self.isInternalMachineFunc = False 40 self.c_ident = ident 41 self.c_name = name 42 self [all...] |
H A D | Action.py | 31 def __init__(self, table, ident, resources, location, pairs): 32 super(Action, self).__init__(table, ident, location, pairs) 33 self.resources = resources 35 def __repr__(self): 36 return "[Action: %s]" % self.ident
|
H A D | State.py | 31 def __repr__(self): 32 return "[State: %s]" % self.ident 33 def isWildcard(self): 37 def __repr__(self): 39 def isWildcard(self):
|
H A D | Transition.py | 32 def __init__(self, table, machine, state, event, nextState, actions, 35 super(Transition, self).__init__(table, ident, location) 37 self.state = machine.states[state] 38 self.event = machine.events[event] 48 self.nextState = WildcardState(machine.symtab, 51 self.nextState = machine.states[nextState] 52 self.actions = [ machine.actions[a] for a in actions ] 53 self.request_types = [ machine.request_types[s] for s in request_types ] 54 self.resources = {} 56 for action in self [all...] |
/gem5/src/mem/slicc/ast/ |
H A D | TypeDeclAST.py | 32 def __init__(self, slicc, type_ast, pairs, field_asts): 33 super(TypeDeclAST, self).__init__(slicc, pairs) 35 self.type_ast = type_ast 36 self.field_asts = field_asts 38 def __repr__(self): 39 return "[TypeDecl: %r]" % (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 D | VarExprAST.py | 33 def __init__(self, slicc, var): 34 super(VarExprAST, self).__init__(slicc) 35 self._var = var 37 def __repr__(self): 38 return "[VarExprAST: %r]" % self._var 41 def name(self): 42 return str(self._var) 45 def var(self): 46 var = self.symtab.find(self [all...] |
H A D | TypeFieldStateAST.py | 31 def __init__(self, slicc, field_id, perm_ast, pairs_ast): 32 super(TypeFieldStateAST, self).__init__(slicc, pairs_ast) 34 self.field_id = field_id 35 self.perm_ast = perm_ast 37 self.error("AccessPermission enum value must be specified") 38 self.pairs_ast = pairs_ast 40 def __repr__(self): 41 return "[TypeFieldState: %r]" % self.field_id 43 def generate(self, type): 45 self [all...] |
H A D | LiteralExprAST.py | 32 def __init__(self, slicc, literal, type): 33 super(LiteralExprAST, self).__init__(slicc) 34 self.literal = literal 35 self.type = type 37 def __repr__(self): 38 return "[Literal: %s]" % self.literal 40 def generate(self, code): 42 if self.type == "std::string": 43 code('("${{self.literal}}")') 44 elif self [all...] |
H A D | AssignStatementAST.py | 31 def __init__(self, slicc, lvalue, rvalue): 32 super(AssignStatementAST, self).__init__(slicc) 33 self.lvalue = lvalue 34 self.rvalue = rvalue 36 def __repr__(self): 37 return "[AssignStatementAST: %r := %r]" % (self.lvalue, self.rvalue) 39 def generate(self, code, return_type): 40 lcode = self.slicc.codeFormatter() 41 rcode = self [all...] |
H A D | CheckAllocateStatementAST.py | 31 def __init__(self, slicc, variable): 32 super(StatementAST, self).__init__(slicc) 33 self.variable = variable 35 def __repr__(self): 36 return "[CheckAllocateStatementAst: %r]" % self.variable 38 def generate(self, code, return_type): 42 self.variable.var 44 def findResources(self, resources): 45 var = self.variable.var
|
H A D | NewExprAST.py | 31 def __init__(self, slicc, type_ast): 32 super(NewExprAST, self).__init__(slicc) 33 self.type_ast = type_ast 35 def __repr__(self): 36 return "[NewExprAST: %r]" % self.type_ast 39 def name(self): 40 return str(self.type_ast) 42 def generate(self, code): 43 type = self.type_ast.type
|
H A D | StatementListAST.py | 31 def __init__(self, slicc, statements): 32 super(StatementListAST, self).__init__(slicc) 35 self.statements = statements 37 def __repr__(self): 38 return "[StatementListAST: %r]" % self.statements 40 def generate(self, code, return_type): 41 for statement in self.statements: 44 def findResources(self, resources): 45 for statement in self.statements:
|
H A D | DeclListAST.py | 31 def __init__(self, slicc, decls): 32 super(DeclListAST, self).__init__(slicc) 36 self.decls = decls 38 def __repr__(self): 39 return "[DeclListAST: %s]" % (', '.join(repr(d) for d in self.decls)) 41 def files(self, parent=None): 43 for decl in self.decls: 47 def generate(self): 48 for decl in self.decls:
|
/gem5/ext/testlib/ |
H A D | log.py | 67 def __init__(self, **data): 68 self.data = data 70 def __getitem__(self, item): 71 if item not in self.data: 73 (item, self.__class__.__name__)) 74 return self.data[item] 76 def __str__(self): 77 return str(self.data) 81 def __init__(self, obj, status): 82 Record.__init__(self, metadat [all...] |
H A D | fixture.py | 36 def __init__(self, fixture, testitem): 37 self.fixture = fixture 38 self.testitem = testitem 40 self.msg = 'Fixture "%s" raised SkipException for "%s".' % ( 43 super(SkipException, self).__init__(self.msg) 68 def __init__(self, name=None, **kwargs): 70 name = self.__class__.__name__ 71 self.name = name 72 self [all...] |
/gem5/tests/configs/ |
H A D | alpha_generic.py | 54 def __init__(self): 61 def create_system(self): 62 system = FSConfig.makeLinuxAlphaSystem(self.mem_mode) 64 self.init_system(system) 71 def __init__(self, **kwargs): 80 BaseSystem.__init__(self, **kwargs) 81 LinuxAlphaSystemBuilder.__init__(self) 92 def __init__(self, **kwargs): 93 BaseFSSystemUniprocessor.__init__(self, **kwargs) 94 LinuxAlphaSystemBuilder.__init__(self) [all...] |
/gem5/tests/testing/ |
H A D | results.py | 78 def __init__(self, name, state, message="", stderr="", stdout="", 80 self.name = name 81 self.state = state 82 self.message = message 83 self.stdout = stdout 84 self.stderr = stderr 85 self.runtime = runtime 87 def skipped(self): 88 return self.state == UnitResult.STATE_SKIPPED 90 def success(self) [all...] |
/gem5/configs/topologies/ |
H A D | BaseTopology.py | 37 def __init__(self): 44 def makeTopology(self, options, network, IntLink, ExtLink, Router): 54 def registerTopology(self, options): 71 def __init__(self, controllers): 72 self.nodes = controllers 74 def addController(self, controller): 75 self.nodes.append(controller) 77 def __len__(self): 78 return len(self.nodes)
|
/gem5/src/python/m5/util/ |
H A D | pybind.py | 47 def export(self, code, cname): 51 def __init__(self, name, cxx_name=None, writable=True): 52 self.name = name 53 self.cxx_name = cxx_name if cxx_name else name 54 self.writable = writable 56 def export(self, code, cname): 57 export = "def_readwrite" if self.writable else "def_readonly" 58 code('.${export}("${{self.name}}", &${cname}::${{self.cxx_name}})') 61 def __init__(self, nam [all...] |
/gem5/src/python/m5/ext/pyfdt/ |
H A D | pyfdt.py | 52 def __init__(self, name): 54 self.name = name 55 if not FdtProperty.__validate_dt_name(self.name): 56 raise Exception("Invalid name '%s'" % self.name) 58 def get_name(self): 60 return self.name 62 def __str__(self): 64 return "Property(%s)" % self.name 66 def dts_represent(self, depth=0): 68 return INDENT*depth + self [all...] |
/gem5/ext/googletest/googletest/scripts/ |
H A D | release_docs.py | 92 def __init__(self, dot_version): 93 self.project, svn_root_path = common.GetSvnInfo() 94 if self.project not in ('googletest', 'googlemock'): 96 self.wiki_dir = svn_root_path + '/wiki' 98 self.version_prefix = 'V' + dot_version.replace('.', '_') + '_' 99 self.files_to_branch = self.GetFilesToBranch() 100 page_names = [DropWikiSuffix(f) for f in self.files_to_branch] 107 self.search_for_re = re.compile( 115 self [all...] |
/gem5/ext/ply/example/BASIC/ |
H A D | basinterp.py | 12 def __init__(self,prog): 13 self.prog = prog 15 self.functions = { # Built-in function table 16 'SIN' : lambda z: math.sin(self.eval(z)), 17 'COS' : lambda z: math.cos(self.eval(z)), 18 'TAN' : lambda z: math.tan(self.eval(z)), 19 'ATN' : lambda z: math.atan(self.eval(z)), 20 'EXP' : lambda z: math.exp(self.eval(z)), 21 'ABS' : lambda z: abs(self.eval(z)), 22 'LOG' : lambda z: math.log(self [all...] |