Forum Discussion

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

Where is SDRAM initilization done?

I am trying to build a NIOS system with SDRAM. On an ARM SoC, usually software do the SDRAM initilization. But on NIOS system, I do not find who takes this job. Can anyone help to explain? Thanks.

4 Replies

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

    This is the bootloader's responsability. If you use an EPCS controller, the bootloader is included. Just set the CPU to boot on the EPCS controller. If you use a parallel flash, set the CPU to boot on it and the Nios programmer will flash the bootloader for you.

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

    I found the following sentences in “Embedded Peripherals IP User Guide”. It seems that the SDRAM controller do the SDRAM chip initialization. It seems that there is no need for software to do initialization. This is different from my experience on embedded software development. So I would like to have confirmation from experts. Thanks.

    ================================================

    The SDRAM controller behaves like simple memory when accessed via the Avalon-MM interface. There are no software-configurable settings and no memory-mapped registers. No software driver routines are required for a processor to access the SDRAM controller.
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    --- Quote Start ---

    It seems that there is no need for software to do initialization.

    --- Quote End ---

    That's generally true for the Altera SDRAM controllers I know. On the other hand, the controller interface doesn't offer any means to send configuration parameters to the RAM, this should also answer your question.
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    --- Quote Start ---

    That's generally true for the Altera SDRAM controllers I know. On the other hand, the controller interface doesn't offer any means to send configuration parameters to the RAM, this should also answer your question.

    --- Quote End ---

    Got it. Thanks.