def __init__(self, parent, masterinterface): """ Init fonction """ masterinstancename = masterinterface.parent.instancename masterinterfacename = masterinterface.name Component.__init__(self, parent) self.interfaceslist = [] self.add_node(nodename="component") masterinstance = self.parent.get_instance(masterinstancename) masterinterface = masterinstance.get_interface(masterinterfacename) # Write xml description self.generate_xml(masterinterface) # Write Code for component masterinterface.bus.generate_intercon(self) DISPLAY.msg("Intercon with name : " + self.instancename + " Done")
def __init__(self,parent,**keys): """ Init Component, __init__(self,parent,node) __init__(self,parent,file) """ Component.__init__(self,parent) if "node" in keys: self.__initnode(keys["node"]) elif "file" in keys: self.__initfile(keys["file"]) else: raise Error("Keys unknown in Platform constructor",0) if self.getNode("interfaces") != None: for element in self.getNode("interfaces").getNodeList("interface"): self.interfaceslist.append(Interface(self,node=element)) self.librarieslist = [] if self.getNode("simulation") != None: for library in self.getNode("simulation").getNodeList("simlib"): self.librarieslist.append(SimulationLib(self,node=library))
def __init__(self,masterinterface,project): """ Init fonction """ masterinstancename = masterinterface.getParent().getInstanceName() masterinterfacename = masterinterface.getName() Component.__init__(self,project) self.interfaceslist = [] self.addNode(nodename="component") masterinstance = self.parent.getInstance(masterinstancename) masterinterface = masterinstance.getInterface(masterinterfacename) # Write xml description self.generateXML(masterinterface) # Write Code for component masterinterface.getBus().generateIntercon(self) display.msg("Intercon with name : "+self.getInstanceName()+" Done")
def __init__(self, parent, **keys): """ Init Component, __init__(self, parent, node) __init__(self, parent, file) """ if "node" in keys: Component.__init__(self, parent, node=keys["node"]) elif "file" in keys: Component.__init__(self, parent, afile=keys["file"]) else: raise PodError("Keys unknown in Platform constructor", 0) if self.get_node("interfaces") is not None: for element in self.get_node("interfaces").get_nodes("interface"): self._interfaceslist.append(Interface(self, node=element)) self.librarieslist = [] if self.get_node("simulation") is not None: for library in self.get_node("simulation").get_nodes("simlib"): self.librarieslist.append(SimulationLib(self, node=library)) self.instancename = self.name self.parent = parent
def __init__(self, parent, **keys): """ Init Component, __init__(self, parent, node) __init__(self, parent, file) """ if "node" in keys: Component.__init__(self, parent, node=keys["node"]) elif "file" in keys: Component.__init__(self, parent, afile=keys["file"]) else: raise PodError("Keys unknown in Platform constructor", 0) if self.get_node("interfaces") is not None: for element in self.get_node("interfaces").get_nodes("interface"): self._interfaceslist.append(Interface(self, node=element)) self.librarieslist = [] if self.get_node("simulation") is not None: for library in self.get_node("simulation").get_nodes("simlib"): self.librarieslist.append(SimulationLib(self, node=library)) self.instancename = self.name self.parent = parent