Compare commits

...

3 commits

Author SHA1 Message Date
Stephan I. Böttcher
99e416249d nmahepam: reset clock and dorn in enable() 2025-07-02 14:50:42 +02:00
Stephan I. Böttcher
885ad5a1d8 armlib ifc._stream_reset: new config attribute 2025-07-02 14:49:06 +02:00
Stephan I. Böttcher
bcdc6a05f3 dorn_hk: read 8 channels, not 7 2025-07-02 14:48:17 +02:00
3 changed files with 4 additions and 2 deletions

View file

@ -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):

View file

@ -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":

View file

@ -81,3 +81,4 @@ if __name__=="__main__":
findnmahepam()
from dorn import *
dorn._connect(ifc)
ifc._stream_reset |= 0x000c