TOP Firmware Gemba Meeting — Minutes (10 Nov 2026)
Chaired by T. Lam. Present: T. Lam, S. Kohani, M. Andrew (?), V. Savinov, K. Arai. Not present: K. Yoshihara (traveling to the BNL Director's Review), M. Bessner, V. Shebalin.
1. Carrier firmware: IRSX width detection (Tommy)
- IRSX bias (Matt): during B2GM/Physics Week, Matt used the UH IRSX test board to find the wbias values that give signal windows of 3, 6 and 12 clock cycles (at 169 MHz): wbias = 1110, 960 and 840. Confirmed on the oscilloscope with custom firmware (elog: iTOP Cosmic Ray Telescope 3615).
- These values assume TBbias = 1000, but the TOP configuration scripts use 1300. Discussion (Matt (?)): with the wrong TBbias the feature does not work at all; this is why width detection was earlier judged not to work. Plan: change TBbias in the config file, after checking with Martin and the TOP operations side (?). TBbias is meant to be the same on all boards. What else the change affects is not known yet.
- Firmware: the width-detection module is confirmed in the VHDL test bench. Tommy is now changing the scaler from an edge finder to an edge/width finder:
- re-enable the existing call to IrsXWidthDetect
- add a delayed copy of the input pulse, for clean edge detection with variable widths (no double counting)
- add a flag for the original scaler mode. As Shahab asked, the scaler falls back to the original mode if widthHigh = 0 or widthLow = widthHigh.
- Test bench: a pulse train with widths 3, 6 and 12; two scaler instances (with and without width mode); check that pulses are counted correctly per condition (even, odd, both).
- Compiling and testing on idlab2 waits on setup changes after Matt's system update.
2. Pedestals on the ROPC (Shahab)
- The pedestal logic works when tested offline, with occasional failures. Two issues found:
- a condition on the minimum number of points per boardstack was set wrong (found yesterday)
- some channels are always empty because they do not work. Plan: skip channels with no waveforms.
- Trigger count: the random-trigger method needs about 2 million triggers per boardstack, because only two channels are read per trigger. Reading all eight channels would cut this about 4×, but the two-channel readout is hard-coded, so this is not easily possible.
- Triggering on the UH bench is not stable enough for this many triggers: the bench gives errors after very many triggers or repeated trigger commands, and the FTSW must be reset. At KEK this should be fine (e.g. ~20 kHz, a few minutes; boardstacks in parallel). On the UH bench, send the triggers in smaller batches (e.g. ~20 sets). The UH bench does not need to match KEK.
- New PS pedestal readout: the newer PS readout adds words at the start of the data. Shahab is updating the ROPC code and asks Vasily to add a header marker that identifies the new format. Agreed to record this in the minutes and forward it to Vasily.
- s11 (PCIe40 channel) at KEK: discussed briefly. Martin swapped the s11a/s11d cables, and it then ran for about nine hours. Whether the cables were swapped back, and whether the result is conclusive, was not clear to those present. To be checked with Martin.
- update: Martin posted comment below --> switched and error still does not appear. Whatever caused the issue is no longer present.
3. Pittsburgh (V. Savinov, K. Arai)
- Nothing to report.
- Question (Vladimir): is Vasily still involved? Answer: yes. He helps with firmware when needed (e.g. a new data name for the pedestal readout) and also works on KLM firmware. He is not the main developer of the TOP front-end firmware anymore, but he is still the main expert and is available. Expertise is being transferred to Tommy.
4. TOP feature-extraction paper: referee comments (Tommy, for Keisuke)
Most comments are minor and Keisuke will handle them. Three were brought to this meeting.
- Pulse-height pull structure (600–650 a.u.), PS on vs. bypass: answer from the meeting: statistical fluctuation.
- Evidence for SEU-induced PS lockups: the SEU attribution came from papers Kurtis read, reporting radiation-induced lockups in the PS of the same type of device. Nobody present knows the reference; ask Kurtis. It was also checked earlier that the number of lockups grew roughly linearly with the background. That plot would be a good answer if it can be found; it is not known which experiment or period it came from.
- Normalize to luminosity: Tommy sees no clear correlation between TOP BUSY or deadtime and luminosity from Kibana (daily maximum, moving average). Background is a better measure than luminosity, though the two are related; e.g. use PMT hit rates. Points from the discussion:
- After the migration the BUSY errors are effectively zero, so the relevant comparison is the structure before the migration.
- Before the migration, TOP had two kinds of deadtime:
- PS crashes: a run stop, PS masking and a run restart, about 2 min each. This is what the migration fixed.
- A constant 1–5% deadtime under bad beam conditions. It also went away with the migration, probably because of the larger computing resources, but it is a separate effect.
- Update: Martin confirmed that the deadtime is during data-taking runs, not from run stops (so long dead times from fixing TOP PS/electronics/etc aren't included)
- Occasional TOP problems stopped runs for one to two hours. If these count in the plot, they appear as large peaks unrelated to PS crashes and must be filtered out. Tommy will check with Martin and in Kibana.
- Update: Plot existed but was so clear at the time that maybe we should just reproduce it. Tommy is working on this now.
5. Timeline toward the January restart
- Machine operation is expected around mid-January.
- The firmware work (width detection) will not be ready in time.
- ROPC software: the changes have not been tested at KEK yet; talk to Martin and test next week. Pedestal taking will be tested on the UH bench once it is back, possibly next week.
- Goal: before/after ROPC CPU measurements by mid-December at the latest (before Christmas).
- Pittsburgh (?) also plans a new firmware version on a similar timescale.
Next meeting
- In two weeks (24 Nov). Vladimir and Kimika are fine with the date, despite Thanksgiving week.
Action items
| Item |
Owner |
| Change TBbias to 1000 in the config, after checking with Martin; redo wbias values if needed |
Tommy / Matt |
| Compile and test the edge/width-finder scaler on idlab2 |
Tommy |
| Pedestal logic: fix the per-boardstack condition, skip dead channels; test on the UH bench in batches |
Shahab |
| Add a header marker for the new PS pedestal readout format (forward these minutes) |
Vasily |
| Check the s11a/s11d cable-swap result |
Martin / Shahab |
| FX paper: ask Kurtis for the SEU-lockup reference; find the lockup-vs-background plot |
Tommy / Keisuke |
| FX paper: normalize to background (e.g. PMT hit rate); filter long run stops; check with Martin |
Tommy |
| Test the ROPC software changes at KEK next week; before/after CPU numbers by mid-December |
Shahab / Martin |
There are minutes attached to this event.
Show them.