Skip to content

akaeba/mifgen

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Releases

No releases published

Packages

No packages published

Languages