Added capacitor and inductor components
This commit is contained in:
@@ -0,0 +1,164 @@
|
||||
// ----------------------------------------------------------------------------
|
||||
// Creating item definition for Capacitor
|
||||
// ----------------------------------------------------------------------------
|
||||
create_item(
|
||||
"mr_pas_c", // name
|
||||
"Capacitor", // description
|
||||
"C", // prefix
|
||||
0, // attributes
|
||||
NULL, // priority
|
||||
NULL, // icon name
|
||||
standard_dialog, // dialog name
|
||||
"", // dialog data
|
||||
ComponentNetlistFmt, // netlist format
|
||||
"C", // model name
|
||||
ComponentAnnotFmt, // display format string
|
||||
NULL, // symbol name (not used since 2011)
|
||||
NULL, // artwork type (not used since 2011)
|
||||
NULL, // artwork data (not used since 2011)
|
||||
ITEM_PRIMITIVE_EX, // extra attributes
|
||||
|
||||
create_parm
|
||||
(
|
||||
"C", // name
|
||||
"Capacitance", // label
|
||||
PARM_DOE | // attributes
|
||||
PARM_OPTIMIZABLE |
|
||||
PARM_STATISTICAL,
|
||||
"StdFileFormSet", // formSet
|
||||
CAPACITANCE_UNIT, // unit
|
||||
prm("StdForm", "1.0 pF") // default value
|
||||
),
|
||||
|
||||
create_parm
|
||||
(
|
||||
"Temp", // name
|
||||
"Temperature", // label
|
||||
PARM_NO_DISPLAY | // attributes
|
||||
PARM_DOE |
|
||||
PARM_OPTIMIZABLE |
|
||||
PARM_STATISTICAL,
|
||||
"StdFileFormSet", // formSet
|
||||
TEMPERATURE_UNIT, // unit
|
||||
prm("StdForm", "") // default value
|
||||
),
|
||||
|
||||
create_parm
|
||||
(
|
||||
"Trise", // name
|
||||
"Temperature rise over ambient", // label
|
||||
PARM_NO_DISPLAY | // attributes
|
||||
PARM_DOE |
|
||||
PARM_OPTIMIZABLE |
|
||||
PARM_STATISTICAL,
|
||||
"StdFileFormSet", // formSet
|
||||
TEMPERATURE_UNIT, // unit
|
||||
prm("StdForm", "") // default value
|
||||
),
|
||||
|
||||
create_parm
|
||||
(
|
||||
"Tnom", // name
|
||||
"Nominal temperature", // label
|
||||
PARM_NO_DISPLAY | // attributes
|
||||
PARM_DOE |
|
||||
PARM_OPTIMIZABLE |
|
||||
PARM_STATISTICAL,
|
||||
"StdFileFormSet", // formSet
|
||||
TEMPERATURE_UNIT, // unit
|
||||
prm("StdForm", "") // default value
|
||||
),
|
||||
|
||||
create_parm
|
||||
(
|
||||
"TC1", // name
|
||||
"Temperature coefficient; per degree Celsius", // label
|
||||
PARM_NO_DISPLAY | // attributes
|
||||
PARM_DOE |
|
||||
PARM_OPTIMIZABLE |
|
||||
PARM_STATISTICAL,
|
||||
"StdFileFormSet", // formSet
|
||||
UNITLESS_UNIT, // unit
|
||||
prm("StdForm", "") // default value
|
||||
),
|
||||
|
||||
create_parm
|
||||
(
|
||||
"TC2", // name
|
||||
"Temperature coefficient; per degree Celsius squared", // label
|
||||
PARM_NO_DISPLAY | // attributes
|
||||
PARM_DOE |
|
||||
PARM_OPTIMIZABLE |
|
||||
PARM_STATISTICAL,
|
||||
"StdFileFormSet", // formSet
|
||||
UNITLESS_UNIT, // unit
|
||||
prm("StdForm", "") // default value
|
||||
),
|
||||
|
||||
create_parm
|
||||
(
|
||||
"wBV", // name
|
||||
"Breakdown voltage (warning)", // label
|
||||
PARM_NO_DISPLAY, // attributes
|
||||
"StdFileFormSet", // formSet
|
||||
UNITLESS_UNIT, // unit
|
||||
prm("StdForm", "") // default value
|
||||
),
|
||||
|
||||
create_parm
|
||||
(
|
||||
"InitCond", // name
|
||||
"Initial condition for transient analysis", // label
|
||||
PARM_NO_DISPLAY, // attributes
|
||||
"StdFileFormSet", // formSet
|
||||
UNITLESS_UNIT, // unit
|
||||
prm("StdForm", "") // default value
|
||||
),
|
||||
|
||||
create_parm
|
||||
(
|
||||
"Model", // name
|
||||
"Model instance name", // label
|
||||
PARM_NO_DISPLAY, // attributes
|
||||
"StdFileFormSet", // formSet
|
||||
UNITLESS_UNIT, // unit
|
||||
prm("StdForm", "") // default value
|
||||
),
|
||||
|
||||
create_parm
|
||||
(
|
||||
"Width", // name
|
||||
"Width, refer to the model", // label
|
||||
PARM_NO_DISPLAY | // attributes
|
||||
PARM_DOE |
|
||||
PARM_OPTIMIZABLE |
|
||||
PARM_STATISTICAL,
|
||||
"StdFileFormSet", // formSet
|
||||
UNITLESS_UNIT, // unit
|
||||
prm("StdForm", "") // default value
|
||||
),
|
||||
|
||||
create_parm
|
||||
(
|
||||
"Length", // name
|
||||
"Length, refer to the model", // label
|
||||
PARM_NO_DISPLAY | // attributes
|
||||
PARM_DOE |
|
||||
PARM_OPTIMIZABLE |
|
||||
PARM_STATISTICAL,
|
||||
"StdFileFormSet", // formSet
|
||||
UNITLESS_UNIT, // unit
|
||||
prm("StdForm", "") // default value
|
||||
),
|
||||
|
||||
create_parm
|
||||
(
|
||||
"_M", // name
|
||||
"Number of devices in parallel, (default: 1)", // label
|
||||
PARM_NO_DISPLAY, // attributes
|
||||
"StdFileFormSet", // formSet
|
||||
UNITLESS_UNIT, // unit
|
||||
prm("StdForm", "1") // default value
|
||||
)
|
||||
|
||||
);
|
||||
@@ -0,0 +1,158 @@
|
||||
// ----------------------------------------------------------------------------
|
||||
//
|
||||
// ----------------------------------------------------------------------------
|
||||
create_constant_form( "no", "NO", 0, "no", "no" );
|
||||
create_constant_form( "yes", "YES", 0, "yes", "yes");
|
||||
|
||||
create_form_set("NoiseFormSet", "yes", "no");
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
// Creating item definition for Inductor
|
||||
// ----------------------------------------------------------------------------
|
||||
create_item(
|
||||
"mr_pas_l", // name
|
||||
"Inductor", // description
|
||||
"L", // prefix
|
||||
0, // attributes
|
||||
NULL, // priority
|
||||
NULL, // icon name
|
||||
standard_dialog, // dialog name
|
||||
"", // dialog data
|
||||
ComponentNetlistFmt, // netlist format
|
||||
"L", // netlist data (not used)
|
||||
ComponentAnnotFmt, // display format string
|
||||
NULL, // symbol name (not used since 2011)
|
||||
NULL, // artwork type (not used since 2011)
|
||||
NULL, // artwork data (not used since 2011)
|
||||
ITEM_PRIMITIVE_EX, // extra attributes
|
||||
|
||||
create_parm
|
||||
(
|
||||
"L", // name
|
||||
"Inductance", // label
|
||||
PARM_DOE | // attributes
|
||||
PARM_OPTIMIZABLE |
|
||||
PARM_STATISTICAL,
|
||||
"StdFileFormSet", // formSet
|
||||
INDUCTANCE_UNIT, // unit
|
||||
prm("StdForm", "1.0 nH") // default value
|
||||
),
|
||||
|
||||
create_parm
|
||||
(
|
||||
"R", // name
|
||||
"Series resistance", // label
|
||||
PARM_DOE | // attributes
|
||||
PARM_OPTIMIZABLE |
|
||||
PARM_STATISTICAL,
|
||||
"StdFileFormSet", // formSet
|
||||
RESISTANCE_UNIT, // unit
|
||||
prm("StdForm", "") // default value
|
||||
),
|
||||
|
||||
create_parm
|
||||
(
|
||||
"Temp", // name
|
||||
"Temperature", // label
|
||||
PARM_NO_DISPLAY | // attributes
|
||||
PARM_DOE |
|
||||
PARM_OPTIMIZABLE |
|
||||
PARM_STATISTICAL,
|
||||
"StdFileFormSet", // formSet
|
||||
TEMPERATURE_UNIT, // unit
|
||||
prm("StdForm", "") // default value
|
||||
),
|
||||
|
||||
create_parm
|
||||
(
|
||||
"Trise", // name
|
||||
"Temperature rise over ambient", // label
|
||||
PARM_NO_DISPLAY | // attributes
|
||||
PARM_DOE |
|
||||
PARM_OPTIMIZABLE |
|
||||
PARM_STATISTICAL,
|
||||
"StdFileFormSet", // formSet
|
||||
TEMPERATURE_UNIT, // unit
|
||||
prm("StdForm", "") // default value
|
||||
),
|
||||
|
||||
create_parm
|
||||
(
|
||||
"Tnom", // name
|
||||
"Nominal temperature", // label
|
||||
PARM_NO_DISPLAY | // attributes
|
||||
PARM_DOE |
|
||||
PARM_OPTIMIZABLE |
|
||||
PARM_STATISTICAL,
|
||||
"StdFileFormSet", // formSet
|
||||
TEMPERATURE_UNIT, // unit
|
||||
prm("StdForm", "") // default value
|
||||
),
|
||||
|
||||
create_parm
|
||||
(
|
||||
"TC1", // name
|
||||
"Temperature coefficient; per degree Celsius", // label
|
||||
PARM_NO_DISPLAY | // attributes
|
||||
PARM_DOE |
|
||||
PARM_OPTIMIZABLE |
|
||||
PARM_STATISTICAL,
|
||||
"StdFileFormSet", // formSet
|
||||
UNITLESS_UNIT, // unit
|
||||
prm("StdForm", "") // default value
|
||||
),
|
||||
|
||||
create_parm
|
||||
(
|
||||
"TC2", // name
|
||||
"Temperature coefficient; per degree Celsius squared", // label
|
||||
PARM_NO_DISPLAY | // attributes
|
||||
PARM_DOE |
|
||||
PARM_OPTIMIZABLE |
|
||||
PARM_STATISTICAL,
|
||||
"StdFileFormSet", // formSet
|
||||
UNITLESS_UNIT, // unit
|
||||
prm("StdForm", "") // default value
|
||||
),
|
||||
|
||||
create_parm
|
||||
(
|
||||
"InitCond", // name
|
||||
"Initial condition for transient analysis", // label
|
||||
PARM_NO_DISPLAY, // attributes
|
||||
"StdFileFormSet", // formSet
|
||||
UNITLESS_UNIT, // unit
|
||||
prm("StdForm", "") // default value
|
||||
),
|
||||
|
||||
create_parm
|
||||
(
|
||||
"Noise", // name
|
||||
"Temperature coefficient; per degree Celsius squared", // label
|
||||
PARM_DISCRETE_VALUE | PARM_NO_DISPLAY, // attributes
|
||||
"NoiseFormSet", // formSet
|
||||
UNITLESS_UNIT, // unit
|
||||
prm("yes") // default value
|
||||
),
|
||||
|
||||
create_parm
|
||||
(
|
||||
"Model", // name
|
||||
"Model instance name", // label
|
||||
PARM_NO_DISPLAY, // attributes
|
||||
"StdFileFormSet", // formSet
|
||||
UNITLESS_UNIT, // unit
|
||||
prm("StdForm", "") // default value
|
||||
),
|
||||
|
||||
create_parm
|
||||
(
|
||||
"_M", // name
|
||||
"Number of devices in parallel, (default: 1)", // label
|
||||
PARM_NO_DISPLAY, // attributes
|
||||
"StdFileFormSet", // formSet
|
||||
UNITLESS_UNIT, // unit
|
||||
prm("StdForm", "") // default value
|
||||
)
|
||||
|
||||
);
|
||||
@@ -41,6 +41,8 @@ else
|
||||
// ----------------------------------------------------------------------------
|
||||
load( strcat( MRMODELS_DIR_CIRCUIT_AEL, "mrmodels_include"));
|
||||
|
||||
load( strcat( MRMODELS_DIR_CIRCUIT_AEL, "mr/mr_capacitor" ));
|
||||
load( strcat( MRMODELS_DIR_CIRCUIT_AEL, "mr/mr_inductor" ));
|
||||
load( strcat( MRMODELS_DIR_CIRCUIT_AEL, "mr/mr_resistor" ));
|
||||
load( strcat( MRMODELS_DIR_CIRCUIT_AEL, "mr/mr_bjt" ));
|
||||
load( strcat( MRMODELS_DIR_CIRCUIT_AEL, "mr/mr_jfet" ));
|
||||
|
||||
@@ -0,0 +1,2 @@
|
||||
-- Master.tag File, Rev:1.0
|
||||
symbol.oa
|
||||
Binary file not shown.
@@ -0,0 +1,2 @@
|
||||
-- Master.tag File, Rev:1.0
|
||||
symbol.oa
|
||||
Binary file not shown.
Reference in New Issue
Block a user