Skip to content

Minor Release v2.78.0

Latest

Choose a tag to compare

@ruck314 ruck314 released this 09 Nov 23:50
6b787ee

Pull Requests Since v2.77.0

Unlabeled

  1. #1519 - feat(xilinx): add GTHE4/GTYE3 drivers and the eye-scan lane runner
  2. #1534 - feat(jesd204b): add JesdRxEyeScanLink adapter for the eye-scan runner
  3. #1520 - ci(surf_ci): split RTL regression into per-module matrix and parallelize Rogue tests
  4. #1518 - AxiDualPortRam: fix address decoding for 3, 5, 9, 17-word data widths
  5. #1540 - ci(vsg): pin vsg 3.36.0 and disable its new whitespace rules
  6. #1536 - fix(SsiPrbsRateGen): let OneShot send a frame when TxEn is off
  7. #1535 - fix(SsiPrbsTx): map DataCount (0x0C) read-only
  8. #1539 - fix(SsiPrbsRateGen): clear FrameCount on StatReset
  9. #1538 - fix(SsiPrbsRateGen): declare FrameCount as 32 bits in PyRogue
  10. #1537 - fix(AxiStreamMonAxiL): keep the channel index in the 0x3C debug word

Pull Request Details

AxiDualPortRam: fix address decoding for 3, 5, 9, 17-word data widths

Author: Larry Ruckman ruckman@slac.stanford.edu
Date: Wed Nov 4 21:47:18 2026 -0800
Pull: #1518 (80 additions, 9 deletions, 2 files changed)
Branch: jeisch/fix-axidualportram-dec-bits

Notes:

Description

Use the wordcount() function in calculating AXI_DEC_BITS_C to match similar calculations in this file. The previous log2 calculation was wrong for 3, 5, 9, 17-word data widths.

Details

When DATA_WIDTH_G is wider than 32 bits, AxiDualPortRam splits each RAM line into 32-bit AXI-Lite words and decodes AXI_DEC_BITS_C address bits to pick the word within a line. The width of that field is computed as:

log2((DATA_WIDTH_G-1)/32)
That is log2(words - 1), not log2(words). Since log2 rounds up, the two agree for most widths, but they differ by one bit whenever words - 1 is a power of two: 3, 5, 9 or 17 words per line.

For example, with DATA_WIDTH_G = 96 (3 words), only 1 bit is decoded where 2 are needed. Word 2 of line n aliases into line n+1, so an AXI write to it corrupts the next line, and a read of it returns the wrong data.

The fix
constant AXI_DEC_BITS_C : integer := ite(DATA_WIDTH_G <= 32, 0, log2(wordCount(DATA_WIDTH_G, 32)));

wordCount(DATA_WIDTH_G, 32) is the number of 32-bit words per line, so the field is always wide enough to address every word.

How it was found
A 96-bit-wide AxiDualPortRam: AXI-Lite writes to the third word of a line showed up in the following line on read-back. A workaround is to pad the line to 128 bits.


feat(xilinx): add GTHE4/GTYE3 drivers and the eye-scan lane runner

Author: Larry Ruckman ruckman@slac.stanford.edu
Date: Thu Nov 5 16:23:51 2026 -0800
Pull: #1519 (24558 additions, 51 deletions, 27 files changed)
Branch: slaclab/additional-gt-drivers
Issues: #1517

Notes:

Description

Adds Gthe4Channel, Gthe4Common (UltraScale+ GTH) and Gtye3Channel, Gtye3Common (UltraScale GTY) to surf.xilinx, written row by row from UG576 v1.7.1 Tables C-1/C-2 and UG578 v1.4 Tables B-1/B-2. Both channel drivers carry the same EyeScan child as Gthe3Channel and Gtye4Channel. Also adds the eye-scan command-line runner, so application repos keep only a thin script instead of copying PgpEyeScan.py.

  • No GTHE4 or GTYE3 hardware was available: register maps are verified against the user-guide tables only and both eye-scan descriptors are hwVerified=False.
  • GTHE4 eye scan writes the five GTH mask words (UG576 Table 4-20 note 1), not the ten GTY words listed at the same addresses; GTYE3 reuses the GTYE4 tables. Both keep the sign phase rule.
  • Runner: surf.xilinx.eyescan addEyeScanArguments, prepareEyeScan, runEyeScan and EyeScanLane, plus surf.protocols.pgp.Pgp4EyeScanLink. Hardware-tested on a XilinxVariumC1100 (GTYE4, PGP4 6.25 Gb/s, QSFP loopback fiber): Status, Probe and Bathtub match PgpEyeScan.py lane for lane; Margin, --loopback restore and Ctrl-C abort verified.
  • Emulated eye-scan suite runs on all four families: 1285 passed locally (Rogue v6.16.0), flake8 0.
  • Decisions and open risks: docs/plans/ultrascale-gt-drivers/README.md, docs/plans/eyescan-runner/README.md.

Related

Stacked on #1517 (the eye-scan engine); the first seven commits are that PR.


ci(surf_ci): split RTL regression into per-module matrix and parallelize Rogue tests

Author: Larry Ruckman ruckman@slac.stanford.edu
Date: Thu Nov 5 16:02:49 2026 -0800
Pull: #1520 (164 additions, 216 deletions, 10 files changed)
Branch: slaclab/ci-workflow-refactor

Notes:

Description

Splits the non-Rogue regression into nine parallel RTL test: <module> jobs (axi, base, common, devices, dsp, ethernet, protocols, simlink, xilinx) and runs the Rogue job as a single pytest call with one worker per logical CPU (capped at 8). Rogue now comes from conda-forge slac-rogue=6.16.0 on python=3.12 instead of the deprecated tidair-tag rogue=v6.15.0, all jobs move to ubuntu-26.04, and the conda_build_lib release job is removed.

Details

  • Selective feature-branch runs are kept per module. common and simlink always run, and simlink keeps its min(nproc, 8) worker cap.
  • The Rogue job now also covers the SideBand and Stream SimLink Rogue contracts in tests/simlink/rogue, and uploads its coverage to Codecov on full runs under the same run-mode policy as the RTL matrix.
  • conda-rogue.yml pins slac-rogue=6.16.0 and python=3.12; bump the pin deliberately when a new Rogue release should become the CI contract.
  • simlink/iverilog/Makefile keeps only option tokens from iverilog-vpi --cflags: the Ubuntu 26.04 iverilog 12.0-3 package emits a stray 0-3 that broke the Icarus VPI build. No-op on 24.04.
  • conda-recipe/meta.yaml depends on slac-rogue with python>=3.11, the oldest Python conda-forge builds slac-rogue for.
  • Tags no longer publish a conda package; CONDA_UPLOAD_TOKEN_TAG is no longer used.
  • Branch protection: replace the required check "Non-rogue Regression Tests" with the nine RTL test: <module> checks.

feat(jesd204b): add JesdRxEyeScanLink adapter for the eye-scan runner

Author: Larry Ruckman ruckman@slac.stanford.edu
Date: Mon Nov 9 12:42:43 2026 -0800
Pull: #1534 (575 additions, 14 deletions, 9 files changed)
Branch: slaclab/jesd-rx-eyesans
Issues: #437, #25, #84

Notes:

Description

Adds surf.protocols.jesd204b.JesdRxEyeScanLink, the JESD204b RX link adapter of the eye-scan runner (surf.xilinx.eyescan.runEyeScan), so an application can scan the lanes of a JesdRx core the same way Pgp4EyeScanLink scans PGP4 lanes. The adapter reports the lane's DataValid bit as LinkReady, the per-lane StatusValidCnt, DisparityErr, NotInTableErr, AlignErr and PositionErr, the raw Enable and control words, and the JESD status bits on the Status line; a lane outside the core is refused. JesdRxEyeScanLink.connectRxReset registers ResetGTs with the lane's DataValid bit as the RX reset hook.

Details

  • ResetGTs resets every GT of the link, TX included, and the hook waits for the RX lane only. New EyeScanLink.resetGroup() names the shared reset (the JesdRx device here) and checkLanes refuses --parallel true for two lanes of one core before any write, so the guard no longer depends on the application script; the application still checks the TX side after the scan. Documented in python/surf/xilinx/README.md.
  • Counters are ints like Pgp4EyeScanLink, so the saved metadata of the two adapters has the same types.
  • import surf.protocols.jesd204b now imports surf.xilinx.eyescan (numpy, click), as surf.protocols.pgp already does.
  • Tests in tests/xilinx/eyescan/test_JesdRxEyeScanLink.py run over emulated GTHE3 and GTHE4 JESD lanes (makeJesdLaneRoot); GTHE4 is model only, in preparation for the UltraScale+ carriers.
  • Verified on an AMC carrier KU040 (8B10B, 7.02 Gb/s, LPM): Status, Probe, Bathtub and Eye all OK on 4 lanes.
  • flake8 --count python/ scripts/ tests/: 0. tests/xilinx/eyescan: 1307 passed, plus the six resetGroup tests added since (run in CI).

Related


fix(SsiPrbsTx): map DataCount (0x0C) read-only

Author: Larry Ruckman ruckman@slac.stanford.edu
Date: Sat Nov 7 22:45:29 2026 -0800
Pull: #1535 (2 additions, 2 deletions, 2 files changed)
Branch: sidcraftscode/ssiprbstx-datacount-ro

Notes:

Description

SsiPrbsTx maps dataCnt at 0x0C with axiSlaveRegister, so the register is writable. dataCnt is the word counter for the packet in progress: DATA_S uses it as the counter-mode payload and ends the packet when r.dataCnt = r.length. Writing 0x0C while the transmitter is idle with a value larger than PacketLength makes the next packet run until the 32-bit counter wraps instead of stopping at PacketLength.

0x0C was read-only before the 8-bit register map rework (writes to it were ignored), and the PyRogue DataCount variable is RO. It became writable when ba3c36d added it back. It is now mapped with axiSlaveRegisterR, like the other status counters.

The DataCount description also said it was a cumulative count of words sent. The counter is cleared at the end of every packet, so the description now says that.

Details

Checked with a small GHDL bench (AXI mode, PacketLength = 8, OneShot, write 100 to 0x0C while idle, OneShot again):

before: write OKAY, 0x0C reads back 100, second packet still has no tLast after 5000 cycles
after:  write DECERR, 0x0C reads 0, second packet is 9 words like the first

tests/protocols/ssi/test_SsiPrbs.py still passes.


fix(SsiPrbsRateGen): let OneShot send a frame when TxEn is off

Author: Larry Ruckman ruckman@slac.stanford.edu
Date: Sat Nov 7 22:58:14 2026 -0800
Pull: #1536 (14 additions, 10 deletions, 1 files changed)
Branch: sidcraftscode/ssiprbsrategen-oneshot

Notes:

Description

SsiPrbsRateGen only looks at genOne (OneShot, 0x0C bit 1) inside the else branch of if r.genEnable = '0'. genOne is a one-cycle strobe, so with TxEn = 0 the OneShot command is dropped and no frame is sent. With TxEn = 1 it does send a frame, but skips the busy check and is not counted in FrameCount or Missed. It also replaces the genCount = genPeriod test for that cycle, so a OneShot that lands on the period match lets genCount run past genPeriod, and the periodic frames stop until the 32-bit counter wraps.

genOne is now checked after the genEnable block, and both trigger sources go through the same busy / FrameCount / Missed logic. OneShot in SsiPrbsTx already works this way: it does not depend on TxEn.

Details

GHDL bench on SsiPrbsRateGen (32-bit stream, PacketLength = 4, OneShot written to 0x0C the way the PyRogue toggle does it):

                                        before                  after
TxEn=0, OneShot                         no frame                1 frame, FrameCount +1
TxEn=1, RawPeriod=0xFFFFFFFF, OneShot   1 frame, FrameCount +0  1 frame, FrameCount +1
TxEn=0, OneShot twice, 2nd while busy   no frames               1 frame, Missed +1

The third case uses PacketLength = 512 so the second OneShot arrives while the first frame is still going out. With TxEn = 1 and RawPeriod = 31, a OneShot at each of 41 offsets after enabling stopped the periodic frames at one offset before the change and at none after it.


fix(AxiStreamMonAxiL): keep the channel index in the 0x3C debug word

Author: Larry Ruckman ruckman@slac.stanford.edu
Date: Sat Nov 7 22:25:08 2026 -0800
Pull: #1537 (1 additions, 1 deletions, 1 files changed)
Branch: sidcraftscode/axistreammonaxil-debug-channel

Notes:

Description

In AxiStreamMonAxiL, the per-channel debug word at i*0x40 + 0x3C writes the channel index to bits 23:16, and the next line clears bits 31:16, so the channel field always reads 0. Only the unused upper byte (31:24) is cleared now.

Details

Read back on a 3-slot instance in GHDL: before the change all three debug words were 0x00000603; after, they are 0x00000603, 0x00010603 and 0x00020603.

tests/axi/axi_stream/test_AxiStreamMonAxiL.py still passes.


fix(SsiPrbsRateGen): declare FrameCount as 32 bits in PyRogue

Author: Larry Ruckman ruckman@slac.stanford.edu
Date: Sun Nov 8 08:15:44 2026 -0800
Pull: #1538 (1 additions, 1 deletions, 1 files changed)
Branch: sidcraftscode/ssiprbsrategen-framecount-32bit

Notes:

Description

FrameCount in _SsiPrbsRateGen.py is declared with bitSize = 64, but frameCount in SsiPrbsRateGen.vhd is slv(31 downto 0) at 0x40 and 0x44 is not decoded. The upper word always reads 0, so the variable looks like a 64-bit counter but wraps at 2^32. It is now declared as 32 bits to match the firmware.

Details

On pre-release in GHDL, after 38 frames 0x40 reads 38 and 0x44 reads 0 with an OKAY response. flake8 is clean on the edited file.


fix(SsiPrbsRateGen): clear FrameCount on StatReset

Author: Larry Ruckman ruckman@slac.stanford.edu
Date: Sun Nov 8 08:18:58 2026 -0800
Pull: #1539 (2 additions, 1 deletions, 1 files changed)
Branch: sidcraftscode/ssiprbsrategen-statreset-framecount

Notes:

Description

StatReset (0x00) in SsiPrbsRateGen clears genMissed and resets the AxiStreamMon rate and bandwidth statistics, but frameCount (0x40) keeps counting, so after a reset FrameCount and Missed cover different intervals. The PyRogue description of StatReset is "Reset all statistics counters". frameCount took the place of the backpressure counters in df933b7, which were cleared in the same statReset block, and the clear was not carried over.

frameCount is now cleared together with genMissed, the same way CountReset clears the frame counter in SsiPrbsTx.

Details

GHDL bench on SsiPrbsRateGen (32-bit stream, PacketLength = 4, RawPeriod = 3 so half the triggers are missed, TxEn for 300 cycles, then StatReset written 1 then 0 as the PyRogue toggle does):

before: 38 frames, FrameCount 38, Missed 38; after StatReset FrameCount 38, Missed 0
after:  38 frames, FrameCount 38, Missed 38; after StatReset FrameCount 0, Missed 0

VSG is clean on the edited file.


ci(vsg): pin vsg 3.36.0 and disable its new whitespace rules

Author: Larry Ruckman ruckman@slac.stanford.edu
Date: Mon Nov 9 11:24:33 2026 -0800
Pull: #1540 (54 additions, 1 deletions, 2 files changed)
Branch: slaclab/ci-pin-vsg

Notes:

VSG 3.36.0 landed on PyPI this morning and the unpinned vsg in pip_requirements.txt made every Linting job fail with 3022 findings in 149 untouched files (see https://github.com/slaclab/surf/actions/runs/42673914532/job/129363325168). The new rules enforce array( and related spacing that conflicts with SURF house style.

  • Pin vsg==3.36.0 so a PyPI release can no longer break CI on unrelated branches; bump deliberately from now on.
  • Disable the seven rules new in 3.36.0 in vsg-linter.yml, each with its doc link and the SURF style it conflicts with: unbounded_array_definition_100/101, index_subtype_definition_101, index_constraint_100, signal_402/403, whitespace_103.
  • whitespace_103 and unbounded_array_definition_101 also catch a handful of real typos (0 to(N-1), range<>)of); those can be fixed and the two rules re-enabled in a follow-up.
  • Verified locally with VSG 3.36.0: scripts/vsg_linter.sh reports no issues over the whole repo.

Full Changelog: v2.77.0...v2.78.0