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