Skip to content
Snippets Groups Projects
Commit 4457b49a authored by Magnus.Ersdal's avatar Magnus.Ersdal
Browse files

upd

parent 395836de
No related branches found
No related tags found
No related merge requests found
......@@ -13,6 +13,7 @@ import settings
TMSregs = settings.TMSregs
TDOregs = settings.TDOregs
TDIregs = settings.TDIregs
tms_tdo_regs = TMSregs + TDOregs
zeros = "0" * 32
......@@ -49,9 +50,12 @@ def read128(sca):
# data.append(sca.)
def write_4_ints(tms_list, tdi_list, sca):
"""
for tmsreg, tdireg, tmsdata, tdidata in zip(TMSregs,TDOregs,tms_list,tdi_list):
sca.wr(tmsreg,tmsdata)
sca.wr(tdireg,tdidata)
"""
emap(sca.wr, tms_tdo_regs, tms_list + tdi_list) # possibly lower overhead than a for loop
sca.wr(SCARegs['JTAG_GO'], 0)
def write_TMS_zeros(sca, length = 128):
......@@ -73,8 +77,7 @@ def write_128_TDI(tdi_bits, sca):
sca.wr(SCARegs['JTAG_GO'], 0)
def write_wait(sca, length):
nx_128 = int(length/128)
nx_128 = int(length / 128)
write_TMS_zeros(sca)
for i in range(nx_128):
write_128_TDI_zeros(sca)
\ No newline at end of file
......@@ -46,7 +46,7 @@ def space():
def littlespace():
print("------")
li = read_svf("../p.svf")#("../p_400klines.svf")#("../p_reduced.svf")
li = read_svf("../idcode.svf")#("../p_400klines.svf")#("../p_reduced.svf")
# operation completed in 4 minutes 27.190409 seconds for 200klines with delays.
# operation completed in 4 minutes 56.811993 seconds for 400klines with delays.
# operation completed in 35 minutes 21.746152 seconds for 400klines with delays. what happened?
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment