Skip to content

Add DDR3 PHY for Lattice Nexus FPGAs - #396

Merged
enjoy-digital merged 2 commits into
enjoy-digital:masterfrom
gatecat:nexus
Jul 22, 2026
Merged

Add DDR3 PHY for Lattice Nexus FPGAs#396
enjoy-digital merged 2 commits into
enjoy-digital:masterfrom
gatecat:nexus

Conversation

@gatecat

@gatecat gatecat commented Jul 21, 2026

Copy link
Copy Markdown
Contributor

Tested with Radiant 2025.2 on the Certus-NX Versa board (litex-hub/litex-boards#757), nextpnr support hopefully coming very soon too.

This is mostly cribbed from the ECP5 PHY with changes to latencies where necessary. The part I'm least sure about is the half-system-clock (i.e. 1 memory clock) latency difference for writes. Currently this is dealt with by adding one to CWL but I'm not sure if a write bitslip on DQ/DQS (like 7-series) is overall a more robust solution to this.

In the future this could also be extended to support 8:1 mode as the Nexus devices have

Signed-off-by: gatecat <gatecat@ds0.me>
@gatecat

gatecat commented Jul 21, 2026

Copy link
Copy Markdown
Contributor Author

... and with YosysHQ/nextpnr@c2cbdc7 the nextpnr support should be in place (edge clock routing might not be 100% reliable but I'll fix that soon too)

Align related declarations and the DQSBUF/DELAYB primitive argument tables with the LiteX coding style.

This is a formatting-only change with no functional impact.
@enjoy-digital
enjoy-digital merged commit c9d753e into enjoy-digital:master Jul 22, 2026
@enjoy-digital

Copy link
Copy Markdown
Owner

Awesome, thanks @gatecat! This this is a first good step that we can merge (I just applied cosmetic alignments to it). I'll try to suggest a follow up PR for the cleanup/latency improvement to have a proper solution.

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.

2 participants