Repository navigation
odb, rsz: Fix hierarchical netlist editing issues of dbInsertBuffer::insertBufferBeforeLoads() - #9443
Conversation
Signed-off-by: Jaehyun Kim <jhkim@precisioninno.com>
Signed-off-by: Jaehyun Kim <jhkim@precisioninno.com>
Signed-off-by: Jaehyun Kim <jhkim@precisioninno.com>
Signed-off-by: Jaehyun Kim <jhkim@precisioninno.com>
Signed-off-by: Jaehyun Kim <jhkim@precisioninno.com>
Signed-off-by: Jaehyun Kim <jhkim@precisioninno.com>
Signed-off-by: Jaehyun Kim <jhkim@precisioninno.com>
Signed-off-by: Jaehyun Kim <jhkim@precisioninno.com>
Signed-off-by: Jaehyun Kim <jhkim@precisioninno.com>
Signed-off-by: Jaehyun Kim <jhkim@precisioninno.com>
…ate/OpenROAD into secure-fix-repair-tie-name-collision
Signed-off-by: Jaehyun Kim <jhkim@precisioninno.com>
Signed-off-by: Jaehyun Kim <jhkim@precisioninno.com>
Signed-off-by: Jaehyun Kim <jhkim@precisioninno.com>
There was a problem hiding this comment.
Code Review
This pull request introduces several important fixes and enhancements to hierarchical netlist editing, particularly within dbInsertBuffer::insertBufferBeforeLoads() and repair_tie_fanout. The changes address name collisions between flat and hierarchical nets, incomplete dbModNet connections, and crashes when handling unconnected load pins. The logic for creating unique net names has been made more robust by considering both flat and hierarchical scopes. The buffer insertion logic is improved to prevent creating combinational loops by correctly identifying and marking nets in the fan-in cone as non-reusable. Additionally, the code is made more resilient by replacing assertions with proper error handling and logging. The inclusion of new, targeted test cases for these complex hierarchical scenarios is a great addition and significantly improves confidence in the fixes. Overall, this is a solid contribution that enhances the tool's stability and correctness when dealing with hierarchical designs.
|
clang-tidy review says "All clean, LGTM! 👍" |
| const dbNameUniquifyType& uniquify | ||
| = dbNameUniquifyType::ALWAYS); | ||
| = dbNameUniquifyType::ALWAYS, | ||
| dbNet* corresponding_flat_net = nullptr); |
There was a problem hiding this comment.
I seem to be missing where this new argument is used.
There was a problem hiding this comment.
dbBlock::makeNewModNetName() uses it.
The argument is to distinguish the following cases.
- Typically, a new modnet name should be the same as its corresponding flat net name.
- But the new modnet name must not conflict with any other flat net name that is not related to the modnet.
…ate/OpenROAD into secure-fix-repair-tie-name-collision
|
clang-tidy review says "All clean, LGTM! 👍" |
|
This PR has QoR impact. |
Fix1 - Resolved name collision b/w a flat net and a hier net by
repair_tie_fanoutFixes #9437
Cause
repair_tie_fanoutis called twice (one for TIE_HI and another for TIE_LO).netas the new flat or hier net name.repair_tie_fanout for TIE_LOused anetname for an internal flat net, the followingrepair_tie_fanout for TIE_HIcan usenetname for a different hier net --> name collision b/w different flat and hier nets.Solution
Name collision checker is enhanced to avoid the name collision b/w flat and hier nets.
Fix2 - Resolved incomplete
dbModNetconnection of the new buffer input pin byinsertBufferBeforeLoads()Fixes #9408
Cause
dbInsertBuffer::insertBufferBeforeLoads()produced an incompletedbModNetconnection in corner cases.Solution
dbInsertBuffer::insertBufferBeforeLoads(),dbModNetconnection logic is enhanced to perform a completedbModNetconnection.Fix3 - Added fallback logic when a load pin is not connected to a net
Fixes #9409
QoR impact
ORFS dashboard based on OR (4f93607, Jan 31): Marginal QoR impact.