Skip to content

FW trigpath block refactor - #459

Merged
tomeichlersmith merged 5 commits into
mainfrom
fw-trigpath-refactor
Aug 21, 2026
Merged

FW trigpath block refactor#459
tomeichlersmith merged 5 commits into
mainfrom
fw-trigpath-refactor

Conversation

@tomeichlersmith

Copy link
Copy Markdown
Member

In order to prepare the trigger path firmware for translating it onto the APx, I moved the lpGBT decoding from the standardLpGBTPair block into the trigpath block. On the software side, this affects which registers the ZCUOptoLink should look at when it is trying to check on the status and rates of the trigger fiber (as opposed to the DAQ fiber).

Leaving this as a draft since I want to clean up the code more and get a nice version of the firmware built that I can post somewhere for others to download and use.

we only want the OptoLink's coder_ to change, the Transport's coder_
should still point at the DAQ's firmware area since that is where the
slow control downlink stuff is
Comment thread src/pflib/zcu/zcu_optolink.cxx Outdated
Comment thread src/pflib/zcu/zcu_optolink.cxx
Comment thread src/pflib/zcu/zcu_optolink.cxx Outdated
@tomeichlersmith

Copy link
Copy Markdown
Member Author

Notes about software changes from firmware cleanup...

  • spam/inject error parameters in lowest 2 bits of register 6
  • reset decoder clock in bit 1 of register 2
  • decoder ready in bit 0 of register 2
  • rates re-compressed, dropping trig registers in standardLpGBT that are moved to trigpath

- access name of UIO device from UIO object
- use same suffix for trigpath as input coder_name to ZCUOptoLink
- name magic register numbers in variables
- cleanup status and rates printout to make data/trig output similar
- document change in coder name but not transport
- check on FW version to remind folks to update FW
@tomeichlersmith
tomeichlersmith marked this pull request as ready for review August 21, 2026 14:20
@tomeichlersmith
tomeichlersmith merged commit c9da741 into main Aug 21, 2026
3 checks passed
@tomeichlersmith
tomeichlersmith deleted the fw-trigpath-refactor branch August 21, 2026 14:29
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