10-18-2011 05:56 PM
I am using Xilinx ISE 10.1 synthesizer.
-I am able to initialize my BRAM with a .coe file and access it. Also I can update it with new .mem file using data2mem tool and update my bit file. Here I have configured it as ROM.
-My problem is, I don't know how to store the BRAM contents to a file. I am using Single port block memory from the core generator. I am configuring it as RAM. I want to write data to it and access it later.
-I didn't find any relevant post stating this. May be its only me who didnt find a way to save the contents to a file.
For example, in Altera in-system memory content editor, there is an option to export the data to a file. Is there any such way in Xilinx or some way to do it with data2mem tool.
-I can send the memory content to PC using serial port but that's not my concern right now. I am really looking for some way to store the content to a file (probably a .mem file) and use it in MATLAB.
So, please can anyone explain it to me or point a document or some link.
I have studied the relevant documentation but it didn't strike my mind.
Any kind of suggestion would be highly appreciated. Also, tell me if I am thinking in a wrong way.
10-18-2011 07:24 PM
This is not the right place to ask this question. I'll move your message to "System Logic" board. Hope you'll get the answer there.
10-19-2011 09:19 AM
10-19-2011 10:25 AM
Thank you for the reply....
-I am synthesizing my code on fpga boards equipped with Virtex II FPGAs, bg575 package.
-I am storing the input data for my filter chain on BRAM. I tested it with few data and it worked and I can also update it.
-I wish to write my output data again to the same BRAM or a different one. At this point, I didnt find explicity the way to store the data written to the BRAM to a file (and i suppose it should be .mem file)
- I have seen in the data2mem documentation that I can produce a .mem file as output by giving the .elf file and .bmm file as input. But I dont see any .elf file generated because I am only using the .bit file to program the FPGA. I suppose that .elf file is produced when we are using some processor core and writing some firmware to activate it.
-I have seen the following lines in the data2mem documentation and I didnot fully understand it
An OUTPUT keyword can be used for outputting memory device MEM files. This takes the
top/ram_cntlr/ram0 [7:0] OUTPUT = ram0.mem;
- Is this going to help me write the BRAM contents to mem file.?
- I am attaching the example .bmm file, here I can understand that the placement locations are given but I didnt understand the way, the output keyword is used and the how this is going to give me the mem file as output.
10-20-2011 03:09 AM
10-20-2011 12:24 PM