TOP FW Gemba Meeting

→ Pacific/Honolulu
Description

https://speakapp.link/to/L3mdFg

Tommy Lam

TOP Firmware Gemba Meeting — Minutes (24 Nov 2026)

Tue 24 Nov HST (slides dated 25 Nov JST), about 20 min. Chaired by T. Lam. Participants (from the meeting window): T. Lam, K. Yoshihara, K. Arai, M. Bessner, S. Kohani, V. Shebalin

1. Firmware (Tommy)

  • Carrier firmware: Tommy has updates but has not tested them yet. He starts testing this week.
  • SCROD review with AI (Vasily's slides from 18 Nov, presented by Tommy): Vasily used AI tools to review the SCROD and carrier firmware and found several bugs. Two stand out:
    • The PL concatenator breaks the AXI-stream handshake rules. This may be partly behind the data corruption in PS bypass mode.
    • DMA errors in the PS can stop the data flow with no recovery. This may explain the PS lock-ups that TOP saw before the migration.
  • Vasily is confirming the findings one by one and will write tests for them.

2. KEK test plan for the TOP ROPC software and new firmware (Shahab)

  • Goal: test, validate and debug the new software + firmware combination for the next run period. Benchmark the new software and use the dummy pass-through mode to find the main source of CPU usage. Mainly next week on the KEK half of the ROPC, and the week after if needed. Shahab coordinated with Yamada-san; Martin is aware.
  • Preparation (Shahab, this week): compile all the software on the KEK ROPC.
    • Access: ssh rtop1 with the B2DAQ password; the shared account is b2top (Martin, also in the chat). Yamada-san told Shahab to use his own account. Martin: try your own account first; if access is missing, use b2top.
    • Martin (chat): all firmware versions are in SVN, ready to be programmed (svn_update_images.sh); downloading them all takes about 10 seconds. Shahab will send the version number of Vasily's byte-swap firmware.
  • Test 1 — updated software and firmware:
    • Vasily: the byte-swap firmware has a bug. The byte-swap logic overwrites the event footer, so the footer will be broken and data taking will probably crash. It was never tested. He will commit a fixed version soon.
    • With byte swap off (the default), it should not crash (Vasily confirmed). Shahab will test without the firmware byte swap first, and also test his own faster byte swap in the ROPC software.
  • Test 2 — benchmark the dummy pass-through: needs the HLTs (Martin: they are on). Run with the mode on and off at several occupancies. Each occupancy change means editing a number and recompiling, so many recompiles. Shahab will ask Yamada-san whether he wants to be present; otherwise Martin helps.
  • Test 3 — new ROPC pedestal calculation: needs the HLTs. One run needs eight trigger commands, with the pulser moved to ASIC channels 0 to 7 in turn (the slide says "at least 2"; Shahab corrected it to eight). Martin: changing the pulser channel during a run is fine. It is a register access, so it takes some time, but still a fraction of a second.
  • Test 4 — Vasily's pedestal-readout counter (not on the slide): Vasily added a new header word. Shahab changed the pedestal unpacker (the Python script that turns raw pedestal data into values; not the basf2 TOP unpacker): if there is no header, fall back to the old format; if there is, skip it. Martin will send the repository (part of the TOP scripts).

3. TOP firmware and embedded software review with AI (Vasily)

  • No slides. Vasily reviewed the TOP firmware and embedded software with AI tools.
  • PS lock-up hypothesis: the cause may be the way the DMA controller is used, not the OS directly. With incorrect error handling, the PS may fall into a dead loop. The live counter increments in a software loop, so it would stop too.
  • Martin: during the lock-ups, the live counter stopped (an early way to spot the problem), but register reads still worked, because the PL side still works. This fits the hypothesis.
  • Vasily expects progress by next week and will report by email or at the TOP meeting.
  • Single-event offset counter (Martin asked): not explained by these findings; still a mystery.

4. Pittsburgh (Kimika)

  • No update. Hopefully something before the end of the year or soon after.

Next meeting

  • 8 Dec (two weeks), to give people time. Vasily will report by email or at the TOP meeting in the meantime.

Action items

Item Owner
Test the carrier firmware updates Tommy
Compile the software on the KEK ROPC; get the access set up Shahab, Martin
Send Martin the byte-swap firmware version number Shahab
Commit the fixed byte-swap firmware (footer bug) Vasily
KEK tests next week: updated SW/FW (byte swap off), dummy pass-through benchmark, ROPC pedestal calculation, pedestal counter Shahab, Martin (Yamada-san to be asked)
Send the repository of the pedestal unpacker script Martin
PS lock-up / DMA investigation; report by email or at the TOP meeting Vasily

 

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:40 PM
      TOP FE Paper Comments 10m
      Speaker: Keisuke Yoshihara (University of Hawaii at Manoa)
    • 4:40 PM → 4:45 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)