Skip to content

Commit

Permalink
[DesignTools.makeBlackBox()] Fix for #967
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 Mar 12, 2024
1 parent 60a5714 commit 8fedcf3
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/com/xilinx/rapidwright/design/DesignTools.java
Original file line number Diff line number Diff line change
Expand Up @@ -4014,6 +4014,10 @@ public static void prepareShellBlackBoxForRouting(Design design) {
if (net != null) {
SitePinInst spi = si.getSitePinInst(sitePinName);
if (spi == null || (spi != null && !spi.getNet().equals(net))) {
// Check for rare instance of FF driven by GND post inside SLICE
if (letter == 'A' && net.isGNDNet() && isUsingSLICEGND(input, si)) {
continue;
}
BELPin lutInput = si.getBEL(letter + "6LUT").getPin("A6");
EDIFHierPortInst ffInput = c.getEDIFHierCellInst().getPortInst("D");
Cell lut1 = ECOTools.createAndPlaceInlineCellOnInputPin(design, ffInput,
Expand Down Expand Up @@ -4077,6 +4081,12 @@ public static void prepareShellBlackBoxForRouting(Design design) {
addProhibitConstraint(design, bels);
}

private static boolean isUsingSLICEGND(BELPin input, SiteInst si) {
BEL bel = input != null ? input.getSourcePin().getBEL() : null;
SitePIP usedSitePIP = bel == null ? null : si.getUsedSitePIP(bel.getName());
return usedSitePIP != null && usedSitePIP.getInputPinName().equals("F7F8");
}

private static boolean isFFQOutputBlocked(Site site, BEL bel, Set<Node> used) {
String sitePinName = bel.getPin("Q").getConnectedSitePinName();
Node n = site.getConnectedNode(sitePinName);
Expand Down

0 comments on commit 8fedcf3

Please sign in to comment.