Beispiel #1
0
    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)))
Beispiel #2
0
 def __repr__(self):
     from hwt.serializer.vhdl.serializer import VhdlSerializer
     return VhdlSerializer.formater(
         VhdlSerializer.Architecture(self,
                                     VhdlSerializer.getBaseNameScope()))
Beispiel #3
0
 def __repr__(self):
     from hwt.serializer.vhdl.serializer import VhdlSerializer
     return VhdlSerializer.formater(
         VhdlSerializer.HWProcess(self, VhdlSerializer.getBaseNameScope()))