Results 1 to 4 of 4

Thread: How to create memory initialization file from ELF for NIOS simulation

  1. #1
    Join Date
    Aug 2007
    Posts
    149
    Rep Power
    1

    Question How to create memory initialization file from ELF for NIOS simulation

    Hi there,

    In my SOPC system, the NIOS accesses an external SRAM through a customized SRAM controller. Before this point I was using the onchip ram to run C code in both hardware and functional simulation (which is supported by default by the simulation flow). I would like to run the C code from the external SRAM, and would like to be able to simulate that.

    To simulate running C code from SRAM, I will need to initializa the SRAM with a HEX file converted from ELF file. Before this point the NIOS EDS generates the HEX file automatically based on the ELF, the data width and address width of the onchip RAM. Is it possible to generate the HEX file for the external SRAM if we supply the data and address width of it?

    Thanks,
    Hua

  2. #2
    Join Date
    Mar 2010
    Posts
    22
    Rep Power
    1

    Default Re: How to create memory initialization file from ELF for NIOS simulation

    Hi HUA, you using SBT GUI or using the nios2-* command line.

  3. #3
    Join Date
    Aug 2007
    Posts
    149
    Rep Power
    1

    Default Re: How to create memory initialization file from ELF for NIOS simulation

    Hi kee020041, I am using SBT GUI.

  4. #4
    Join Date
    Jun 2007
    Location
    Paris (France)
    Posts
    80
    Rep Power
    1

    Default Re: How to create memory initialization file from ELF for NIOS simulation

    I had the same problem, and don't understand why Altera do not provide a SRAM model whith a relevant .hex initialization file, as it does when the SOPC includes the external IDT SRAM.
    The only "simple" way I found was to use in the SOPC two SRAM, internal and external and switch the settings of the BSP to the internal for the simulation ...

Similar Threads

  1. memory initialization file
    By arunkupradhan in forum Quartus II and EDA Tools Discussion
    Replies: 11
    Last Post: April 29th, 2010, 08:16 PM
  2. memory initialization file
    By arunkupradhan in forum Quartus II and EDA Tools Discussion
    Replies: 1
    Last Post: April 4th, 2010, 09:36 AM
  3. Memory Initialization File for multiple RAMs
    By floppes in forum Quartus II and EDA Tools Discussion
    Replies: 5
    Last Post: February 8th, 2010, 03:17 AM
  4. SDRAM/SRAM memory Initialization for Modelsim simulation
    By kolopipo in forum General Discussion Forum
    Replies: 0
    Last Post: November 6th, 2009, 01:40 AM
  5. Memory Initialization File
    By quan1328 in forum General Discussion Forum
    Replies: 1
    Last Post: March 6th, 2007, 07:43 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •