Repository navigation
Pull Requests Since v2.77.0
Unlabeled
- #1519 - feat(xilinx): add GTHE4/GTYE3 drivers and the eye-scan lane runner
- #1534 - feat(jesd204b): add JesdRxEyeScanLink adapter for the eye-scan runner
- #1520 - ci(surf_ci): split RTL regression into per-module matrix and parallelize Rogue tests
- #1518 - AxiDualPortRam: fix address decoding for 3, 5, 9, 17-word data widths
- #1540 - ci(vsg): pin vsg 3.36.0 and disable its new whitespace rules
- #1536 - fix(SsiPrbsRateGen): let OneShot send a frame when TxEn is off
- #1535 - fix(SsiPrbsTx): map DataCount (0x0C) read-only
- #1539 - fix(SsiPrbsRateGen): clear FrameCount on StatReset
- #1538 - fix(SsiPrbsRateGen): declare FrameCount as 32 bits in PyRogue
- #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) andGtye3Channel,Gtye3Common(UltraScale GTY) tosurf.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 sameEyeScanchild asGthe3ChannelandGtye4Channel. Also adds the eye-scan command-line runner, so application repos keep only a thin script instead of copyingPgpEyeScan.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
signphase rule.- Runner:
surf.xilinx.eyescanaddEyeScanArguments,prepareEyeScan,runEyeScanandEyeScanLane, plussurf.protocols.pgp.Pgp4EyeScanLink. Hardware-tested on a XilinxVariumC1100 (GTYE4, PGP4 6.25 Gb/s, QSFP loopback fiber): Status, Probe and Bathtub matchPgpEyeScan.pylane for lane; Margin,--loopbackrestore 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 singlepytestcall with one worker per logical CPU (capped at 8). Rogue now comes from conda-forgeslac-rogue=6.16.0onpython=3.12instead of the deprecated tidair-tagrogue=v6.15.0, all jobs move toubuntu-26.04, and theconda_build_librelease job is removed.Details
- Selective feature-branch runs are kept per module.
commonandsimlinkalways run, andsimlinkkeeps 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.ymlpinsslac-rogue=6.16.0andpython=3.12; bump the pin deliberately when a new Rogue release should become the CI contract.simlink/iverilog/Makefilekeeps only option tokens fromiverilog-vpi --cflags: the Ubuntu 26.04 iverilog 12.0-3 package emits a stray0-3that broke the Icarus VPI build. No-op on 24.04.conda-recipe/meta.yamldepends onslac-roguewithpython>=3.11, the oldest Python conda-forge buildsslac-roguefor.- Tags no longer publish a conda package;
CONDA_UPLOAD_TOKEN_TAGis 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 aJesdRxcore the same wayPgp4EyeScanLinkscans PGP4 lanes. The adapter reports the lane'sDataValidbit asLinkReady, the per-laneStatusValidCnt,DisparityErr,NotInTableErr,AlignErrandPositionErr, the rawEnableand control words, and the JESD status bits on the Status line; a lane outside the core is refused.JesdRxEyeScanLink.connectRxResetregistersResetGTswith the lane'sDataValidbit as the RX reset hook.Details
ResetGTsresets every GT of the link, TX included, and the hook waits for the RX lane only. NewEyeScanLink.resetGroup()names the shared reset (theJesdRxdevice here) andcheckLanesrefuses--parallel truefor 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 inpython/surf/xilinx/README.md.- Counters are ints like
Pgp4EyeScanLink, so the saved metadata of the two adapters has the same types.import surf.protocols.jesd204bnow importssurf.xilinx.eyescan(numpy, click), assurf.protocols.pgpalready does.- Tests in
tests/xilinx/eyescan/test_JesdRxEyeScanLink.pyrun 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 sixresetGrouptests added since (run in CI).Related
- slaclab/amc-carrier-core#437: hook registration and
AppTopJesd.eyeScanLanes()- slaclab/amc-carrier-project-template#25:
software/scripts/JesdRxEyeScan.py(KU040, verified on hardware)- slaclab/cryo-det#84: the same script for the KU15P carrier (GTHE4, emulated tree only)
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
SsiPrbsTxmapsdataCntat 0x0C withaxiSlaveRegister, so the register is writable.dataCntis the word counter for the packet in progress:DATA_Suses it as the counter-mode payload and ends the packet whenr.dataCnt = r.length. Writing 0x0C while the transmitter is idle with a value larger thanPacketLengthmakes the next packet run until the 32-bit counter wraps instead of stopping atPacketLength.0x0C was read-only before the 8-bit register map rework (writes to it were ignored), and the PyRogue
DataCountvariable is RO. It became writable when ba3c36d added it back. It is now mapped withaxiSlaveRegisterR, like the other status counters.The
DataCountdescription 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.pystill 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
SsiPrbsRateGenonly looks atgenOne(OneShot, 0x0C bit 1) inside theelsebranch ofif r.genEnable = '0'.genOneis a one-cycle strobe, so withTxEn = 0the OneShot command is dropped and no frame is sent. WithTxEn = 1it does send a frame, but skips thebusycheck and is not counted inFrameCountorMissed. It also replaces thegenCount = genPeriodtest for that cycle, so a OneShot that lands on the period match letsgenCountrun pastgenPeriod, and the periodic frames stop until the 32-bit counter wraps.
genOneis now checked after thegenEnableblock, and both trigger sources go through the same busy /FrameCount/Missedlogic.OneShotinSsiPrbsTxalready works this way: it does not depend onTxEn.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 +1The third case uses PacketLength = 512 so the second OneShot arrives while the first frame is still going out. With
TxEn = 1and 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 ati*0x40 + 0x3Cwrites 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 are0x00000603,0x00010603and0x00020603.
tests/axi/axi_stream/test_AxiStreamMonAxiL.pystill 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
FrameCountin_SsiPrbsRateGen.pyis declared withbitSize = 64, butframeCountinSsiPrbsRateGen.vhdisslv(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) inSsiPrbsRateGenclearsgenMissedand resets theAxiStreamMonrate and bandwidth statistics, butframeCount(0x40) keeps counting, so after a resetFrameCountandMissedcover different intervals. The PyRogue description ofStatResetis "Reset all statistics counters".frameCounttook the place of the backpressure counters in df933b7, which were cleared in the samestatResetblock, and the clear was not carried over.
frameCountis now cleared together withgenMissed, the same wayCountResetclears the frame counter inSsiPrbsTx.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 0VSG 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
vsginpip_requirements.txtmade 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 enforcearray(and related spacing that conflicts with SURF house style.
- Pin
vsg==3.36.0so 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_103andunbounded_array_definition_101also 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.shreports no issues over the whole repo.
Full Changelog: v2.77.0...v2.78.0