Tutorials
Which DDR3 DQ Swaps Can a 7 Series MIG Interface Accept?
Published · Updated
A layout request to exchange DQ2 and DQ5 takes one line in a ticket. The review needs three identities for each signal: its physical SDRAM byte, its FPGA byte group and its final package ball.
Keep the strobe and mask beside the swapped data

Within a permitted MIG byte group, data pins can be reassigned subject to the pin rules. DQS still belongs on an eligible DQS pair. Treat a whole-group move as a separate change, with its strobe and mask present.
For a proposed exchange across groups, trace both physical byte lanes end to end. Quietly moving a single data bit across a strobe boundary can make a seemingly balanced pin map unsuitable for the PHY.
Check the XC7K325T-1FBG676C package · Review differential pin polarity
Try a masked write after regenerating the design

Take a 16-bit example. Exchanging DQ2 with DQ5 within the lower byte is a candidate for validation. Exchanging only DQ2 with DQ10 crosses the lower and upper strobe domains. Return that request for a new lane plan.
After an accepted move, regenerate the core and exercise the two byte enables independently. Write the lower byte while preserving the upper, read the complete word, then reverse the roles. A full-word fill alone would miss some mask-boundary mistakes.
Will a successful walking-bit test identify every legal or illegal pin swap?
No. A consistent data-bit permutation can be invisible to readback. Validate the physical wiring against the generated pin map and add byte-mask tests to check the grouping.
Read the example one step at a time

- DQ2 ↔ DQ5 · Same lower byte · Validate revised map
- DQ2 ↔ DQ10 only · Different byte strobes · Rework lane mapping
- Lower-byte write · Upper byte preserved · Repeat in reverse
Use the board bring-up checklist · Review the BGA package escape
Photograph credit and licence
Ordercrazy (Wikimedia Commons), CC0. Site-sized copy.
Original photograph https://commons.wikimedia.org/wiki/File:Embedded_World_2014_Xilinx_ZedBoard_Developer_Board.jpg
Licence http://creativecommons.org/publicdomain/zero/1.0/deed.en
Back to Tutorials