mif
mif is a Python module to read and write Memory Initialization
Files, used by Quartus to interact with memory blocks on Intel
FPGAs. They are similar to Intel HEX files, except they support
arbitrary memory widths as first-class citizens.
Installation
Install via pip:
pip install mif
Basic Use
Use with load / loads and dump / dumps, similar to the json module:
with open('memory.mif') as f:
mem = mif.load(f)
print(mif.dumps(mem))
The resulting mem is a numpy array of unpacked bits, where the first
dimension is the address in memory, and the second are the bits in
little-endian order. For example, to access the least significant bit
at address 0x12:
mem[0x12][0]
For more detailed information, please read the documentation.
Metadata
Release files for mif 0.7
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| mif-0.7.tar.gz | 9.9 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| mif-0.7-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 16.6 kB
Release files / mif-0.7.tar.gz
| Download URL | mif-0.7.tar.gz |
|---|---|
| Size | 9.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0713be13c28cafe7105a68cad91be0fc55a5215cfc4952af6f6a89ee48532cc6
|
|
BLAKE2b-256 checksum How to use checksums |
3ecd7c432c0da3e0466aedb9fd0718e3dc289538de6683853de17c2e7bc416fd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.5
|
Release files / mif-0.7-py3-none-any.whl
| Download URL | mif-0.7-py3-none-any.whl |
|---|---|
| Size | 6.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f7aff9da4abbbd76092c967b4a774fa9f1b09b5329f88eebd94a8957fc009661
|
|
BLAKE2b-256 checksum How to use checksums |
58b9ce37e42b1da29bb5cfc1b38a0abe400834985ba0edcaf3be891a2420f2d5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.5
|
Security for mif 0.7
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.