File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -91,9 +91,7 @@ def gen(dut, events):
91
91
# print("{}: set ch {} to {}".format(time, channel, hex(data)))
92
92
93
93
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 ):
97
95
yield
98
96
data .append ((yield from [(yield _ ) for _ in dut .o ]))
99
97
@@ -138,6 +136,7 @@ def test_linear(self):
138
136
d .offset .set_coeff ([0 ])
139
137
delay (1 * self .t )
140
138
out = self .run_channel (self .rtio_manager .outputs )
139
+ out = out [self .channel .latency + self .channel .u .latency :][:11 ]
141
140
for i in range (len (out ) - 1 ):
142
141
with self .subTest (i ):
143
142
v = 100 + i * 10
@@ -164,6 +163,7 @@ def test_smooth_linear(self):
164
163
ch .set (.2 )
165
164
delay (1 * self .t )
166
165
out = self .run_channel (self .rtio_manager .outputs )
166
+ out = out [self .channel .latency + self .channel .u .latency :][:14 ]
167
167
a = int (round (.1 * ch .scale ))
168
168
da = int (round (.1 * ch .scale * (1 << ch .width )// 13 ))
169
169
for i in range (len (out ) - 1 ):
You can’t perform that action at this time.
0 commit comments