cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Highlighted
Visitor
Visitor
3,584 Views
Registered: ‎01-11-2011

Using PROM to configure FPGA while using DDR

hi all,

 

I'm designing with Virtex 5 XC5VLX50T  ML505 and DDR

I'm using EDK 10.1 and the code that i wrote in it is too large to fit the FPGA

text               data     bss              dec               hex   
110440       1484    4640992    4752916     488614

 

The DDR has a starting address 0x90000000.

What i want to do is to use PROM so that the FPGA is configured at power-on, also because of the size of the .elf file i want the same PROM to load the .elf file into the DDR at power-on.

 

Is there any post or tutorial available to use?

 

best regards,

kblommen

0 Kudos
3 Replies
Highlighted
Teacher
Teacher
3,572 Views
Registered: ‎09-09-2010

Is the .ELF for a MicroBlaze running in the FPGA?
You don't load an .ELF into the FPGA, you load a .BIT file which has been modified/updated with the relevant processor data. If the linker script map some areas of memory onto the DDR external-to-FPGA memory, then that will be used when the software boots via the MicroBlaze.

Others might know whether the DDR-mapped memory can be automagically initialised before 'main' starts.

------------------------------------------
"If it don't work in simulation, it won't work on the board."
0 Kudos
Highlighted
Visitor
Visitor
3,555 Views
Registered: ‎01-11-2011

I'm loading the .BIT file into the FPGA without 'Mark to initialize the BRAMs'.

 

What i do then is to use 'Launch XMD' to download the .ELF and start my application.

This isn't what i wanted to do every time the power of the board is cut off.

0 Kudos
Highlighted
Explorer
Explorer
3,112 Views
Registered: ‎02-17-2013

When I execute this command I have a leak of memory. 

/home/mavouzi/Xilinx/14.4/ISE_DS/ISE/bin/lin64/data2mem -bm system.bmm -bt system.bit -bd boot_esssai.elf output.bit

 

I place an examle of error that I can see in the console this is the latest. Do you have an idea why I have a leak of memory. 

 

INTERNAL_ERROR:Data2MEM:45 - Memory allocation leak of 8 bytes at 0x019B15F8 for 'CharPtrArrayType' data.
Total memory in use at allocation was 7605 bytes.
Source file "StringUtils.c", line number 901.

Memory contents:

019B15F8: 00 00 00 00 00 00 00 00

 

I have spartan 6 and I want programme the flash with a file who contains the  .elf and the .bit. I think  that with the impact 14.4 I load the file output.bit in the cable SPI. Unfortunately the file output.bit did'nt generate. 

Best Regards.

0 Kudos