def dump(self, dumpFile=sys.stdout): for proc in self.tbArch.processes: proc.statements.append(WaitStm(None)) hasToBeOpened = isinstance(dumpFile, str) if hasToBeOpened: _dumpFile = open(dumpFile, 'w') else: _dumpFile = dumpFile sc = VhdlSerializer.getBaseNameScope() _dumpFile.write( VhdlSerializer.formater(VhdlSerializer.Entity(self.tbEnt, sc))) _dumpFile.write( VhdlSerializer.formater( VhdlSerializer.Architecture(self.tbArch, sc)))
def __repr__(self): from hwt.serializer.vhdl.serializer import VhdlSerializer return VhdlSerializer.formater( VhdlSerializer.Architecture(self, VhdlSerializer.getBaseNameScope()))
def __repr__(self): from hwt.serializer.vhdl.serializer import VhdlSerializer return VhdlSerializer.formater( VhdlSerializer.HWProcess(self, VhdlSerializer.getBaseNameScope()))
def __repr__(self): from hwt.serializer.vhdl.serializer import VhdlSerializer return VhdlSerializer.Entity(self, VhdlSerializer.getBaseNameScope())