2
0
mirror of https://github.com/m-labs/artiq.git synced 2024-12-26 03:38:25 +08:00

urukul: reg based io-update is a kernel

This commit is contained in:
Robert Jördens 2018-04-27 16:42:09 +00:00
parent 5d3c76fd50
commit ae80bab180

View File

@ -99,7 +99,7 @@ class _RegIOUpdate:
def __init__(self, cpld): def __init__(self, cpld):
self.cpld = cpld self.cpld = cpld
@portable @kernel
def pulse(self, t): def pulse(self, t):
cfg = self.cpld.cfg_reg cfg = self.cpld.cfg_reg
self.cpld.cfg_write(cfg | (1 << CFG_IO_UPDATE)) self.cpld.cfg_write(cfg | (1 << CFG_IO_UPDATE))