Repository navigation
library/util_axis_fifo: Updated core - #2183
IstvanZsSzekely wants to merge 8 commits into
Conversation
- 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
left a comment
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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.
74ed3ca to
bf1caa8
Compare
…t header Signed-off-by: Istvan-Zsolt Szekely <istvan.szekely@analog.com>
LBFFilho
left a comment
There was a problem hiding this comment.
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>
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
PR Checklist