diff --git a/src/com/xilinx/rapidwright/edif/EDIFNetlist.java b/src/com/xilinx/rapidwright/edif/EDIFNetlist.java index e43bcacd3..3fadfbaea 100644 --- a/src/com/xilinx/rapidwright/edif/EDIFNetlist.java +++ b/src/com/xilinx/rapidwright/edif/EDIFNetlist.java @@ -761,7 +761,7 @@ public List getNetAliases(String netName){ for(EDIFPortInst p : an.getNet().getPortInsts()){ EDIFHierPortInst absPortInst = new EDIFHierPortInst(an.getHierarchicalInstName(), p); // Checks if cell is primitive or black box - boolean isCellPin = p.getCellInst() != null && p.getCellInst().getCellType().getCellInsts().size() == 0; + boolean isCellPin = p.getCellInst() != null && p.getCellInst().getCellType().isPrimitive(); if(isCellPin){ leafCellPins.add(absPortInst); }