Package edu.byu.ece.rapidSmith.design

Examples of edu.byu.ece.rapidSmith.design.Instance.addAttribute()


              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;
                }
              }
View Full Code Here


    // Add the appropriate attribute if instance already exists
    if(currInst != null){
      if(net.getType().equals(NetType.VCC)){
        // Add HARD1
        if(!currInst.hasAttribute(vccAttr.getPhysicalName())){
          currInst.addAttribute(vccAttr);
        }
      }
      else if(net.getType().equals(NetType.GND)){
        if(!currInst.hasAttribute(keep0Attr.getPhysicalName())){
          currInst.addAttribute(keep0Attr);
View Full Code Here

          currInst.addAttribute(vccAttr);
        }
      }
      else if(net.getType().equals(NetType.GND)){
        if(!currInst.hasAttribute(keep0Attr.getPhysicalName())){
          currInst.addAttribute(keep0Attr);
        }
      }
    }
    // Add the instance (it doesn't exist yet)
    else{
View Full Code Here

    else{
      currInst = new Instance();
      currInst.place(router.dev.getPrimitiveSite("TIEOFF" + tileSuffix));
      currInst.setType(PrimitiveType.TIEOFF);
      currInst.setName(instName);
      currInst.addAttribute(noUserLogicAttr);
      if(net.getType().equals(NetType.VCC)){
        // Add HARD1
        currInst.addAttribute(vccAttr);
      }
      else if(net.getType().equals(NetType.GND)){
View Full Code Here

      currInst.setType(PrimitiveType.TIEOFF);
      currInst.setName(instName);
      currInst.addAttribute(noUserLogicAttr);
      if(net.getType().equals(NetType.VCC)){
        // Add HARD1
        currInst.addAttribute(vccAttr);
      }
      else if(net.getType().equals(NetType.GND)){
        currInst.addAttribute(keep0Attr);
      }
      router.design.addInstance(currInst);
View Full Code Here

      if(net.getType().equals(NetType.VCC)){
        // Add HARD1
        currInst.addAttribute(vccAttr);
      }
      else if(net.getType().equals(NetType.GND)){
        currInst.addAttribute(keep0Attr);
      }
      router.design.addInstance(currInst);
    }

    return currInst;
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.