Converter to Altera MIF file format.
Version | Date | Source | Change log |
---|---|---|---|
latest | latest.zip |
- converts:
- binary to mif
- selectable data width in byte granularity
- selectable size
Option | Description | Remarks |
---|---|---|
infile | input file | Supported: *.bin |
-o, [--outfile=infile.mif] | output file (MIF converted) | if -o not set, output is placed in input folder |
-s, [--size=1024] | MIF size in byte | if input has less data, padding with 0xff |
-w, [--width=1] | word width in bytes | |
-e, [--endianness=big] | byte organization, low/high byte first | |
--nocompact | disable compressing words with same value | f.e. [0..5] : ab |
The Command below converts an binary file to MIF with 1K Byte length and a word with of 32Bit (4Byte):
python3 mif.py --size=1024 --width=4 ./myFile.bin