RTIO: implemented exceptions #39

Merged
sb10q merged 1 commits from pca006132/artiq-zynq:master into master 2020-07-07 16:31:26 +08:00
▶ artiq_run exception.py
Core Device Traceback (most recent call last):
  File "exception.py", line 13, in artiq_run_exception.ExceptionDemo.run(..., ...) (RA=+0x3dc)
    self.led0.on()
  File "<artiq>/coredevice/ttl.py", line 53, in ... artiq.coredevice.ttl.TTLOut.on<artiq.coredevice.ttl.TTLOut>(...) (inlined)
    self.set_o(True)
  File "<artiq>/coredevice/ttl.py", line 45, in ... artiq.coredevice.ttl.TTLOut.set_o<artiq.coredevice.ttl.TTLOut>(...) (inlined)
    rtio_output(self.target_o, 1 if o else 0)
  File "runtime/src/rtio.rs", line 79, column 10, in (Rust function)
    <unknown>
             ^
artiq.coredevice.exceptions.RTIOUnderflow(0): RTIO underflow at 3249538128 mu, channel 0, slack -1040 mu
Traceback (most recent call last):
``` ▶ artiq_run exception.py Core Device Traceback (most recent call last): File "exception.py", line 13, in artiq_run_exception.ExceptionDemo.run(..., ...) (RA=+0x3dc) self.led0.on() File "<artiq>/coredevice/ttl.py", line 53, in ... artiq.coredevice.ttl.TTLOut.on<artiq.coredevice.ttl.TTLOut>(...) (inlined) self.set_o(True) File "<artiq>/coredevice/ttl.py", line 45, in ... artiq.coredevice.ttl.TTLOut.set_o<artiq.coredevice.ttl.TTLOut>(...) (inlined) rtio_output(self.target_o, 1 if o else 0) File "runtime/src/rtio.rs", line 79, column 10, in (Rust function) <unknown> ^ artiq.coredevice.exceptions.RTIOUnderflow(0): RTIO underflow at 3249538128 mu, channel 0, slack -1040 mu Traceback (most recent call last): ```
sb10q closed this pull request 2020-07-07 16:31:26 +08:00
Sign in to join this conversation.
No reviewers
No Milestone
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: M-Labs/artiq-zynq#39
There is no content yet.