Skip to content

Commit

Permalink
Fix no overlap behavior
Browse files Browse the repository at this point in the history
Signed-off-by: Chris Lavin <chris.lavin@amd.com>
  • Loading branch information
clavin-xlnx committed Nov 19, 2024
1 parent 9cd25a6 commit 0a4103d
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/com/xilinx/rapidwright/design/ModuleInst.java
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,6 @@
import com.xilinx.rapidwright.device.Site;
import com.xilinx.rapidwright.device.SiteTypeEnum;
import com.xilinx.rapidwright.device.Tile;
import com.xilinx.rapidwright.edif.EDIFNet;
import com.xilinx.rapidwright.edif.EDIFPortInst;
import com.xilinx.rapidwright.edif.EDIFTools;
import com.xilinx.rapidwright.util.MessageGenerator;
import com.xilinx.rapidwright.util.Utils;

Expand Down Expand Up @@ -358,6 +355,11 @@ public boolean place(Site newAnchorSite, boolean skipIncompatible, boolean allow
}
}

if (existingSiteInst != null && !allowOverlap) {
unplace();
return false;
}

if (newSite == null || existingSiteInst != null) {
//MessageGenerator.briefError("ERROR: No matching site found." +
// " (Template Site:" + templateSite.getName() +
Expand Down

0 comments on commit 0a4103d

Please sign in to comment.