Commit c2bf9a5f authored by Jan Pospisil's avatar Jan Pospisil

clean-up after tests

parent fbb43e69
......@@ -60,7 +60,7 @@ calibrationData = [ # -1 = uncalibrated
[51.29, 51.11] # FMC slot 1
]
fmcSlot = 0 # 0 | 1
fmcSlot = 1 # 0 | 1
channel = 1 # 1 | 2
ad9512Config = (
......@@ -157,48 +157,12 @@ pg.PrintDebug()
'''
pg.Ad9512ActivateWbAccess()
pg.ad9512.debug = True
pg.ad9512.Config(ad9512Config)
pg.ad9512.Check(ad9512Config)
pg.Ad9512DisableWbAccess()
'''
# pg.ad9512.debug = True
# pg.wb.SetDebug(True)
# pg.wb.SetDebugSv("wb_trace.svh")
# pg.wb.Read("version")
# # reg = "ch2_res_mem"
# reg = "SpiBase"
# for i in range(10):
# pg.wb.Write(reg, i, Offset=i)
# for i in range(10):
# pg.wb.Read(reg, Offset=i)
# pg.wb.SetDebugSv("")
# pg.wb.SetDebugSv("wb_trace.svh")
# pg.ad9512.Write(0x4A, 0x55, True)
# print(hex(pg.ad9512.Read(0x4A)))
# print(hex(pg.ad9512.Read(0x4A)))
# print(hex(pg.ad9512.Read(0x4A)))
# print(hex(pg.ad9512.Read(0x4A)))
# print(hex(pg.ad9512.Read(0x4A)))
# print(hex(pg.ad9512.Read(0x4A)))
# pg.wb.SetDebugSv("")
# pg.ad9512.Write(0x4A, 0x55, True)
# while True:
# pg.ad9512.Read(0x4A)
# time.sleep(0.2)
# for i in range(0, 0x5b):
# pg.ad9512.Write(0x4A, 0x55)
# time.sleep(0.2)
# # print "[0x%02x]: 0x%02x" % (i, pg.ad9512.Read(0x4A))
# RegsCount = 0x5A
# Regs = range(0, RegsCount+1)
# for i in range(0, RegsCount+1):
# Regs[i] = pg.ad9512.Read(i)
# hexDump(Regs, bitsPerWord = 8, columns = 1)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment