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

ZedBoard at Embedded World. Its on-board DDR3 is connected to the Zynq processing system. The programmable-logic examples here use a separate 7 series MIG design.
ZedBoard at Embedded World. Its on-board DDR3 is connected to the Zynq processing system. The programmable-logic examples here use a separate 7 series MIG design. Ordercrazy (Wikimedia Commons), CC0. Site-sized copy.

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

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
Change or test / Scope / Next action.

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 timeDQ2 ↔ 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
  1. DQ2 ↔ DQ5 · Same lower byte · Validate revised map
  2. DQ2 ↔ DQ10 only · Different byte strobes · Rework lane mapping
  3. Lower-byte write · Upper byte preserved · Repeat in reverse

Use the board bring-up checklist · Review the BGA package escape

Budget the required I/O pins.

AMD UG586 v4.2, Pin Swapping.

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

Related evidence and next tasks

Continue the task with the relevant source scope. These reading paths do not establish interchangeability or current supply.

Source addresses and citation trail

Full source addresses are retained below. Read each citation with its document revision, page, table and applicability conditions above.

  1. https://docs.amd.com/r/en-US/ug586_7Series_MIS/Pin-Swapping