Skip to content

projects: ad_xband16_ebz: Fix timing issues for 26.4Gbps Lane Rate - #2228

Open
IPCatuna wants to merge 84 commits into
mainfrom
dev_xband16_timing
Open

IPCatuna wants to merge 84 commits into
mainfrom
dev_xband16_timing

Conversation

@IPCatuna

@IPCatuna IPCatuna commented Nov 24, 2026 •

Copy link
Copy Markdown
Collaborator

PR Description

This PR implements timing fixes for the ad_xband16_ebz project, so it passes timing in Vivado for 26.4Gbps lane rate.
To achieve this, the following types of fixes have been done:

  • I defined hard PBlocks for timing-critical IPs - one PBlock per Super Logic Region (SLR);
  • I added FORCE_MAX_FANOUT constraints to reduce fanout for high-fanout, high frequency nets;
  • I added USER_CROSSING constraints to try to force / to prevent SLR crossing on certain critical paths;
  • I reduced data offload memory per channel from 16 KSamples to 8 KSamples;
  • I changed implementation directives with those recommended by Vivado report_qor_suggestions;
  • A number of timing fixes were also implemented in the jesd204 link layer IP, jesd204 DAC transport layer IP, axi_adf4030 IP and data_offload IP (adding pipeline stages, per-lane IPs instead of per design, manually replicating pipelines, faster input/output stages and many others).

Also, a pre-existing bug was fixed in the jesd204 RX link layer IP:

  • Originally, if block_sync deasserted immediately after a buffer release opportunity, the elastic_buffer buffer_release_n signal would deassert only much later, after the next release opportunity;
  • From a certain point in time, this could cause stale data to be read from the elastic_buffer of the lane affected by the block_sync, since there may not be enough good data captured by the elastic buffer before the block_sync deassertion;
  • The fix was to deassert the buffer_release_n signal as soon as possible after a block_sync deassertion and not wait for the next buffer release opportunity. This needed a clock domain crossing using a sync_event IP and additional timing constraints.

Tests performed so far:

  • Successful simulation run for all testbenches from libraries/jesd204/tb folder;
  • 6x consecutive, successful Vivado compilations for the ad_xband16_ebz project (no timing failures);
  • Successful HW run on Apollo;
  • Successful compilation of projects/adrv9009zu11eg/adrv2crr_fmcomms8 (jesd204b mode).

Tests still to do:

  • Run other simulations (component, system);
  • HW run on ad_xband16_ebz board;
  • HW run on a jesd204b mode board.

IMPORTANT! This PR is also relying on two additional PRs (#1871, #2096).
This PR also includes the commits from those 2 PRs, since they were used for timing closure.
Only the most recent 46 commits are specific to this PR (i.e. starting from "Add pipeline stage for DAC TPL sync" commit downwards) and should be reviewed here. The other commits will be reviewed in their own PRs.

There is a separate PR for the documentation of this project: #2033

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

Matthew.Blanton and others added 30 commits November 24, 2026 16:33
Signed-off-by: Bogdan Luncan <bogdan.luncan@analog.com>
Signed-off-by: Bogdan Luncan <bogdan.luncan@analog.com>
Signed-off-by: Bogdan Luncan <bogdan.luncan@analog.com>
Signed-off-by: Bogdan Luncan <bogdan.luncan@analog.com>
Signed-off-by: Bogdan Luncan <bogdan.luncan@analog.com>
Signed-off-by: bluncan <bogdan.luncan@analog.com>
Signed-off-by: bluncan <bogdan.luncan@analog.com>
Signed-off-by: Bogdan Luncan <bogdan.luncan@analog.com>
…inside deframer

Signed-off-by: Bogdan Luncan <bogdan.luncan@analog.com>
Signed-off-by: Bogdan Luncan <bogdan.luncan@analog.com>
Signed-off-by: Bogdan Luncan <bogdan.luncan@analog.com>
Signed-off-by: Bogdan Luncan <bogdan.luncan@analog.com>
Signed-off-by: Bogdan Luncan <bogdan.luncan@analog.com>
…ng to DATA state

Signed-off-by: Bogdan Luncan <bogdan.luncan@analog.com>
…tion

Signed-off-by: Bogdan Luncan <bogdan.luncan@analog.com>
Signed-off-by: Bogdan Luncan <bogdan.luncan@analog.com>
Signed-off-by: Bogdan Luncan <bogdan.luncan@analog.com>
The 66b/66b and 66b/64b gearboxes were using a wide
33:1 muxes to select between the outputs. This could
lead to issues at fast clocks.

Replaced the muxes with a barrel shiffter which should
have an easier time meeting timing at higher frequencies.

Also added a TB for validating the new gearboxes to the
original ones.

Signed-off-by: Bogdan Luncan <bogdan.luncan@analog.com>
Replaying the branch on the full license headers of main left a 2025
year that the branch had since replaced with 2026. Use the years of main
plus the ones the branch added.

Signed-off-by: Bogdan Luncan <bogdan.luncan@analog.com>
Move LFSR_WIDTH out of the parameter port list and split the
initialised declaration inside the automatic function. Both are legal
SystemVerilog but are not handled consistently by all tools.

Signed-off-by: Bogdan Luncan <bogdan.luncan@analog.com>
The FEC encoder and decoder shift data_in[0] first and expect eomb with
the last block of a multiblock. In the lanes, bit 63 is the first bit on
the wire (as for the scrambler and CRC-12), and the markers used arrive
with the first block of the next multiblock. TX and RX shared both
mistakes, so a loopback passed while the parity did not match JESD204C.

Feed both with bit-reversed words and mark the last block: on TX from
scrambled_data_d1, on RX from sh_count, which keeps the RX latency
unchanged. The TX parity now matches a polynomial reference with the
same framing as CRC-12.

Signed-off-by: Bogdan Luncan <bogdan.luncan@analog.com>
…in parity

Error trapping at shift ii corrects bits ii+1 and up, so a burst starting
at codeword bit 0 was never corrected. Check the loaded syndrome for it.

Bursts that start in the 26 parity bits need no data correction but were
reported as untrapped. Continue the syndrome for the parity positions
after the last data block so they are counted as trapped.

Signed-off-by: Bogdan Luncan <bogdan.luncan@analog.com>
…mode

FEC parity bits are unconstrained and regularly contain the 00001 pilot
pattern, so the unexpected EoMB event counted errors on a clean link.
The pilot is still checked at the multiblock boundary.

Signed-off-by: Bogdan Luncan <bogdan.luncan@analog.com>
…eline

The input pipeline dropped the extra register stage of tx_eof/tx_eomf,
so character replacement acted one beat early whenever the frame
structure is not the same in every beat. Restore it in front of the
pipeline so all lane inputs move together, and size the pipeline to the
signals it carries.

Signed-off-by: Bogdan Luncan <bogdan.luncan@analog.com>
…stride

lane_frame_align carries 3 bits per lane; indexing it with DPW_LOG2 per
lane reported the wrong bits for lanes above 0 with a 4 octet data path.

Signed-off-by: Bogdan Luncan <bogdan.luncan@analog.com>
…peline

The deframer data path has 3 * NUM_PIPELINE_STAGES register stages, so
adc_valid asserted that many cycles before the first real sample. Delay
link_valid by the same amount.

Signed-off-by: Bogdan Luncan <bogdan.luncan@analog.com>
…eats

The LMFC counter these values are compared with runs in the device
clock domain at the transport layer width, which can be 6 or 12 octets.
Scaling by the link data path width is only right when both widths
match; this was made raw on purpose for NP=12 support (454b900).
Linux and no-OS never program non-zero values.

Signed-off-by: Bogdan Luncan <bogdan.luncan@analog.com>
The value is used in device clock cycles since NP=12 support, but the
read back still placed it at bits 9:2, returning four times the written
value.

Signed-off-by: Bogdan Luncan <bogdan.luncan@analog.com>
IPCatuna and others added 11 commits November 24, 2026 16:33
…gister, to reduce the upstream logic. Split the logic controlling rx_data into 2 parts to reduce logic.

Signed-off-by: Ionut Catuna <ioanpaul.catuna@analog.com>
…h lane. For jesd204c, the logic using core_lanes_disable, is moved upstream from the buffer_ready_n register, to simplify logic to all_buffer_ready_n_x registers and to improve timing. Clean up jesd204_rx_lane.v I/Os and signals.

Signed-off-by: Ionut Catuna <ioanpaul.catuna@analog.com>
Signed-off-by: Ionut Catuna <ioanpaul.catuna@analog.com>
…issing signal in loopback_64b_tb after the FEC feature addition.

Signed-off-by: Ionut Catuna <ioanpaul.catuna@analog.com>
…edicated synch reset FF pin, to reduce logic. Move cfg_beats_per_multiframe_r inside each lane, so location constraints can apply to it. Reduce all_buffer_ready_n_d pipeline to two for all the lanes, to reduce upstream fanout.

Signed-off-by: Ionut Catuna <ioanpaul.catuna@analog.com>
…when there are fewer than 4 lanes in the design.

Signed-off-by: Ionut Catuna <ioanpaul.catuna@analog.com>
Signed-off-by: Ionut Catuna <ioanpaul.catuna@analog.com>
…same generate statement as the pipeline stages downstream from them.

Signed-off-by: Ionut Catuna <ioanpaul.catuna@analog.com>
…raints to fix timing issues.

Add placement constraints to improve timing at 26.4Gbps. Correct wrong bus numbering for hsci interfaces. Enable an ADC TPL deframer pipeline stage. Change cpack and upack prefix sum implementation to parallel. Add other pipeline stages in data_offload and TX jesd204. Reduce data_storage to 8KSamples per channel. Change implementation strategies. Replace ADI_HDL_DIR parameter with relative paths. Update license in the .xdc and .tcl headers. Code cleanup.

Signed-off-by: Ionut Catuna <ioanpaul.catuna@analog.com>
…1 segfault.

Signed-off-by: Ionut Catuna <ioanpaul.catuna@analog.com>
…an unexpected lane state error, to prevent stale data being sent from the affected lane(s) elastic buffer. Remove unused reset signal from the elastic buffer. Update testbench with a case that exposed the problem.

Signed-off-by: Ionut Catuna <ioanpaul.catuna@analog.com>
…e PR lint tool.

Signed-off-by: Ionut Catuna <ioanpaul.catuna@analog.com>
…nt tool.

Signed-off-by: Ionut Catuna <ioanpaul.catuna@analog.com>
…PR lint tool.

Signed-off-by: Ionut Catuna <ioanpaul.catuna@analog.com>
…t tool.

Signed-off-by: Ionut Catuna <ioanpaul.catuna@analog.com>
Signed-off-by: Ionut Catuna <ioanpaul.catuna@analog.com>
…atch the latest one.

Signed-off-by: Ionut Catuna <ioanpaul.catuna@analog.com>
… skew=1 value.

Signed-off-by: Ionut Catuna <ioanpaul.catuna@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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants