Example #1
0
 def prime(self, callback):
     if self.cbhdl == 0:
         self.cbhdl = simulator.register_readonly_callback(callback, self)
         if self.cbhdl == 0:
             raise TriggerException("Unable set up %s Trigger" %
                                    (str(self)))
     GPITrigger.prime(self, callback)
Example #2
0
 def prime(self, callback):
     """FIXME: document"""
     if self.cbhdl == 0:
         self.cbhdl = simulator.register_readonly_callback(callback, self)
         if self.cbhdl == 0:
             raise_error(self, "Unable set up %s Trigger" % (str(self)))
     Trigger.prime(self)
Example #3
0
 def prime(self, callback):
     """FIXME: document"""
     if self.cbhdl == 0:
         self.cbhdl = simulator.register_readonly_callback(callback, self)
         if self.cbhdl == 0:
             raise_error(self, "Unable set up %s Trigger" % (str(self)))
     Trigger.prime(self)
Example #4
0
 def prime(self, callback):
     Trigger.prime(self)
     if simulator.register_readonly_callback(self.cbhdl, callback, self):
         raise_error(self, "Unable set up %s Trigger" % (str(self)))
Example #5
0
 def prime(self, callback):
     if self.cbhdl is None:
         self.cbhdl = simulator.register_readonly_callback(callback, self)
         if self.cbhdl is None:
             raise_error(self, "Unable set up %s Trigger" % (str(self)))
     Trigger.prime(self)
Example #6
0
 def prime(self, callback):
     if self.cbhdl is None:
         self.cbhdl = simulator.register_readonly_callback(callback, self)
         if self.cbhdl is None:
             raise_error(self, "Unable set up %s Trigger" % (str(self)))
     Trigger.prime(self)