Compare commits
3 commits
1a629365f0
...
99e416249d
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
99e416249d | ||
|
|
885ad5a1d8 | ||
|
|
bcdc6a05f3 |
3 changed files with 4 additions and 2 deletions
|
|
@ -554,6 +554,7 @@ class irena_ifc(object):
|
|||
_stream_default = "none/"
|
||||
_stream_config = None
|
||||
_stream_control = 0x0008
|
||||
_stream_reset = 0x1f0
|
||||
|
||||
def enable(self, what=None):
|
||||
if not what:
|
||||
|
|
@ -562,7 +563,7 @@ class irena_ifc(object):
|
|||
else:
|
||||
what = self._stream_default + self._stream_fifos
|
||||
self.cmd("altera/cmd/set %u" % self._stream_control)
|
||||
self.cmd("altera/cmd/reset 0x1f0")
|
||||
self.cmd(f"altera/cmd/reset {self._stream_reset}")
|
||||
self.Cmd("altera/stream/%s" % what)
|
||||
|
||||
def shell(self):
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@ oo,ff = getopt.getopt(sys.argv[1:], "saw:n:c:",
|
|||
|
||||
what="print"
|
||||
sl = None
|
||||
ch = list(range(7))
|
||||
ch = list(range(8))
|
||||
|
||||
for o,v in oo:
|
||||
if o=="-s" or o=="--seth":
|
||||
|
|
|
|||
|
|
@ -81,3 +81,4 @@ if __name__=="__main__":
|
|||
findnmahepam()
|
||||
from dorn import *
|
||||
dorn._connect(ifc)
|
||||
ifc._stream_reset |= 0x000c
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue