From 1f7858b80b620b37bdb5ab63d50536fcaedc8cf7 Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Fri, 9 Nov 2018 22:11:44 +0800 Subject: [PATCH] test/dsp: fix rtio_output --- artiq/gateware/test/dsp/test_sawg_fe.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/artiq/gateware/test/dsp/test_sawg_fe.py b/artiq/gateware/test/dsp/test_sawg_fe.py index d518e052a..1f7cdc08c 100644 --- a/artiq/gateware/test/dsp/test_sawg_fe.py +++ b/artiq/gateware/test/dsp/test_sawg_fe.py @@ -14,8 +14,10 @@ class RTIOManager: def __init__(self): self.outputs = [] - def rtio_output(self, now, channel, addr, data): - self.outputs.append((now, channel, addr, data)) + def rtio_output(self, target, data): + channel = target >> 8 + addr = target & 0xff + self.outputs.append((now_mu(), channel, addr, data)) def rtio_output_wide(self, *args, **kwargs): self.rtio_output(*args, **kwargs)