urukul: fix example

This commit is contained in:
Robert Jördens 2018-02-22 10:27:19 +00:00 committed by Robert Jordens
parent e8d4db1ccf
commit d4a10dcbd4
1 changed files with 2 additions and 0 deletions

View File

@ -55,7 +55,9 @@ class UrukulTest(EnvExperiment):
errors = 0 errors = 0
delay(100*us) delay(100*us)
while data != -1: while data != -1:
delay(20*us)
self.urukul_ch0b.write32(0x07, data) self.urukul_ch0b.write32(0x07, data)
self.urukul_cpld.io_update.pulse(1*us)
read = self.urukul_ch0b.read32(0x07) read = self.urukul_ch0b.read32(0x07)
if read != data: if read != data:
errors += 1 errors += 1