Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Some MachXO2 boards (e.g. the STEP-MXO2) have an on-board microcontroller which talks to the FPGA JTAG on the user's behalf. Sometimes, these microcontrollers only accepts Lattice-generated JEDEC files, not
.bitor SVD files. So this PR implements JEDEC file generation. I'm marking as draft right now, b/c while the core works, some things are incomplete. However, I would appreciate feedback now that I have something working. I'm also happy to split this into multiple issues/PRs:--compressoption.USERCODEbits generation.USERCODE, andIDCODE(? I didn't know you could do that). SVF may work just fine for that purpose. The MachXO families really do need JED support, however, thanks to internal flash programming.NOTEfields to be present in the JEDEC file. I added a--jed-notefield as a limited workaround for STEP-MXO2.DEVICE NAME: LCMXO2-4000HC-6CSBGA132. Presently, the textual format only includes part and package number as a.comment, rather than a structured field I can rely on not changing. Are there any objections to adding a package field to the textual format?NOTEfields to find the User Flash Memory, so this also ties into Diamond compatibility.UFM_INIT_FILE_NAMEparameterof anEFBprimitive instantiation. My proposal is to add a.ufm_init/.ufm_start_page. field to the textual format, analogous to.ebr_initfor Lattice compat withUFM_INIT_FILE_NAME, with maybe a command-line override toecppackto change out the UFM image at packing time.