Skip to content

Latest commit

 

History

History
48 lines (31 loc) · 2.44 KB

README.md

File metadata and controls

48 lines (31 loc) · 2.44 KB

Python 3.x

Converter to Altera MIF file format.

Releases

Version Date Source Change log
latest latest.zip

Features

  • converts:
    • binary to mif
  • selectable data width in byte granularity
  • selectable size

Command line interface

Options

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

Run

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

References