Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
P
Production Test Suite
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
Production Test Suite
Commits
a5fafd0e
Commit
a5fafd0e
authored
Apr 17, 2012
by
Matthieu Cattin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add RSTOUT33 assert/de-assert cycle to gennum class.
parent
91306153
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
+8
-0
gn4124.py
test/fmcadc100m14b4cha/python/gn4124.py
+8
-0
No files found.
test/fmcadc100m14b4cha/python/gn4124.py
View file @
a5fafd0e
...
...
@@ -19,6 +19,7 @@ class CGN4124:
# GN4124 chip registers (BAR4)
GN4124_BAR
=
0x4
R_PCI_SYS_CFG
=
0x800
R_CLK_CSR
=
0x808
R_INT_CFG0
=
0x820
R_GPIO_DIR_MODE
=
0xA04
...
...
@@ -96,6 +97,13 @@ class CGN4124:
# Add here reading of the interrupt source (once the irq core will be present)
return
self
.
bus
.
irqwait
()
# GN4124 RSTOUT33 assert/de-assert cycle
def
rstout33_cycle
(
self
):
# assert RSTOUT33 pin
self
.
wr_reg
(
self
.
GN4124_BAR
,
self
.
R_PCI_SYS_CFG
,
0x00021040
)
# de-assert RSTOUT33 pin
self
.
wr_reg
(
self
.
GN4124_BAR
,
self
.
R_PCI_SYS_CFG
,
0x00025000
)
# GN4124 interrupt configuration
def
set_interrupt_config
(
self
):
# Set interrupt line from FPGA (GPIO8) as input
...
...
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