Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for arbitrary word length and word address #32

Open
benfre opened this issue Jun 28, 2019 · 1 comment
Open

Support for arbitrary word length and word address #32

benfre opened this issue Jun 28, 2019 · 1 comment

Comments

@benfre
Copy link

benfre commented Jun 28, 2019

When I use this package to generate memory initializing file for alera_mf MEM 1 port with 16 bit word length, the saved hex file is working. I create and use mif file format. It is working. When I convert mif file to hex file using Quartus II (13.1), the different are: 1. byte_count on each line is 2 and 2. the address are word address not byte address. Although I can add byte_count=2 when writing to hex file, the address there is no way to change the addresses.

ih.write_hex_file(f_hex, byte_count=2)

Use intelhex package:

:0200000080007E
:02000200800676
:02000400800C6E

Convert using Quartus II

:0200000080007E
:02000100800677
:02000200800C70

To solve the problem, I think creating a new class support any word length, and option for word address when writing hex file.

@bialix
Copy link
Member

bialix commented Sep 27, 2019

Sorry for not working on your issue. I'm looking for a new maintainer for Python IntelHex project. I hope someone will help.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants