I would like to initiate some BRAMs (I'm using Xilinx FPGAs and ISE) with data from an image. It's bound to be through coe files but how? I could write a Java applet to manually construct the coe files (have done so before with C++) but I'm looking for a quicker solution.
Thanks
Various possibilities:
$readmem
functions if you are using VerilogNone of which directly takes your source image in I'm afraid.
If you can get your image into PGM format, and are using VHDL, you might be able to use functions from here:
https://github.com/martinjthompson/image_processing_examples
A full description of the code can be found here:
http://www.parallelpoints.com/node/65/ and http://www.parallelpoints.com/node/66/
I've never tried to use them to initialise memory in synthesisable code though...