示例#1
0
文件: triggers.py 项目: darylz/cocotb
 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)))
示例#2
0
 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)
示例#3
0
文件: triggers.py 项目: FinnG/cocotb
 def unprime(self):
     """Unregister a prior registered timed callback"""
     if self.primed:
         simulator.deregister_callback(self.cbhdl)
     Trigger.unprime(self)
示例#4
0
 def unprime(self):
     """Disable a primed trigger, can be reprimed"""
     if self.cbhdl:
         simulator.deregister_callback(self.cbhdl)
     self.cbhdl = None
     Trigger.unprime(self)
示例#5
0
文件: triggers.py 项目: darylz/cocotb
 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