Forum Discussion
Altera_Forum
Honored Contributor
15 years agoDDR PIN placement error
Hi all,
I use a Cyclone IV E EP4CE40F23C8 with Quartus 11.0 I have this error message when i try to place ddr pins --- Quote Start --- Error: altmemphy pin placement was unsuccessful Error: The assigned location PIN U15 for DQS pin "mem_dqs[0]" is not a legal location Info: PIN C2 is a legal pin location Info: PIN C8 is a legal pin location Error: The assigned location PIN AA5 for DQ pin "mem_dq[0]" is not a legal location Info: There is no legal DQ location that supports 9 DQ pins Error: The assigned location PIN AB5 for DQ pin "mem_dq[1]" is not a legal location Info: There is no legal DQ location that supports 9 DQ pins Error: The assigned location PIN W6 for DQ pin "mem_dq[2]" is not a legal location .... --- Quote End --- you can find my sdc file (attachment) Thanks for your help :)18 Replies
- Altera_Forum
Honored Contributor
Hi Josy,
--- Quote Start --- In Cyclone IV the DQS is not used to capture the DDR2 data. This is stated several times in the Cyclone IV data-sheet. Instead ALT-MemPHY uses a phase-shifted clock from the PLL (that generates all memory clocks) to capture the data. --- Quote End --- Thanks for clarifying that. I am using the Stratix IV devices, and incorrectly assumed the interface was the same on the Cyclone IV devices. I'd had to use the Stratix IV pin assignment tables to try to figure out the assignments for DDR and QDR on the Stratix IV GX Development kit. --- Quote Start --- It looks to me that all (most) IO-pins are created equal (DDR-out an OE registers etc. in the IO-cell, DDR-in registers in the logic fabric) so how come the DQ/DQS/DQM-pins are more equal? That is the mystery I'd like to see revealed. --- Quote End --- An interesting mystery indeed. Write a DDR2 interface independently of the Altera IP? Cheers, Dave - Altera_Forum
Honored Contributor
thank you guys,
I will request a new board spin to hw team :s Another question : have you any recommendation for flash memory pinout? I use Spansion S29GL512N it dosen't work also :( (you can find the project archive to test flash here) - Altera_Forum
Honored Contributor
Hi Dave,
--- Quote Start --- DDR2/3 interfacing requires phase shifting the strobe clock to capture the data. --- Quote End --- In Cyclone IV the DQS is not used to capture the DDR2 data. This is stated several times in the Cyclone IV data-sheet. Instead ALT-MemPHY uses a phase-shifted clock from the PLL (that generates all memory clocks) to capture the data. It looks to me that all (most) IO-pins are created equal (DDR-out an OE registers etc. in the IO-cell, DDR-in registers in the logic fabric) so how come the DQ/DQS/DQM-pins are more equal? That is the mystery I'd like to see revealed. Regards, Josy - Altera_Forum
Honored Contributor
--- Quote Start --- Is there a document that reveals the DQ/DQS/DM mysteries --- Quote End --- The Cyclone IV pinout files are here: http://www.altera.com/literature/lit-dp.jsp?category=cyc%204&showspreadsheet=y They list the DQS etc. When comparing parts, I use the text version of these files and write Tcl scripts to parse the files. --- Quote Start --- why they are fixed to these 'exact' locations ? --- Quote End --- DDR2/3 interfacing requires phase shifting the strobe clock to capture the data. Hence a DQS is grouped with a block of DQ registers. Cheers, Dave - Altera_Forum
Honored Contributor
It also happened to me. During layout we inadvertently made a few wrong swappings ...
Now the Cyclone IV manual states that the DQS are not used for capture, as there is no DLL circuitry on-board. The ALT-MemPHY uses a dedicated capture clock (that one it phase-shifts to make up for PVT-variations). I didn't see any special silicon for the DQS/DQ/DM pins, so in theory any IO pin should be able to serve the purpose. Is there a document that reveals the DQ/DQS/DM mysteries, why they are fixed to these 'exact' locations ? - Altera_Forum
Honored Contributor
i think you're out of luck and will need a board spin
- Altera_Forum
Honored Contributor
Thank you,
but how i rework my pin, it depends on the hardware? i can not choose other pins - Altera_Forum
Honored Contributor
the error message is pretty helpful in this case. for example, pin U15 is not a legal placement for a DQS pin, or even a DQ pin. you should open the pin planner and take a look at the S pins to know where the legal DQS pins are, and Q for the legal DQ pin locations
you may need to rework your pin out to allow for compatible VCCIO on your DDR banks