Forum Discussion

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

Newbie question on Nios II program memory

Hi all, In Alteras Nios tutorial, the system contains Flash memory, and SRAM. During boot up, does the system copy the Nios program from flash to sram, or does Nios fetch instructions from flash every time. Many thanks in advance, John B

2 Replies

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

    Just a quick response; without looking at the tutorial I am going to say it depends on what you have configured for memory. In Nios you can decide where to store the program memory by selecting the different types that you have generated. You also can spit in up even further to say certain stacks of memory can be stored in one and the rest in the other. It should be under the properties of the Nios file that you have generated but can't remember for sure. Maybe someone else can point you directly to where the settings are.

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

    Thanks, but by definition, the Nios program must be stored in non-volatile memory i.e the flash. Are you saying that I can set up Nios to either read each instruction from flash OR I could set it up to copy the program to SRAM.

    I guess what I am really asking is: Is the flash memory fast enough to read instructions out of?