Skip to content
New issue

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

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

Already on GitHub? # to your account

[image_generator] add *.mif memory initialization file format #949

Merged
merged 5 commits into from
Jul 12, 2024

Conversation

stnolting
Copy link
Owner

@stnolting stnolting commented Jul 11, 2024

The image generator / application makefile can already generate standard FPGA memory initialization files (*.mem and *.coe as well as a plain hex dump file). This PR also adds support for the *.mif format.

Requested in #947 (comment) by @alexazon.

Example

$ make mif

Generates neorv32_raw_exe.mif:

DEPTH = 273;
WIDTH = 32;
ADDRESS_RADIX = HEX;
DATA_RADIX = HEX;
CONTENT
BEGIN
00000000 : 000020b7;
00000001 : 80008093;
00000002 : 30009073;
...
0000010d : 40a00533;
0000010e : f61ff0ef;
0000010f : 40b00533;
00000110 : 00028067;
END;

@stnolting stnolting added enhancement New feature or request SW Software-related labels Jul 11, 2024
@stnolting stnolting self-assigned this Jul 11, 2024
@stnolting stnolting changed the title [image_generator] add *.mif memory initialization format [image_generator] add *.mif memory initialization file format Jul 11, 2024
@stnolting stnolting marked this pull request as ready for review July 11, 2024 18:49
@stnolting stnolting merged commit 4ae5948 into main Jul 12, 2024
10 checks passed
@stnolting stnolting deleted the mif_memory_image branch July 12, 2024 09:12
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
enhancement New feature or request SW Software-related
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant