forked from M-Labs/artiq
1
0
Fork 0

kasli: clean up urukul example more

This commit is contained in:
Robert Jördens 2018-02-14 09:02:54 +00:00 committed by Robert Jordens
parent 4d42df2a7c
commit 7002bea0ab
1 changed files with 0 additions and 17 deletions

View File

@ -47,23 +47,6 @@ class UrukulTest(EnvExperiment):
self.urukul0_ch3.sw.on() self.urukul0_ch3.sw.on()
self.urukul0_ch3.set_att(20.) self.urukul0_ch3.set_att(20.)
i = 0
j = 0
while True: while True:
self.urukul0_ch0.sw.pulse(5*ms) self.urukul0_ch0.sw.pulse(5*ms)
delay(5*ms) delay(5*ms)
while False:
self.led0.pulse(.5*s)
delay(.5*s)
@kernel
def test_att_noise(self, n=1024):
bus = self.urukul0_cpld.bus
bus.set_config_mu(_SPI_CONFIG, _SPIT_ATT_WR, _SPIT_ATT_RD)
bus.set_xfer(CS_ATT, 32, 0)
for i in range(n):
delay(5*us)
bus.write(self.att_reg)
bus.set_config_mu(_SPI_CONFIG, _SPIT_DDS_WR, _SPIT_DDS_RD)