From 91304928818f6e5896791da25d22e930c0388043 Mon Sep 17 00:00:00 2001 From: Matthias Koefferlein Date: Fri, 20 Jan 2023 23:43:19 +0100 Subject: [PATCH] [CONSIDER MERGING] use twice the interaction range inside generic DRC's 'sized' node --- src/db/db/gsiDeclDbCompoundOperation.cc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/db/db/gsiDeclDbCompoundOperation.cc b/src/db/db/gsiDeclDbCompoundOperation.cc index 728a0f98e..1abfd4515 100644 --- a/src/db/db/gsiDeclDbCompoundOperation.cc +++ b/src/db/db/gsiDeclDbCompoundOperation.cc @@ -280,7 +280,10 @@ static db::CompoundRegionOperationNode *new_polygon_breaker (db::CompoundRegionO static db::CompoundRegionOperationNode *new_sized (db::CompoundRegionOperationNode *input, db::Coord dx, db::Coord dy, unsigned int mode) { check_non_null (input, "input"); - return new db::CompoundRegionProcessingOperationNode (new db::PolygonSizer (dx, dy, mode), input, true /*processor is owned*/, std::max (db::Coord (0), std::max (dx, dy)) /*dist adder*/); + // NOTE: the distance needs to be twice as we may want to see interactions between the post-size features and those interact when + // within twice the size range. + db::Coord dist = 2 * std::max (db::Coord (0), std::max (dx, dy)); + return new db::CompoundRegionProcessingOperationNode (new db::PolygonSizer (dx, dy, mode), input, true /*processor is owned*/, dist); } static db::CompoundRegionOperationNode *new_merged (db::CompoundRegionOperationNode *input, bool min_coherence, unsigned int min_wc)