mirror of
https://github.com/m-labs/artiq.git
synced 2024-12-05 09:46:36 +08:00
4f311e7448
This allows assert() to be used on Zynq, where abort() is not currently implemented for kernels. Furthermore, this is arguably the more natural implementation of assertions on all kernel targets (i.e. where embedding into host Python is used), as it matches host Python behavior, and the exception information actually makes it to the user rather than leading to a ConnectionClosed error. Since this does not implement printing of the subexpressions, I left the old print+abort implementation as default for the time being. The lit/integration/instance.py diff isn't just a spurious change; the exception-based assert implementation exposes a limitation in the existing closure lifetime tracking algorithm (which is not supposed to be what is tested there). GitHub: Fixes #1539. |
||
---|---|---|
.. | ||
algorithms | ||
analyses | ||
testbench | ||
transforms | ||
validators | ||
__init__.py | ||
asttyped.py | ||
builtins.py | ||
embedding.py | ||
import_cache.py | ||
iodelay.py | ||
ir.py | ||
math_fns.py | ||
module.py | ||
prelude.py | ||
targets.py | ||
types.py |