📄 simulation.java
字号:
* @param s the FastHenry starting frequency (or only if using a single frequency). */ public static void setFastHenryStartFrequency(double s) { cacheFastHenryStartFrequency.setDouble(s); } /** * Method to return the FastHenry starting frequency (or only if using a single frequency), by default. * @return the FastHenry starting frequency (or only if using a single frequency), by default. */ public static double getFactoryFastHenryStartFrequency() { return cacheFastHenryStartFrequency.getDoubleFactoryValue(); } private static Pref cacheFastHenryEndFrequency = Pref.makeDoublePref("FastHenryEndFrequency", tool.prefs, 0); /** * Method to return the FastHenry ending frequency. * The default is 0. * @return the FastHenry ending frequency. */ public static double getFastHenryEndFrequency() { return cacheFastHenryEndFrequency.getDouble(); } /** * Method to set the FastHenry ending frequency. * @param e the FastHenry ending frequency. */ public static void setFastHenryEndFrequency(double e) { cacheFastHenryEndFrequency.setDouble(e); } /** * Method to return the FastHenry ending frequency, by default. * @return the FastHenry ending frequency, by default. */ public static double getFactoryFastHenryEndFrequency() { return cacheFastHenryEndFrequency.getDoubleFactoryValue(); } private static Pref cacheFastHenryRunsPerDecade = Pref.makeIntPref("FastHenryRunsPerDecade", tool.prefs, 1); /** * Method to return the number of runs per decade for FastHenry deck generation. * The default is 1. * @return the number of runs per decade for FastHenry deck generation. */ public static int getFastHenryRunsPerDecade() { return cacheFastHenryRunsPerDecade.getInt(); } /** * Method to set the number of runs per decade for FastHenry deck generation. * @param r the number of runs per decade for FastHenry deck generation. */ public static void setFastHenryRunsPerDecade(int r) { cacheFastHenryRunsPerDecade.setInt(r); } /** * Method to return the number of runs per decade for FastHenry deck generation, by default. * @return the number of runs per decade for FastHenry deck generation, by default. */ public static int getFactoryFastHenryRunsPerDecade() { return cacheFastHenryRunsPerDecade.getIntFactoryValue(); } private static Pref cacheFastHenryMultiPole = Pref.makeBooleanPref("FastHenryMultiPole", tool.prefs, false); /** * Method to tell whether FastHenry deck generation should make a multipole subcircuit. * The default is false. * @return true if FastHenry deck generation should make a multipole subcircuit. */ public static boolean isFastHenryMultiPole() { return cacheFastHenryMultiPole.getBoolean(); } /** * Method to set whether FastHenry deck generation should make a multipole subcircuit. * @param mp true if FastHenry deck generation should make a multipole subcircuit. */ public static void setFastHenryMultiPole(boolean mp) { cacheFastHenryMultiPole.setBoolean(mp); } /** * Method to tell whether FastHenry deck generation should make a multipole subcircuit, by default. * @return true if FastHenry deck generation should make a multipole subcircuit, by default. */ public static boolean isFactoryFastHenryMultiPole() { return cacheFastHenryMultiPole.getBooleanFactoryValue(); } private static Pref cacheFastHenryNumPoles = Pref.makeIntPref("FastHenryNumPoles", tool.prefs, 20); /** * Method to return the number of poles for FastHenry deck generation. * The default is 20. * @return the number of poles for FastHenry deck generation. */ public static int getFastHenryNumPoles() { return cacheFastHenryNumPoles.getInt(); } /** * Method to set the number of poles for FastHenry deck generation. * @param p the number of poles for FastHenry deck generation. */ public static void setFastHenryNumPoles(int p) { cacheFastHenryNumPoles.setInt(p); } /** * Method to return the number of poles for FastHenry deck generation, by default. * @return the number of poles for FastHenry deck generation, by default. */ public static int getFactoryFastHenryNumPoles() { return cacheFastHenryNumPoles.getIntFactoryValue(); } private static Pref cacheFastHenryDefThickness = Pref.makeDoublePref("FastHenryDefThickness", tool.prefs, 2); /** * Method to return the FastHenry default wire thickness. * The default is 2. * @return the FastHenry default wire thickness. */ public static double getFastHenryDefThickness() { return cacheFastHenryDefThickness.getDouble(); } /** * Method to set the FastHenry default wire thickness. * @param t the FastHenry default wire thickness. */ public static void setFastHenryDefThickness(double t) { cacheFastHenryDefThickness.setDouble(t); } /** * Method to return the FastHenry default wire thickness, by default. * @return the FastHenry default wire thickness, by default. */ public static double getFactoryFastHenryDefThickness() { return cacheFastHenryDefThickness.getDoubleFactoryValue(); } private static Pref cacheFastHenryWidthSubdivisions = Pref.makeIntPref("FastHenryWidthSubdivisions", tool.prefs, 1); /** * Method to return the default number of width subdivisions for FastHenry deck generation. * The default is 1. * @return the default number of width subdivisions for FastHenry deck generation. */ public static int getFastHenryWidthSubdivisions() { return cacheFastHenryWidthSubdivisions.getInt(); } /** * Method to set the default number of width subdivisions for FastHenry deck generation. * @param w the default number of width subdivisions for FastHenry deck generation. */ public static void setFastHenryWidthSubdivisions(int w) { cacheFastHenryWidthSubdivisions.setInt(w); } /** * Method to return the default number of width subdivisions for FastHenry deck generation, by default. * @return the default number of width subdivisions for FastHenry deck generation, by default. */ public static int getFactoryFastHenryWidthSubdivisions() { return cacheFastHenryWidthSubdivisions.getIntFactoryValue(); } private static Pref cacheFastHenryHeightSubdivisions = Pref.makeIntPref("FastHenryHeightSubdivisions", tool.prefs, 1); /** * Method to return the default number of height subdivisions for FastHenry deck generation. * The default is 1. * @return the default number of height subdivisions for FastHenry deck generation. */ public static int getFastHenryHeightSubdivisions() { return cacheFastHenryHeightSubdivisions.getInt(); } /** * Method to set the default number of height subdivisions for FastHenry deck generation. * @param h the default number of height subdivisions for FastHenry deck generation. */ public static void setFastHenryHeightSubdivisions(int h) { cacheFastHenryHeightSubdivisions.setInt(h); } /** * Method to return the default number of height subdivisions for FastHenry deck generation, by default. * @return the default number of height subdivisions for FastHenry deck generation, by default. */ public static int getFactoryFastHenryHeightSubdivisions() { return cacheFastHenryHeightSubdivisions.getIntFactoryValue(); } private static Pref cacheFastHenryMaxSegLength = Pref.makeDoublePref("FastHenryMaxSegLength", tool.prefs, 0); /** * Method to return the maximum segment length for FastHenry deck generation. * The default is 0. * @return the maximum segment length for FastHenry deck generation. */ public static double getFastHenryMaxSegLength() { return cacheFastHenryMaxSegLength.getDouble(); } /** * Method to set the maximum segment length for FastHenry deck generation. * @param s the maximum segment length for FastHenry deck generation. */ public static void setFastHenryMaxSegLength(double s) { cacheFastHenryMaxSegLength.setDouble(s); } /** * Method to return the maximum segment length for FastHenry deck generation, by default. * @return the maximum segment length for FastHenry deck generation, by default. */ public static double getFactoryFastHenryMaxSegLength() { return cacheFastHenryMaxSegLength.getDoubleFactoryValue(); } /****************************** VERILOG OPTIONS ******************************/ /** * Method to tell whether Verilog deck generation should use the Assign statement. * The default is false. * @return true if Verilog deck generation should use the Assign statement. */ public static boolean getVerilogUseAssign() { return tool.cacheVerilogUseAssign.getBoolean(); } /** * Returns setting to tell whether Verilog deck generation should use the Assign statement. * @return setting to tell whether Verilog deck generation should use the Assign statement. */ public static Setting getVerilogUseAssignSetting() { return tool.cacheVerilogUseAssign; } /** * Method to tell whether Verilog deck generation should use Trireg by default. * The alternative is to use the "wire" statement. * The default is false. * @return true if Verilog deck generation should use Trireg by default. */ public static boolean getVerilogUseTrireg() { return tool.cacheVerilogUseTrireg.getBoolean(); } /** * Returns setting to tell whether Verilog deck generation should use Trireg by default. * The alternative is to use the "wire" statement. * @return setting to tell whether Verilog deck generation should use Trireg by default. */ public static Setting getVerilogUseTriregSetting() { return tool.cacheVerilogUseTrireg; } private Setting cacheVerilogUseAssign; private Setting cacheVerilogUseTrireg; private void initVerilogProjectSettings() { makeBooleanSetting("VerilogUseAssign", "Verilog tab", "Verilog uses Assign construct", false); makeBooleanSetting("VerilogUseTrireg", "Verilog tab", "Verilog presumes wire is Trireg", false); } private static Pref cacheVerilogStopAtStandardCells = Pref.makeBooleanPref("VerilogStopAtStandardCells", tool.prefs, false); public static void setVerilogStopAtStandardCells(boolean b) { cacheVerilogStopAtStandardCells.setBoolean(b); } public static boolean getVerilogStopAtStandardCells() { return cacheVerilogStopAtStandardCells.getBoolean(); } public static boolean getFactoryVerilogStopAtStandardCells() { return cacheVerilogStopAtStandardCells.getBooleanFactoryValue(); } /** * BVE - Improved support for Verilog generation */ private static Pref cachePreserveVerilogFormating = Pref.makeBooleanPref("PreserveVerilogFormating", tool.prefs, true); public static void setPreserveVerilogFormating(boolean b) { cachePreserveVerilogFormating.setBoolean(b); } public static boolean getPreserveVerilogFormating() { return cachePreserveVerilogFormating.getBoolean(); } public static boolean getFactoryPreserveVerilogFormating() { return cachePreserveVerilogFormating.getBooleanFactoryValue(); } private static Pref cacheVerilogParameterizeModuleNames = Pref.makeBooleanPref("VerilogParamertizeModuleNames", tool.prefs, false); public static void setVerilogParameterizeModuleNames(boolean b) { cacheVerilogParameterizeModuleNames.setBoolean(b); } public static boolean getVerilogParameterizeModuleNames() { return cacheVerilogParameterizeModuleNames.getBoolean(); } public static boolean getFactoryVerilogParameterizeModuleNames() { return cacheVerilogParameterizeModuleNames.getBooleanFactoryValue(); } /****************************** CDL OPTIONS ******************************/ private static Pref cacheCDLLibName = Pref.makeStringPref("CDLLibName", tool.prefs, "");// static { cacheCDLLibName.attachToObject(tool, "IO/CDL tab", "Cadence library name"); } /** * Method to return the CDL library name. * CDL is a weak form of a Spice deck, and it includes a Cadence library name. * @return the CDL library name. */ public static String getCDLLibName() { return cacheCDLLibName.getString(); } /** * Method to set the CDL library name. * CDL is a weak form of a Spice deck, and it includes a Cadence library name. * @param libName the CDL library name. */ public static void setCDLLibName(String libName) { cacheCDLLibName.setString(libName); } /** * Method to return the default CDL library name. * CDL is a weak form of a Spice deck, and it includes a Cadence library name. * @return the default CDL library name. */ public static String getFactoryCDLLibName() { return cacheCDLLibName.getStringFactoryValue(); } private static Pref cacheCDLLibPath = Pref.makeStringPref("CDLLibPath", tool.prefs, "");// static { cacheCDLLibPath.attachToObject(tool, "IO/CDL tab", "Cadence library path"); } /** * Method to return the CDL library path. * CDL is a weak form of a Spice deck, and it includes a Cadence library. * @return the CDL library path. */ public static String getCDLLibPath() { return cacheCDLLibPath.getString(); } /** * Method to set the CDL library path. * CDL is a weak form of a Spice deck, and it includes a Cadence library. * @param libName the CDL library path. */ public static void setCDLLibPath(String libName) { cacheCDLLibPath.setString(libName); } /** * Method to return the default CDL library path. * CDL is a weak form of a Spice deck, and it includes a Cadence library. * @return the default CDL library path. */ public static String getFactoryCDLLibPath() { return cacheCDLLibPath.getStringFactoryValue(); } private static Pref cacheCDLConvertBrackets = Pref.makeBooleanPref("CDLConvertBrackets", tool.prefs, false);// static { cacheCDLConvertBrackets.attachToObject(tool, "IO/CDL tab", "CDL converts brackets"); } /** * Method to tell whether CDL converts square bracket characters. * CDL is a weak form of a Spice deck, and it includes a Cadence library. * @return true if CDL converts square bracket characters. */ public static boolean isCDLConvertBrackets() { return cacheCDLConvertBrackets.getBoolean(); } /** * Method to set if CDL converts square bracket characters. * CDL is a weak form of a Spice deck, and it includes a Cadence library. * @param c true if CDL converts square bracket characters. */ public static void setCDLConvertBrackets(boolean c) { cacheCDLConvertBrackets.setBoolean(c); } /** * Method to tell whether CDL converts square bracket characters by default. * CDL is a weak form of a Spice deck, and it includes a Cadence library. * @return true if CDL converts square bracket characters by default. */ public static boolean isFactoryCDLConvertBrackets() { return cacheCDLConvertBrackets.getBooleanFactoryValue(); } /** * File to be included when writing CDL netlists. "" to not include any file */ private static Pref cacheCDLIncludeFile = Pref.makeStringPref("CDLIncludeFile", tool.prefs, ""); public static String getCDLIncludeFile() { return cacheCDLIncludeFile.getString(); } public static void setCDLIncludeFile(String file) { cacheCDLIncludeFile.setString(file); } public static String getFactoryCDLIncludeFile() { return cacheCDLIncludeFile.getStringFactoryValue(); } private static Pref cacheCDLIgnoreResistors = Pref.makeBooleanPref("CDLLIgnoreResistors", tool.prefs, false);// static { cacheCDLLibName.attachToObject(tool, "IO/CDL tab", "Cadence library name"); } /** * Method to get the state of "ignore resistors" for netlisting * @return the state of "ignore resistors" */ public static boolean getCDLIgnoreResistors() { return cacheCDLIgnoreResistors.getBoolean(); } /** * Method to get the state of "ignore resistors" for netlisting * @param b the state of "ignore resistors" */ public static void setCDLIgnoreResistors(boolean b) { cacheCDLIgnoreResistors.setBoolean(b); } /****************************** BUILT-IN SIMULATION OPTIONS ******************************/ private static Pref cacheBuiltInResimulateEach = Pref.makeBooleanPref("BuiltInResimulateEach", tool.prefs, true); /** * Method to tell whether built-in simulators resimulate after each change to the display. * When false, the user must request resimulation after a set of changes is done. * @return true if built-in simulators resimulate after each change to the display. */ public static boolean isBuiltInResimulateEach() { return cacheBuiltInResimulateEach.getBoolean(); } /** * Method to set if built-in simulators resimulate after each change to the display. * When false, the user must request resimulation after a set of changes is done. * @param r true if built-in simulators resimulate after each change to the display. */ public static void setBuiltInResimulateEach(boolean r) { cacheBuiltInResimulateEach.setBoolean(r); } /** * Method to tell whether built-in simulators resimulate after each change to the display, by default. * When false, the user must request resimulation after a set of changes is done. * @return true if built-in simulators resimulate after each change to the display, by default. */ public static boolean isFactoryBuiltInResimulateEach() { return cacheBuiltInResimulateEach.getBooleanFactoryValue(); } private static Pref cacheBuiltInAutoAdvance = Pref.makeBooleanPref("BuiltInAutoAdvance", tool.prefs, false); /** * Method to tell whether built-in simulators automatically advance the time cursor when stimuli are added. * @return true if built-in simulators automatically advance the time cursor when stimuli are added. */ public static boolean isBuiltInAutoAdvance() { return cacheBuiltInAutoAdvance.getBoolean(); } /** * Method to set if built-in simulators automatically advance the time cursor when stimuli are added. * @param r true if built-in simulators automatically advance the time cursor when stimuli are added. */ public static void setBuiltInAutoAdvance(boolean r) { cacheBuiltInAutoAdvance.setBoolean(r); } /** * Method to tell whether built-in simulators automatically advance the time cursor when stimuli are added, by default. * @return true if built-in simulators automatically advance the time cursor when stimuli are added, by default. */ public static boolean isFactoryBuiltInAutoAdvance() { return cacheBuiltInAutoAdvance.getBooleanFactoryValue(); } private static Pref cacheWaveformDisplayMultiState = Pref.makeBooleanPref("WaveformDisplayMultiState", tool.prefs, false); /** * Method to tell whether the waveform uses a multi-state display. * Multi-state displays distinguish different strengths with different colors in the waveform window, * and use different colors to distinguish different levels when drawing the cross-probing of the waveform * in the schematics and layout window. * The default is false. * @return true if the waveform uses a multi-state display. */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -