Skip to content

library/util_axis_fifo: Updated core - #2183

Open
IstvanZsSzekely wants to merge 8 commits into
mainfrom
util_axis_fifo_update
Open

IstvanZsSzekely wants to merge 8 commits into
mainfrom
util_axis_fifo_update

Conversation

@IstvanZsSzekely

@IstvanZsSzekely IstvanZsSzekely commented Oct 28, 2026 •

Copy link
Copy Markdown
Contributor

PR Description

Extended the symmetric and asymmetric FIFOs to support all AXI Stream signals.
Made some fixes to how the empty, full, level and room status signals are calculated and verified.
Added empty and full status signals to both master and slave interfaces.
Removed all data processing from the cores. The IPs act as a simple FIFO, where all input data comes out on the output and no transaction is lost.
Updated documentation.
Data processing cores that are capable of handling null transaction removal, TLAST signal repositioning and such are not implemented in this PR.

SRC_REG_SLICE_EN is also removed from the SPI Engine infrastructure, as the FIFO no longer supports this feature.

To be simulated with this Testbenches branch.

PR Type

  • Bug fix (change that fixes an issue)
  • New feature (change that adds new functionality)
  • Breaking change (has dependencies in other repos or will cause CI to fail)
  • Documentation

PR Checklist

  • I have followed the code style guidelines
  • I have performed a self-review of changes
  • I have compiled all hdl projects and libraries affected by this PR
  • I have tested in hardware affected projects, at least on relevant boards
  • I have commented my code, at least hard-to-understand parts
  • I have signed off all commits from this PR
  • I have updated the documentation (wiki pages, ReadMe files, Copyright etc)
  • I have not introduced new Warnings/Critical Warnings on compilation
  • I have added new hdl testbenches or updated existing ones

- Added support for TSTRB, TUSER, TID and TDEST signals
- Updated IP creation script
- Added the IP bd.tcl script for automatic parameter setup option
- Removed data processing from the core

Signed-off-by: Istvan-Zsolt Szekely <istvan.szekely@analog.com>
- Added support for TSTRB, TUSER, TID and TDEST signals
- Updated IP creation script
- Added the IP bd.tcl script for automatic parameter setup option
- Removed data processing from the core

Signed-off-by: Istvan-Zsolt Szekely <istvan.szekely@analog.com>
Signed-off-by: Istvan-Zsolt Szekely <istvan.szekely@analog.com>
Signed-off-by: Istvan-Zsolt Szekely <istvan.szekely@analog.com>
Signed-off-by: Istvan-Zsolt Szekely <istvan.szekely@analog.com>
Signed-off-by: Istvan-Zsolt Szekely <istvan.szekely@analog.com>

@caosjr caosjr left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I suggest to insert the variable SRC_REG_SLICE_EN again.

// where the combinatorial path from s_axis_* signals through the FIFO
// creates timing violations. Disabled by default (0) since modules like
// data_offload do not require this additional latency.
if (SRC_REG_SLICE_EN) begin : gen_with_slice

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've compared the ad4630_fmc/zed build between main (SRC_REG_SLICE_EN=1) and this PR (removed). Timing fails on this branch.

Main: All timing met, spi_clk WNS = +0.156 ns, 0 failing endpoints.
This PR: Timing NOT met, spi_clk WNS = -0.126 ns, 11 failing endpoints. Synthesis is even worse: WNS = -1.518 ns, TNS = -21.021 ns across 35 endpoints. The build outputs system_top_bad_timing.xsa.

The root cause is the 8-lane SDI FIFO topology, compiled with "make -j8 CLK_MODE=1 NUM_OF_CHANNEL=2 LANES_PER_CHANNEL=4 CAPTURE_ZONE=2 DDR_EN=1". In this config, NUM_OF_SDIO = 8, so i_sdi_fifo splits into 8 parallel gen_fifo_instances. The s_axis_ready signal is an AND-reduction across all 8 instances' fill-level calculations, and that result fans back out to all 8 write-enables. This creates 6 levels of combinatorial logic (CARRY4 + LUTs) crossing between FIFO instances with no register break — 5.716 ns data path against a 6.250 ns budget at 160 MHz.

The failing path confirms this exactly: gen_fifo_instances[5]/s_axis_waddr_reg_reg through the ready aggregation chain to gen_fifo_instances[7]/m_ram_reg/WEBWE. On main with the register slice, this path doesn't appear as critical at all — the axi_register_slice registers both valid/data and ready, breaking the fan-in/fan-out cycle.

The ad4052 is also at risk — it runs spi_clk at 180 MHz and passes implementation with only 36 ps of margin (WNS = +0.036 ns), while its synthesis actually fails (WNS = -1.283 ns). The router barely recovers it.

The register slice (or an equivalent timing-break mechanism) needs to be part of util_axis_fifo_asym for any project running high-frequency clock domains with wide asymmetric FIFOs.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added a small 2 stage FIFO instead of the axi_register_slice to keep the code more compact, easier to read and maintain. This fixes the timing violations in the FIFO which had issues.
Please keep in mind that the ad4630_fmc/zed project with the provided make parameters has CDC violations and registers that have no specified clock source, which will need to be addressed.

…t header

Signed-off-by: Istvan-Zsolt Szekely <istvan.szekely@analog.com>

@LBFFilho LBFFilho left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think the core logic rewrite is pretty cool, room and level are much simpler this way.

There is also #1920 for fixing room and level using the other architecture. It is however incompatible with this PR.

But this current PR removes the null TKEEP beat removal feature, which we rely on in the SPI Engine. So these changes would also need to be accompanied by a commit introducing some other null TKEEP skipping mechanism on the SPI Engine.

Signed-off-by: Istvan-Zsolt Szekely <istvan.szekely@analog.com>

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants