How to load ROM from a file? #787
-
How can I load a ROM from a file? What I've tried:I can add a ROM to a circuit, and use the EDIT dialog to set its data. This data is persisted with the circuit just fine: If I close Digital and then reload the circuit, the ROM has the contents I set in the EDIT dialog. The ROM dialog has "SAVE" and "LOAD" buttons, but they are inactive/grayed-out: Versions
Why I think this must be possibleIssue #521 references "loading a raw binary file into a ROM," so I think this must be possible. I just can't figure out how. The use caseThe use case is that a ROM will hold a CPU's microprogram. The microprogram will be generated from an external microprogram assembler that I will write. I will need to get the assembled microprogram from the assembler into the ROM somehow. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
A way to do itI don't know if this is the way to do it, but it's a way. I edited the circuit's XML file and added a load path entry to the ROM:
After I reloaded the circuit, I was able to use the "SAVE" button to write out a .hex file, which created a file like this:
After editing that file, the RELOAD button worked to load the edited contents into the ROM. |
Beta Was this translation helpful? Give feedback.
-
click edit, then you can save and load from the file header. |
Beta Was this translation helpful? Give feedback.
click edit, then you can save and load from the file header.