Exemplo n.º 1
0
 def prime(self, callback):
     if self.cbhdl == 0:
         self.cbhdl = simulator.register_nextstep_callback(callback, self)
         if self.cbhdl == 0:
             raise TriggerException("Unable set up %s Trigger" %
                                    (str(self)))
     GPITrigger.prime(self, callback)
Exemplo n.º 2
0
 def prime(self, callback):
     if self.cbhdl == 0:
         self.cbhdl = simulator.register_nextstep_callback(callback, self)
         if self.cbhdl == 0:
             raise_error(self, "Unable set up %s Trigger" % (str(self)))
     Trigger.prime(self)
Exemplo n.º 3
0
 def prime(self, callback):
     if self.cbhdl is None:
         self.cbhdl = simulator.register_nextstep_callback(callback, self)
         if self.cbhdl is None:
             raise_error(self, "Unable set up %s Trigger" % (str(self)))
     Trigger.prime(self)
Exemplo n.º 4
0
 def prime(self, callback):
     Trigger.prime(self)
     simulator.register_nextstep_callback(self.cbhdl, callback, self)
Exemplo n.º 5
0
 def prime(self, callback):
     self.cbhdl = simulator.create_callback(self)
     simulator.register_nextstep_callback(self.cbhdl, callback, self)