lattice: Fix mapping onto DP8KC for data width 1 or 2 #4087
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.
This appears to be the right wiring of
DP8KC
per the MachXO3 simulation model I have at hand.Some points:
I don't know if this applies to all
DP8KC
primitives across the Lattice families.Reading into the simulation model, it seems one cannot map a memory with write port of width 18 and read port of width 2 onto
DP8KC
. This is becauseDIB1
, which would be used for the 10th data bit input, gets ignored. If this is true, or even if it's just a bug of the simulation model, we may want to disable this configuration in libmap inference of$__PDPW8KC_
. UPDATE: done in the second commit