2014-09-30 03:29:15 -04:00
|
|
|
from config import *
|
|
|
|
from miscope.host.drivers import MiLaDriver
|
|
|
|
|
2014-09-30 04:55:21 -04:00
|
|
|
mila = MiLaDriver(wb.regs, "mila", use_rle=False)
|
2014-09-30 03:29:15 -04:00
|
|
|
wb.open()
|
|
|
|
###
|
2014-12-19 11:45:02 -05:00
|
|
|
trigger0 = mila.cont_remover_source_stb_o*1
|
|
|
|
mask0 = mila.cont_remover_source_stb_m
|
2014-10-24 13:24:05 -04:00
|
|
|
|
|
|
|
trigger0 = 0
|
|
|
|
mask0 = 0
|
2014-09-30 03:29:15 -04:00
|
|
|
|
|
|
|
mila.prog_term(port=0, trigger=trigger0, mask=mask0)
|
|
|
|
mila.prog_sum("term")
|
|
|
|
|
|
|
|
# Trigger / wait / receive
|
2014-12-19 11:45:02 -05:00
|
|
|
mila.trigger(offset=32, length=1024)
|
2014-09-30 03:29:15 -04:00
|
|
|
mila.wait_done()
|
|
|
|
mila.read()
|
|
|
|
mila.export("dump.vcd")
|
|
|
|
mila.export("dump.csv")
|
|
|
|
###
|
|
|
|
wb.close()
|