nac3artiq: handle now-pinning depending on target
This commit is contained in:
parent
c429a86586
commit
248d8cbece
@ -1,20 +1,11 @@
|
|||||||
from language import *
|
|
||||||
from numpy import int32, int64
|
from numpy import int32, int64
|
||||||
|
|
||||||
@extern
|
from language import *
|
||||||
def now_mu() -> int64:
|
|
||||||
raise NotImplementedError("syscall not simulated")
|
|
||||||
|
|
||||||
|
|
||||||
@extern
|
import device_db
|
||||||
def at_mu(t: int64):
|
if device_db.device_db["core"]["arguments"]["target"] == "cortexa9":
|
||||||
raise NotImplementedError("syscall not simulated")
|
from artiq_timeline_extern import *
|
||||||
|
|
||||||
|
|
||||||
@extern
|
|
||||||
def delay_mu(dt: int64):
|
|
||||||
raise NotImplementedError("syscall not simulated")
|
|
||||||
|
|
||||||
|
|
||||||
@extern
|
@extern
|
||||||
def rtio_init():
|
def rtio_init():
|
||||||
|
20
nac3artiq/artiq_timeline_extern.py
Normal file
20
nac3artiq/artiq_timeline_extern.py
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
from numpy import int32, int64
|
||||||
|
from language import *
|
||||||
|
|
||||||
|
|
||||||
|
__all__ = ["now_mu", "at_mu", "delay_mu"]
|
||||||
|
|
||||||
|
|
||||||
|
@extern
|
||||||
|
def now_mu() -> int64:
|
||||||
|
raise NotImplementedError("syscall not simulated")
|
||||||
|
|
||||||
|
|
||||||
|
@extern
|
||||||
|
def at_mu(t: int64):
|
||||||
|
raise NotImplementedError("syscall not simulated")
|
||||||
|
|
||||||
|
|
||||||
|
@extern
|
||||||
|
def delay_mu(dt: int64):
|
||||||
|
raise NotImplementedError("syscall not simulated")
|
Loading…
Reference in New Issue
Block a user