Esempio n. 1
0
    def startPhase(self, phase):
        Infrastructure.startPhase(self, phase)
        if phase == PHASE_CHECK_SCORBOARDS:
            if (not self.refs.empty()) or (not self.uuts.empty()):
                error = self.getPath() + " has some remaining transaction :\n"
                for e in self.refs.queue:
                    error += "REF:\n" + str(e) + "\n"

                for e in self.uuts.queue:
                    error += "UUT:\n" + str(e) + "\n"

                cocotb.log.error(error)
Esempio n. 2
0
    def startPhase(self, phase):
        Infrastructure.startPhase(self, phase)
        if phase == PHASE_CHECK_SCORBOARDS:
            if len(self.refsDic) != 0 or len(self.uutsDic) != 0:
                error = self.getPath() + " has some remaining transaction :\n"
                for l in self.refsDic.itervalues():
                    for e in l.queue:
                        error += "REF:\n" + str(e) + "\n"

                for l in self.uutsDic.itervalues():
                    for e in l.queue:
                        error += "UUT:\n" + str(e) + "\n"

                cocotb.log.error(error)
Esempio n. 3
0
 def startPhase(self, phase):
     Infrastructure.startPhase(self, phase)
     if phase == PHASE_WAIT_TASKS_END:
         self.closeIt = True