Skip to content

FW: Buffer Reset and other minor fixes#32

Open
richnou wants to merge 7 commits into
release-candidatefrom
dev_richard
Open

FW: Buffer Reset and other minor fixes#32
richnou wants to merge 7 commits into
release-candidatefrom
dev_richard

Conversation

@richnou
Copy link
Copy Markdown
Collaborator

@richnou richnou commented May 21, 2026

This PR adds a couple minor fixes and improves to FW:

  • Fix FPGA FIFO Buffer can contain 4-6 "stuck" bytes after seeing "Wrong" frames #31 by adding Reset bit in Readout control register. It resets the buffer, effectively flushing all bytes. Not used by default
  • During Testbeam with Desy, we noticed it would be useful while using an external trigger unit to only reset the FPGA Timestamp at the start of a measurement run, but keep the FPGA Timestamp counter update at each count instead of after each trigger input. This is done now, if the TLU Mode of the FPGA timestamp is disabled, a positive pulse on the t0 input will still reset the counter.
  • Other commits are minor improvements to scripts and helpers to analyse data coming from astropix, like the force interrupt control bit which makes autoread always on (one can quickly check idle bytes counter in this mode for example).

A test bit file for CMOD is available here: https://kit-adl.web.cern.ch/astep-fw/dev_richard/releases/

richnou added 7 commits May 20, 2026 13:34
If a setup uses the external TLU interface, the t0 start of run will
reset the fpga ts, even if the TLU mode is disabled (TS is always
updated for Data frames, not only when a TLU trigger is detected)
Set Readout Buffer reset to make sure buffer is empty for example before
a test. It is more convenient than reading the buffer until it is empty.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant