Skip to content

Commit

Permalink
Merge pull request #27 from slaclab/optimizedDigAsicstreamAxi
Browse files Browse the repository at this point in the history
Optimized dig asicstream axi
  • Loading branch information
dawoodalnajjar authored May 2, 2024
2 parents 22b0b2f + 2b3caba commit 3f7fb39
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion firmware/python/ePix320kM/_Root.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ def __init__( self,
# Create configuration stream
stream = pyrogue.interfaces.stream.Variable(root=self)

# Create StreamWriter with the configuration stream included as channel 1
# Create StreamWriter with the configuration stream included as channel 5
self.dataWriter = pyrogue.utilities.fileio.StreamWriter(configStream={5: stream})
self.add(self.dataWriter)

Expand Down Expand Up @@ -401,6 +401,8 @@ def start(self, **kwargs):
def enableAllAsics(self, enable) :
for batcherIndex in range(self.numOfAsics) :
self.enableAsic(batcherIndex, enable)
time.sleep(0.1)


def enableAsic(self, batcherIndex, enable) :
getattr(self.App.AsicTop, f"BatcherEventBuilder{batcherIndex}").Blowoff.set(not enable)
Expand Down

0 comments on commit 3f7fb39

Please sign in to comment.