Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
15 years ago

Testing DDR-2 with NIOS II

Hello everyone,

Is there any C code to test only the DDR-2 SDRAM with NIOS II ? if not, which macros should I use ?

I want to write/read on a specific address on the memory.

Thank you in advance

2 Replies

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Hi mealous.

    One of the sample programs with the nios II is a memory tester. It's more generic to test both flash and system memory. What I do in our board bringup designs is have a TCM large enough to hold the compile version of this, then run it from the TCM to test the system ram.

    The address ranges have to be typed in, but the program can be easily modified to test specific locations, and loop on errors to provide enough time to sea the issue with an oscope to trouble shoot board related issues around the memory.

    Pete
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Also don't rely on Nios II alone to test your memory. It will do simple tests like looking for short or open traces, slow read and writes, etc... Once that all passes the next step is to test the memory with a DMA which will perform accesses more efficiently and therefore stress the memory more.