From 5749141efb0364f869cedc8de8d63c22e484490c Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Fri, 8 Oct 2021 23:46:46 +0800 Subject: [PATCH] nac3artiq: add simple KernelInvariant CPython wrapper --- nac3artiq/min_artiq.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/nac3artiq/min_artiq.py b/nac3artiq/min_artiq.py index 77032e85..2bb78eed 100644 --- a/nac3artiq/min_artiq.py +++ b/nac3artiq/min_artiq.py @@ -8,7 +8,7 @@ import nac3artiq import device_db -__all__ = ["extern", "kernel", "portable", "Core", "TTLOut"] +__all__ = ["KernelInvariant", "extern", "kernel", "portable", "Core", "TTLOut"] nac3 = nac3artiq.NAC3(device_db.device_db["core"]["arguments"]["target"]) @@ -16,6 +16,10 @@ allow_module_registration = True registered_ids = set() +def KernelInvariant(t): + return t + + def register_module_of(obj): global registered_ids assert allow_module_registration