Skip to content

Commit

Permalink
test/sawg: adapt to new latency spec
Browse files Browse the repository at this point in the history
jordens committed Dec 14, 2016
1 parent 115ea67 commit 15b48be
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions artiq/test/gateware/test_sawg_fe.py
Original file line number Diff line number Diff line change
@@ -91,9 +91,7 @@ def gen(dut, events):
# print("{}: set ch {} to {}".format(time, channel, hex(data)))

def log(dut, data, n):
for i in range(dut.latency):
yield
for i in range(n):
for i in range(n + dut.latency):
yield
data.append((yield from [(yield _) for _ in dut.o]))

@@ -138,6 +136,7 @@ def test_linear(self):
d.offset.set_coeff([0])
delay(1*self.t)
out = self.run_channel(self.rtio_manager.outputs)
out = out[self.channel.latency + self.channel.u.latency:][:11]
for i in range(len(out) - 1):
with self.subTest(i):
v = 100 + i*10
@@ -164,6 +163,7 @@ def test_smooth_linear(self):
ch.set(.2)
delay(1*self.t)
out = self.run_channel(self.rtio_manager.outputs)
out = out[self.channel.latency + self.channel.u.latency:][:14]
a = int(round(.1*ch.scale))
da = int(round(.1*ch.scale*(1 << ch.width)//13))
for i in range(len(out) - 1):

0 comments on commit 15b48be

Please sign in to comment.