fpgatools icon indicating copy to clipboard operation
fpgatools copied to clipboard

added function to convert images to .mif file format

Open grnarayanan opened this issue 1 year ago • 1 comments

Solves Issue #5 and adds support for producing output files in .mif format in addition.

Added convert_to_mif() function that takes in input image data and creates a string to be written to output file formatted for a mif file, specifying fields such as width, depth, radix, and content. Documented with Napoleon style doc string.

Added test case in test.py to verify functionality.

grnarayanan avatar May 04 '23 21:05 grnarayanan

Hello,

Thank you for adding MIF support to img2fmem. Could you update img2fmem/README.md to include basic info on MIF support and how to run your test?

TIA, Will

WillGreen avatar May 16 '23 09:05 WillGreen