📄 fillgen.java
字号:
package com.sun.electric.tool.generator.layout.fill;import com.sun.electric.tool.generator.layout.TechType;import com.sun.electric.tool.generator.layout.fill.FillGenConfig.FillGenType;import com.sun.electric.tool.generator.layout.fill.FillGeneratorTool.Units;/** Fill Generation for bean shell scripts */public class FillGen { private FillGenConfig config; private FillGeneratorTool fgt = new FillGeneratorTool(); /** Reserve space in the middle of the Vdd and ground straps for signals. * @param layer the layer number. This may be 2, 3, 4, 5, or 6. The layer * number 1 is reserved to mean "capacitor between Vdd and ground". * @param vddReserved space to reserve in the middle of the central Vdd * strap. * The value 0 makes the Vdd strap one large strap instead of two smaller * adjacent straps. * @param vddUnits LAMBDA or TRACKS * @param gndReserved space to reserve between the ground strap of this * cell and the ground strap of the adjacent fill cell. The value 0 means * that these two ground straps should abut to form a single large strap * instead of two smaller adjacent straps. * @param gndUnits LAMBDA or TRACKS * param tiledSizes an array of sizes. The default value is null. The * value null means don't generate anything. */ public void reserveSpaceOnLayer(int layer, double vddReserved, Units vddUnits, double gndReserved, Units gndUnits) { config.reserveSpaceOnLayer(config.techType.getTechType().getTechnology(), layer, vddReserved, vddUnits, gndReserved, gndUnits); } public FillGen(TechType.TechTypeEnum tech) { config = new FillGenConfig(FillGeneratorTool.FillTypeEnum.INVALID, tech, null, null, -1, -1, Double.NaN, Double.NaN, false, null, false, Double.NaN, Double.NaN, false, false, false, Double.NaN, FillGenType.INTERNAL, -1); } public void setFillLibrary(String libName) { config.fillLibName = libName; } public void setFillCellWidth(double w) { config.width = w; } public void setFillCellHeight(double h) { config.height = h; } public void makeEvenLayersHorizontal(boolean b) { config.evenLayersHorizontal = b; } public void makeFillCell(int loLayer, int hiLayer, ExportConfig exportConfig, int[] tiledSizes) { fgt.setConfig(config); fgt.standardMakeFillCell(loLayer, hiLayer, config.techType.getTechType(), exportConfig, tiledSizes, false); } public void makeGallery() { fgt.makeGallery(); } public void writeLibrary() { fgt.writeLibrary(); }}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -