replace assert with non-fatal check for mode conflict #2433
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.
Replace assert with non-fatal check for mode conflict. Conflict returns BLK_FAILED_FEASIBLE.
Description
Changed an assertion to an if statement.
Related Issue
Motivation and Context
The legalizer encounters mode conflicts, since the external placer does not model modes and may not differentiate between .names and lcell luts. The legalizer needs to be able to continue when it encounters a mode mismatch.
How Has This Been Tested?
CI tests pass (except known spurious Clang failures)
Code with this change has successfully run place and route on all Titan23s.
Types of changes
Checklist: