Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[DesignTools.makeBlackBox()] Fix for #967 #970

Merged
merged 1 commit into from
Mar 28, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading