for(PrimitiveSite site : currentTile.getPrimitiveSites()){
if(site.getType().equals(PrimitiveType.SLICEL) || site.getType().equals(PrimitiveType.SLICEM)){
if(!router.design.getUsedPrimitiveSites().contains(site)){
Instance returnMe = new Instance();
HashMap<String, Attribute> attributeMap = new HashMap<String, Attribute>();
attributeMap.put("_NO_USER_LOGIC", new Attribute("_NO_USER_LOGIC","",""));
attributeMap.put(srcTypeString, new Attribute(srcTypeString,"",slicePin));
returnMe.place(site);
returnMe.setType(PrimitiveType.SLICEL);
returnMe.setAttributes(attributeMap);
returnMe.setName("XDL_DUMMY_" + returnMe.getTile() + "_" + site.getName());
currStaticSourcePin = null;
return returnMe;
}
else if(isVirtex5){
// Check all the LUTs in this slice
Instance i = router.design.getInstanceAtPrimitiveSite(site);
String[] letters = {"A","B","C","D"};
for(String letter : letters){
if(i.testAttributeValue(letter+"5LUT", "#OFF") &&
i.testAttributeValue(letter+"6LUT", "#OFF") &&
!i.hasAttribute("_GND_SOURCE") &&
!i.hasAttribute("_VCC_SOURCE")){
i.addAttribute(new Attribute(new Attribute(srcTypeString,"",letter)));
currStaticSourcePin = new Pin(true, letter, i);
i.addPin(currStaticSourcePin);
return i;
}
}