Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
F
FMC DEL 1ns 2cha
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
9
Issues
9
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Projects
FMC DEL 1ns 2cha
Commits
c2bf9a5f
Commit
c2bf9a5f
authored
Apr 04, 2017
by
Jan Pospisil
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
clean-up after tests
parent
fbb43e69
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
38 deletions
+2
-38
FFPG_driver.py
sw/FFPG_driver.py
+2
-38
No files found.
sw/FFPG_driver.py
View file @
c2bf9a5f
...
...
@@ -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)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment