mirror of https://github.com/m-labs/artiq.git
language: add virtual
This commit is contained in:
parent
1bdf301e2a
commit
2059fd375e
|
@ -11,7 +11,7 @@ from artiq.language import import_cache
|
||||||
|
|
||||||
|
|
||||||
__all__ = [
|
__all__ = [
|
||||||
"KernelInvariant", "round64",
|
"KernelInvariant", "virtual", "round64",
|
||||||
"extern", "kernel", "portable", "nac3", "rpc",
|
"extern", "kernel", "portable", "nac3", "rpc",
|
||||||
"parallel", "sequential",
|
"parallel", "sequential",
|
||||||
"set_watchdog_factory", "watchdog", "TerminationRequested"
|
"set_watchdog_factory", "watchdog", "TerminationRequested"
|
||||||
|
@ -19,9 +19,13 @@ __all__ = [
|
||||||
|
|
||||||
|
|
||||||
T = TypeVar('T')
|
T = TypeVar('T')
|
||||||
|
|
||||||
class KernelInvariant(Generic[T]):
|
class KernelInvariant(Generic[T]):
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
class virtual(Generic[T]):
|
||||||
|
pass
|
||||||
|
|
||||||
|
|
||||||
def round64(x):
|
def round64(x):
|
||||||
return round(x)
|
return round(x)
|
||||||
|
|
Loading…
Reference in New Issue