Skip to content

Commit 15b48be

Browse files
committedDec 14, 2016
test/sawg: adapt to new latency spec
1 parent 115ea67 commit 15b48be

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed
 

‎artiq/test/gateware/test_sawg_fe.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -91,9 +91,7 @@ def gen(dut, events):
9191
# print("{}: set ch {} to {}".format(time, channel, hex(data)))
9292

9393
def log(dut, data, n):
94-
for i in range(dut.latency):
95-
yield
96-
for i in range(n):
94+
for i in range(n + dut.latency):
9795
yield
9896
data.append((yield from [(yield _) for _ in dut.o]))
9997

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

0 commit comments

Comments
 (0)
Please sign in to comment.