TOP FW Gemba Meeting

→ Pacific/Honolulu
Description

https://speakapp.link/to/L3mdFg

Tommy Lam

TOP Firmware Gemba Meeting — Minutes (13 Oct 2026)

Chaired by T. Lam. Attendees included K. Yoshihara, T. Lam, S. Kohani, V. Shebalin, M. Bessner, M. Andrew. Tommy, Shahab and Vasily cannot attend the B2GM TOP parallel session, so this meeting doubled as the hand-over of their material (Martin presents at B2GM; Shahab presents to the DAQ group today).

1. Doubling removal and ML on the ROPC (Tommy)

  • Context: per Yamada-san and the DAQ group, TOP uses ~5.5× the ROPC CPU it should since the feature-extraction migration.
  • Doubling removal: testbench and register fixes are live in SVN (revision 3517, bit and hdf files updated). The IRSX test bench with Matt now reads waveforms, but needs a firmware change from Matt to see the right channels; bias-vs-width measurements after Physics Week.
  • ML on the ROPC: MLP and 1D-CNN feature extraction on toy pulses works but is no better than CFD in timing (Python: CFD 24 µs, MLP 28 µs, CNN 37 µs per waveform), and an NN may misbehave on unusual pulse shapes. A data-driven classifier to drop non-physics waveforms is more promising. The waveforms from exp 24 runs 745/746 are too clean (no pile-up, at most one crosstalk-like case). Request: a few minutes of waveform data from physics running with beam.
  • Martin: beam-background hits are photons and look like physics at the single-photon level; crosstalk and pile-up can be partly distinguished, but real electronic noise is what is most removable. Tommy will reframe the target as "noise" rather than "beam background".
  • Backup slides document ideas that were dropped (pedestal data in the SCROD PL; compressing the data format — would not help the CPU).

2. ROPC update for the DAQ group (Shahab, preview)

  • Feature extraction on the ROPC was fully functional in the last run; TOP deadtime went from 1–5% to nearly zero.
  • Problems: rare ROPC software crashes (~1/day) from special cases of data corruption — mitigations should cut them ~10×; s11a data corruption (masked most of the run); frequent corruption in pedestal readout; high ROPC CPU.
  • s11a: the bad word is the trailer magic word added after all boardstack processing — a bit shift (0xFF55 read as 0x0000ff55) while the TOP header and trailer are correct. Possibly a physical issue with that PCIe40 channel; to be checked at KEK by swapping channels. A software mitigation is possible.
  • Pedestal migration: ROPC module plus a new slow-control trigger procedure using random pulses and the doubling; testing on the UH bench in the next few weeks.
  • Pulser channels: the register-to-channel mapping is inverted (channel = 7 − register), and pulses cannot go to several channels at once. The even/odd scheme therefore needs eight passes instead of two.
  • Dummy pass-through mode (new branch) produces dummy hits at a chosen occupancy, to separate the CPU cost of feature extraction from that of the data volume. To be run at KEK with the pulser, after B2GM; Yamada-san's CPU measurement method needs to be understood first.
  • CPU mitigation: ROPC code cleanup, endianness swap moved to the SCROD PL, and doubling removal — together expected to more than halve ROPC CPU use.
  • ROPC hardware preference (agreed): if software fixes and doubling removal are not enough, the TOP group prefers new ROPCs with more cores (or more ROPCs) over the dedicated TOP feature-extraction servers proposed by Yamada-san. Those servers would need new software (an unpacker, and re-sorting serialized data) unless a new filtering step such as ML is added. Shahab will state this preference to the DAQ group. (The DAQ group is reluctant to use spare PCIe40s for TOP.)

3. SCROD firmware for B2GM (Vasily)

  • PS-bypass data corruption solved: too little outbound FIFO space lost end-of-frame markers, breaking all later events until a run reset. Fixed by deeper FIFOs and a back-pressure mechanism in TriggerDataMonitor.
  • Carrier number added to the trigger data stream to TOP-TRG, for per-carrier calibration of trigger timing.
  • Endianness swap in the SCROD (PL 0x9E) to save ROPC CPU; the TOP header keeps its endianness and the data-format version is set to 0x03 when swapped. Shahab has added compatibility on the ROPC side. Gain to be measured at KEK.
  • Packet counter for pedestal readback packets (PS 0x8D), to track down pedestal readout corruption.
  • PL releases 0x95–0x9E and PS 0x8D since the last B2GM.

Action items

Item Owner
IRSX test bench firmware change; bias-vs-width measurements after Physics Week Matt / Tommy
Reframe ML-on-ROPC target as noise rejection; request waveform data with beam Tommy
DAQ talk incl. TOP preference for ROPC upgrade over FE servers Shahab
Pedestal module and 8-pass pulser procedure; UH bench test Shahab
s11a: swap PCIe40 channel at KEK; software mitigation Shahab / KEK
Dummy pass-through and endianness CPU tests at KEK after B2GM Shahab / Vasily
B2GM TOP parallel: present firmware/ROPC material Martin (Vasily's slides)
There are minutes attached to this event. Show them.
    • 3:30 PM → 3:50 PM
      TOP FE Firmware 20m
      Speakers: Tommy Lam (UH Manoa (Belle II)), Vasily Shebalin (UHM), Matt Andrew (University of Hawaii)
    • 3:50 PM → 4:10 PM
      Readout PC 20m
      Speakers: Shahab Kohani (University of Hawaii at Manoa), Tommy Lam (UH Manoa (Belle II))
    • 4:10 PM → 4:30 PM
      Trigger Firmware 20m
      Speakers: Kimika Arai (University of Pittsburg), Dr Vladimir Savinov (University of Pittsburg)
    • 4:30 PM → 4:35 PM
      AOB 5m
      Speakers: Keisuke Yoshihara (University of Hawaii at Manoa), Martin Bessner, Matt Andrew (University of Hawaii), Shahab Kohani (University of Hawaii at Manoa), Thomas E. Browder (University of Hawaii), Tommy Lam (UH Manoa (Belle II)), Vasily Shebalin (UHM)