Beispiel #1
0
  public Cell makeVddGndM3Cell(Cell layCell, TechType tech) {
    Library layLib = layCell.getLibrary();
    CellName nm = layCell.getCellName();
    String m3Nm = nm.getName() + "_m3{lay}";
    Cell m3Cell = Cell.newInstance(layLib, m3Nm);
    Rectangle2D bounds = layCell.findEssentialBounds();
    double minX = bounds.getMinX();
    double minY = bounds.getMinY();
    double maxX = bounds.getMaxX();
    double maxY = bounds.getMaxY();
    LayoutLib.newNodeInst(tech.essentialBounds(), minX, minY, DEF_SIZE, DEF_SIZE, 0, m3Cell);
    LayoutLib.newNodeInst(tech.essentialBounds(), maxX, maxY, DEF_SIZE, DEF_SIZE, 180, m3Cell);
    for (Integer x : xCoords) {
      PortInst p1 =
          LayoutLib.newNodeInst(tech.m3pin(), x, minY, DEF_SIZE, DEF_SIZE, 180, m3Cell)
              .getOnlyPortInst();
      PortInst p2 =
          LayoutLib.newNodeInst(tech.m3pin(), x, maxY, DEF_SIZE, DEF_SIZE, 180, m3Cell)
              .getOnlyPortInst();
      LayoutLib.newArcInst(tech.m3(), vddGndWidth, p1, p2);
    }

    return m3Cell;
  }