/image-2-coe

Python 2.7 script to convert an image to the Xilinx .coe format

Primary LanguagePython

image-2-coe

Python 2.7 script to convert an image to the Xilinx .coe format

To Use

Copy the image2coe.py file to the directory where your image resides. Open a terminal and change to the same directory. Run the image2coe.py file by typing: python image2coe.py You will be prompted for the name of your image. Enter it and hit the return key.

When you make your BRAM in Xilinx select 'Single Port ROM' and enter '8' as the Read Width and the number that is returned in the terminal as Total addresses as the Read Depth.