def add_sync_callback(self, callback_cycles, callback):
self.sync_callbacks_cyles[callback] = <NUM_LIT:0><EOL>self.sync_callbacks.append([callback_cycles, callback])<EOL>if self.quickest_sync_callback_cycles is None orself.quickest_sync_callback_cycles > callback_cycles:<EOL><INDENT>self.quickest_sync_callback_cycles = callback_cycles<EOL><DEDENT>
Add a CPU cycle triggered callback