@@ -20,7 +20,7 @@ def build(self):
20
20
def run (self ):
21
21
self .ttl_inout .output ()
22
22
delay (1 * us )
23
- with parallel :
23
+ with interleave :
24
24
# make sure not to send two commands into the same RTIO
25
25
# channel with the same timestamp
26
26
self .ttl_inout .gate_rising (5 * us )
@@ -101,28 +101,6 @@ def run(self):
101
101
pass
102
102
103
103
104
- class LoopbackCount (EnvExperiment ):
Has a comment. Original line has a comment. 105
- def build (self ):
106
- self .setattr_device ("core" )
107
- self .setattr_device ("ttl_inout" )
108
- self .setattr_argument ("npulses" )
109
-
110
- def set_count (self , count ):
111
- self .set_dataset ("count" , count )
112
-
113
- @kernel
114
- def run (self ):
115
- self .ttl_inout .output ()
116
- delay (5 * us )
117
- with parallel :
118
- self .ttl_inout .gate_rising (10 * us )
119
- with sequential :
120
- for i in range (self .npulses ):
121
- delay (25 * ns )
122
- self .ttl_inout .pulse (25 * ns )
123
- self .set_dataset ("count" , self .ttl_inout .count ())
124
-
125
-
126
104
class Underflow (EnvExperiment ):
127
105
def build (self ):
128
106
self .setattr_device ("core" )
@@ -185,17 +163,6 @@ def run(self):
185
163
186
164
187
165
class CoredeviceTest (ExperimentCase ):
188
- @unittest .skipUnless (artiq_low_latency ,
189
- "timings are dependent on CPU load and network conditions" )
190
- def test_rtt (self ):
191
- self .execute (RTT )
192
- rtt = self .dataset_mgr .get ("rtt" )
193
- print (rtt )
194
- self .assertGreater (rtt , 0 * ns )
195
- self .assertLess (rtt , 100 * ns )
196
-
197
- @unittest .skipUnless (artiq_low_latency ,
198
- "timings are dependent on CPU load and network conditions" )
199
166
def test_loopback (self ):
200
167
self .execute (Loopback )
201
168
rtt = self .dataset_mgr .get ("rtt" )
@@ -208,21 +175,13 @@ def test_clock_generator_loopback(self):
208
175
count = self .dataset_mgr .get ("count" )
209
176
self .assertEqual (count , 10 )
210
177
211
- @unittest .skipUnless (artiq_low_latency ,
212
- "timings are dependent on CPU load and network conditions" )
213
178
def test_pulse_rate (self ):
214
179
self .execute (PulseRate )
215
180
rate = self .dataset_mgr .get ("pulse_rate" )
216
181
print (rate )
217
182
self .assertGreater (rate , 100 * ns )
218
183
self .assertLess (rate , 2500 * ns )
219
184
220
- def test_loopback_count (self ):
221
- npulses = 2
222
- self .execute (LoopbackCount , npulses = npulses )
223
- count = self .dataset_mgr .get ("count" )
224
- self .assertEqual (count , npulses )
225
-
226
185
def test_underflow (self ):
227
186
with self .assertRaises (RTIOUnderflow ):
228
187
self .execute (Underflow )