Expose dfflegalize -mince, -minsrst in synth scripts #3595
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.
dfflegalize
allows setting a threshold when it uses cells with CE ans SRST, but this is only exposed bysynth_ice40
. While troubleshooting YosysHQ/nextpnr#1062 I found that a combination of-mince
and-minsrst
would alleviate the placement pressure, allowing PnR to complete. This diff is a start to expose these knobs in every synth script.Some test results for an iCE40 LP1K design, with no minimums (or
-dff-min-ce 0 -dff-min-srst 0
):With
-dff-min-ce 4 -dff-min-srst 4
:Similar for a design targeting an ECP5-45F device, no minimums:
And with
-dff-min-ce 4 -dff-min-rsrst 8
:I am more than happy to add this to the remaining synth scripts where applicable, but would like some review of the UI prior to doing so.