def _check(obj): if self.signal.value: self._callback(self) else: simulator.deregister_callback(self.cbhdl) self.cbhdl = simulator.create_callback(self) if simulator.register_value_change_callback(self.cbhdl, self.signal._handle, _check, self): raise_error(self, "Unable set up %s Trigger" % (str(self)))
def unprime(self): """Disable a primed trigger, can be reprimed""" if self.cbhdl != 0: simulator.deregister_callback(self.cbhdl) self.cbhdl = 0 Trigger.unprime(self)
def unprime(self): """Unregister a prior registered timed callback""" if self.primed: simulator.deregister_callback(self.cbhdl) Trigger.unprime(self)
def unprime(self): """Disable a primed trigger, can be reprimed""" if self.cbhdl: simulator.deregister_callback(self.cbhdl) self.cbhdl = None Trigger.unprime(self)
def unprime(self): """Unregister a prior registered timed callback""" Trigger.unprime(self) if self.cbhdl is not None: simulator.deregister_callback(self.cbhdl) self.chhdl = None