TOP FW Gemba Meeting

→ Pacific/Honolulu
Description

https://speakapp.link/to/L3mdFg

Tommy Lam

TOP Firmware Gemba Meeting — Minutes (6 Oct 2026)

First meeting of the series; chaired by T. Lam. Attendees included K. Yoshihara, T. Lam, S. Kohani, V. Shebalin, M. Bessner, M. Andrew, V. Savinov and K. Arai.

1. Removing the channel-pair "doubling" (Tommy)

  • Context: to cut ROPC CPU load, the IRSX currently reports hits per channel pair (0|1, 2|3, 4|5, 6|7), so both channels of a pair are read out. Matt confirmed that the IRSX trigger pulse width can distinguish even-only, odd-only and both, and previous developers (Luca, Kurtis) left comments and VHDL for this.
  • Plan: revive the width-detection path (IrsXWidthDetect → IrsXScaler/Sequencer → IrsXSingle) with a testbench for each step, then validate on the UH test bench. In parallel, build a lookup table of IRSX bias settings vs. trigger width on Matt's IRSX test board, and confirm the settings are consistent on the UH test bench and at KEK.
  • Status: a testbench for IrsXWidthDetect shows the logic works; register-mapping typos in the interface control were fixed. Work is in a private GitLab repo before going into SVN; deployment to be coordinated with Vasily. The IRSX test board still needs to be set up.
  • Request (Shahab): keep the doubling available as a mode (e.g., a register switch), since the pedestal method below relies on it. Agreed.

2. ROPC pedestal waveform trigger (Shahab)

  • Goal: compute pedestals on the ROPC from waveforms sent through the normal data path, with triggering moved from the PS to slow control (the PL is too complicated). About 500 waveforms are needed for each of ~490 windows.
  • Replicating the PS method (hundreds of trigger commands per window) does not work from slow control — the UH system errors out after many trigger commands.
  • Option A — long trigger window per window (lookback scan): slow, scales with the number of boardstacks, needs tuning per system and the analog threshold turned off. Workable at UH (one boardstack), impractical at KEK.
  • Option B (preferred) — random pulser, triggered on the pulse, even/odd scan: pulse the even channels (~100k pulses), reject them by pulse height and use the paired odd channels' empty waveforms; then swap. Time is nearly independent of the number of boardstacks. The ROPC module will be made independent of the trigger arrangement.
  • Pulser routing: which channel receives the pulse is a boardstack register (default channel 0), not a property of the pulser, so the even/odd scan should also work at UH. Martin to send Shahab the pulser commands.
  • Time: ~100k pulses per pass should take a few minutes, acceptable since pedestals do not need frequent updates.
  • Why not keep the PS pedestals? (Vasily): Shahab — sending waveforms through the normal data path avoids the corruption seen in the current pedestal readout, and removes this function from the PS.
  • Vasily asked Shahab to check the new pedestal format (with sample number) and the disabled header byte-swapping; Shahab has added both to the ROPC code but not yet checked them. The current script will need updating for the new format.
  • Crosstalk (Keisuke): the large pulse on even channels may leak into the paired odd channel and bias the pedestal. Shahab: crosstalk is small enough to pass the usual rejection cut, but not zero. Check: compare the new pedestals with those the PS computes on the same boardstack — a systematic shift, or a wider distribution, would indicate crosstalk.

3. Other

  • Pittsburgh (Vladimir, Kimika): no report yet. Open items before data taking resumes: understanding the loss of front-end connections at the end of June, and redesigning the firmware to combine time-aligned information from different boardstacks of the same slot.
  • DAQ session, 14 Oct: Yamada-san asked for a TOP feature-extraction / ROPC CPU update. Shahab will prepare it; Tommy or Vasily to send him one or two firmware slides beforehand. Shahab will also ask Yamada-san about his ROPC work.
  • Meeting frequency: at least monthly or every other week during the shutdown, more often once beam returns. Next meeting next week, same time (before B2GM); Tommy will set up the Indico.
  • B2GM TOP parallel sessions: Keisuke raised that the Sunday evening slot (~20:30 JST) is hard for people traveling and that weekday sessions would be preferable; he will not attend B2GM this time. Martin explained the choice: a hybrid session when most people are at KEK, avoiding the week before B2GM (when few are on site) and the B2GM week itself (after the TOP plenary talk, and conflicts on every day). Martin offered a US-friendly meeting next week if needed.

Action items

Item Owner
Revive trigger-width path with testbenches; keep a doubling mode (register switch) Tommy
Set up IRSX test board; bias vs. width lookup table Matt / Tommy
Send pulser channel-control commands to Shahab Martin
Finish ROPC pedestal module; test even/odd pulser scan (UH and KEK) Shahab
Compare new pedestals with PS pedestals for crosstalk bias Shahab
Check new pedestal format and header byte-swap; update script Shahab
1–2 firmware slides for the 14 Oct DAQ session Tommy or Vasily → Shahab
Indico for next week's meeting Tommy
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
      Speaker: 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)

      Zoom Meeting Minute Summary
      Key Outcomes

      Firmware development is focusing on utilizing trigger widths for channel discrimination in the IRSX ASIC .
      Pedestal waveform triggering is being migrated from PS to the ROPC slow control side to prevent data corruption and improve reliability .
      Pulse-based triggering using an even-odd channel arrangement has been proposed as the most viable method for pedestal calculation at KEK .
       

      Progress & Status

      IRSX Firmware: Work is underway to implement trigger width discrimination on carrier boards, including the creation of test benches and cleaning up register mapping typos in the AXI interface .

      ROPC Code: Code is being updated to make the ROPC independent of specific trigger arrangements, allowing it to recalculate pedestals regardless of the trigger source .

      TRG Connectivity: Vladimir and Kimika are investigating connection losses experienced at the end of June and planning firmware redesigns for time-aligned information across board stacks .

      Decisions Made

      Backward Compatibility: The firmware will include a register-controlled mode to toggle the "doubling" feature on or off to maintain compatibility for other calculations .

      Pedestal Migration: Pedestal functionality will move to the slow control side rather than the PL to avoid excessive complexity .

      Triggering Method: The team will prioritize the even-odd pulsar arrangement for KK over direct slow control trigger loops, which are prone to system errors .

      Risks & Blockers

      System Stability: Sending a high volume of trigger commands in a loop (e.g., 500 commands) has previously caused system errors in the UA system, requiring a full reset .

      Open Questions

      UH Test Bench: It is unclear if the current UH pulsar setup supports the same channel-specific triggering as KK, as it may currently only send pulses to channel zero .

      Action Items

      Martin: Send commands for controlling pulse destination channels to Shahab.

      Shahab: Test the even-odd pulsar arrangement at KK (potentially Friday or early next week) .

      Shahab: Verify the new pedestal readout format (including the sample number counter) and the header swapping modification at the UH system .

      Tommy: Prepare the invitation for the next meeting .