Added Diode component with standard and verilog model (diode, led, zener)
This commit is contained in:
@@ -0,0 +1,286 @@
|
||||
// (setq tab-width 4)
|
||||
// kelle ez ? :: decl diode_va_ModelNetlistFmt = "%43?global %;model %t diode_va %b%r%8?%29?%:%30?%p %:%k%?[%1i]%;=%p %;%;%;%e%e";
|
||||
|
||||
create_item(
|
||||
"mr_diode", // name
|
||||
"PN junction diode", // label
|
||||
"D", // prefix
|
||||
0, // attributes
|
||||
NULL, // priority
|
||||
NULL, // icon
|
||||
standard_dialog, // dialog name
|
||||
"", // dialog data
|
||||
CmpModelNetlistFmt, // netlist format
|
||||
"Diode", // netlist data
|
||||
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
|
||||
|
||||
// ------------------------------------------------------------------------
|
||||
// Model
|
||||
// ------------------------------------------------------------------------
|
||||
create_parm
|
||||
(
|
||||
"Model",
|
||||
"Model instance name",
|
||||
0,
|
||||
"StdFileFormSet",
|
||||
UNITLESS_UNIT,
|
||||
prm("StdForm","va_diode")
|
||||
),
|
||||
|
||||
|
||||
// ------------------------------------------------------------------------
|
||||
// Area
|
||||
// ------------------------------------------------------------------------
|
||||
create_parm
|
||||
(
|
||||
"Area",
|
||||
"Scaling factor",
|
||||
PARM_OPTIMIZABLE |
|
||||
PARM_STATISTICAL,
|
||||
"StdFileFormSet",
|
||||
UNITLESS_UNIT,
|
||||
prm("StdForm","1.0")
|
||||
),
|
||||
|
||||
// ------------------------------------------------------------------------
|
||||
// Is
|
||||
// ------------------------------------------------------------------------
|
||||
create_parm
|
||||
(
|
||||
"Is",
|
||||
"Saturation current",
|
||||
PARM_NO_DISPLAY |
|
||||
PARM_OPTIMIZABLE |
|
||||
PARM_STATISTICAL,
|
||||
"StdFileFormSet",
|
||||
CURRENT_UNIT,
|
||||
prm("StdForm","")
|
||||
),
|
||||
|
||||
// ------------------------------------------------------------------------
|
||||
// Tnom
|
||||
// ------------------------------------------------------------------------
|
||||
create_parm
|
||||
(
|
||||
"Tnom",
|
||||
"Nominal temperature",
|
||||
PARM_NO_DISPLAY |
|
||||
PARM_OPTIMIZABLE |
|
||||
PARM_STATISTICAL,
|
||||
"StdFileFormSet",
|
||||
TEMPERATURE_UNIT,
|
||||
prm("StdForm","")
|
||||
),
|
||||
|
||||
// ------------------------------------------------------------------------
|
||||
// Rs
|
||||
// ------------------------------------------------------------------------
|
||||
create_parm
|
||||
(
|
||||
"Rs",
|
||||
"Ohmic resistance",
|
||||
PARM_NO_DISPLAY |
|
||||
PARM_OPTIMIZABLE |
|
||||
PARM_STATISTICAL,
|
||||
"StdFileFormSet",
|
||||
RESISTANCE_UNIT,
|
||||
prm("StdForm","")
|
||||
),
|
||||
|
||||
// ------------------------------------------------------------------------
|
||||
// N
|
||||
// ------------------------------------------------------------------------
|
||||
create_parm
|
||||
(
|
||||
"N",
|
||||
"Emission coefficient, (default: 1.0)",
|
||||
PARM_NO_DISPLAY |
|
||||
PARM_OPTIMIZABLE |
|
||||
PARM_STATISTICAL,
|
||||
"StdFileFormSet",
|
||||
UNITLESS_UNIT,
|
||||
prm("StdForm","")
|
||||
),
|
||||
|
||||
// ------------------------------------------------------------------------
|
||||
// Tt
|
||||
// ------------------------------------------------------------------------
|
||||
create_parm
|
||||
(
|
||||
"Tt",
|
||||
"Transit time",
|
||||
PARM_NO_DISPLAY |
|
||||
PARM_OPTIMIZABLE |
|
||||
PARM_STATISTICAL,
|
||||
"StdFileFormSet",
|
||||
TIME_UNIT,
|
||||
prm("StdForm","0.0")
|
||||
),
|
||||
|
||||
// ------------------------------------------------------------------------
|
||||
// Cjo
|
||||
// ------------------------------------------------------------------------
|
||||
create_parm
|
||||
(
|
||||
"Cjo",
|
||||
"Junction capacitance",
|
||||
PARM_NO_DISPLAY |
|
||||
PARM_OPTIMIZABLE |
|
||||
PARM_STATISTICAL,
|
||||
"StdFileFormSet",
|
||||
CAPACITANCE_UNIT,
|
||||
prm("StdForm","")
|
||||
),
|
||||
|
||||
// ------------------------------------------------------------------------
|
||||
// Vj
|
||||
// ------------------------------------------------------------------------
|
||||
create_parm
|
||||
(
|
||||
"Vj",
|
||||
"Junction potential, (default: 1.0)",
|
||||
PARM_NO_DISPLAY |
|
||||
PARM_OPTIMIZABLE |
|
||||
PARM_STATISTICAL,
|
||||
"StdFileFormSet",
|
||||
VOLTAGE_UNIT,
|
||||
prm("StdForm","")
|
||||
),
|
||||
|
||||
// ------------------------------------------------------------------------
|
||||
// M
|
||||
// ------------------------------------------------------------------------
|
||||
create_parm
|
||||
(
|
||||
"M",
|
||||
"Grading coefficient, (default: 0.5)",
|
||||
PARM_NO_DISPLAY |
|
||||
PARM_OPTIMIZABLE |
|
||||
PARM_STATISTICAL,
|
||||
"StdFileFormSet",
|
||||
UNITLESS_UNIT,
|
||||
prm("StdForm","")
|
||||
),
|
||||
|
||||
// ------------------------------------------------------------------------
|
||||
// Eg
|
||||
// ------------------------------------------------------------------------
|
||||
create_parm
|
||||
(
|
||||
"Eg",
|
||||
"Activation energy, (default: 1.1)",
|
||||
PARM_NO_DISPLAY |
|
||||
PARM_OPTIMIZABLE |
|
||||
PARM_STATISTICAL,
|
||||
"StdFileFormSet",
|
||||
UNITLESS_UNIT,
|
||||
prm("StdForm","")
|
||||
),
|
||||
|
||||
// ------------------------------------------------------------------------
|
||||
// Xti
|
||||
// ------------------------------------------------------------------------
|
||||
create_parm
|
||||
(
|
||||
"Xti",
|
||||
"Is temperature exponent (default: 3.3)",
|
||||
PARM_NO_DISPLAY |
|
||||
PARM_OPTIMIZABLE |
|
||||
PARM_STATISTICAL,
|
||||
"StdFileFormSet",
|
||||
UNITLESS_UNIT,
|
||||
prm("StdForm","")
|
||||
),
|
||||
|
||||
// ------------------------------------------------------------------------
|
||||
// Af
|
||||
// ------------------------------------------------------------------------
|
||||
create_parm
|
||||
(
|
||||
"Af",
|
||||
"Flicker noise exponent (default: 1.0)",
|
||||
PARM_NO_DISPLAY |
|
||||
PARM_OPTIMIZABLE |
|
||||
PARM_STATISTICAL,
|
||||
"StdFileFormSet",
|
||||
UNITLESS_UNIT,
|
||||
prm("StdForm","")
|
||||
),
|
||||
|
||||
// ------------------------------------------------------------------------
|
||||
// Kf
|
||||
// ------------------------------------------------------------------------
|
||||
create_parm
|
||||
(
|
||||
"Kf",
|
||||
"Flicker noise coefficient (default: 0.0)",
|
||||
PARM_NO_DISPLAY |
|
||||
PARM_OPTIMIZABLE |
|
||||
PARM_STATISTICAL,
|
||||
"StdFileFormSet",
|
||||
UNITLESS_UNIT,
|
||||
prm("StdForm","")
|
||||
),
|
||||
|
||||
// ------------------------------------------------------------------------
|
||||
// Fc
|
||||
// ------------------------------------------------------------------------
|
||||
create_parm
|
||||
(
|
||||
"Fc",
|
||||
"Forward bias junction parm (default: 0.5)",
|
||||
PARM_NO_DISPLAY |
|
||||
PARM_OPTIMIZABLE |
|
||||
PARM_STATISTICAL,
|
||||
"StdFileFormSet",
|
||||
UNITLESS_UNIT,
|
||||
prm("StdForm","")
|
||||
),
|
||||
|
||||
// ------------------------------------------------------------------------
|
||||
// Bv
|
||||
// ------------------------------------------------------------------------
|
||||
create_parm
|
||||
(
|
||||
"Bv",
|
||||
"Reverse breakdown voltage (default: 1e99)",
|
||||
PARM_NO_DISPLAY |
|
||||
PARM_OPTIMIZABLE |
|
||||
PARM_STATISTICAL,
|
||||
"StdFileFormSet",
|
||||
VOLTAGE_UNIT,
|
||||
prm("StdForm","")
|
||||
),
|
||||
|
||||
// ------------------------------------------------------------------------
|
||||
// Ibv
|
||||
// ------------------------------------------------------------------------
|
||||
create_parm
|
||||
(
|
||||
"IBv",
|
||||
"Reverse breakdown current (default: 1 mA)",
|
||||
PARM_NO_DISPLAY |
|
||||
PARM_OPTIMIZABLE |
|
||||
PARM_STATISTICAL,
|
||||
"StdFileFormSet",
|
||||
CURRENT_UNIT,
|
||||
prm("StdForm","")
|
||||
),
|
||||
|
||||
// ------------------------------------------------------------------------
|
||||
// _M
|
||||
// ------------------------------------------------------------------------
|
||||
create_parm
|
||||
(
|
||||
"_M",
|
||||
"Number of devices in parallel, (default: 1)",
|
||||
PARM_NO_DISPLAY,
|
||||
"StdFileFormSet",
|
||||
UNITLESS_UNIT,
|
||||
prm("StdForm","")
|
||||
)
|
||||
);
|
||||
@@ -0,0 +1,286 @@
|
||||
// (setq tab-width 4)
|
||||
// kelle ez ? :: decl diode_va_ModelNetlistFmt = "%43?global %;model %t diode_va %b%r%8?%29?%:%30?%p %:%k%?[%1i]%;=%p %;%;%;%e%e";
|
||||
|
||||
create_item(
|
||||
"mr_diode_zener", // name
|
||||
"Zener diode", // label
|
||||
"D", // prefix
|
||||
0, // attributes
|
||||
NULL, // priority
|
||||
NULL, // icon
|
||||
standard_dialog, // dialog name
|
||||
"", // dialog data
|
||||
CmpModelNetlistFmt, // netlist format
|
||||
"Diode", // netlist data
|
||||
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
|
||||
|
||||
// ------------------------------------------------------------------------
|
||||
// Model
|
||||
// ------------------------------------------------------------------------
|
||||
create_parm
|
||||
(
|
||||
"Model",
|
||||
"Model instance name",
|
||||
0,
|
||||
"StdFileFormSet",
|
||||
UNITLESS_UNIT,
|
||||
prm("StdForm","va_diode")
|
||||
),
|
||||
|
||||
|
||||
// ------------------------------------------------------------------------
|
||||
// Area
|
||||
// ------------------------------------------------------------------------
|
||||
create_parm
|
||||
(
|
||||
"Area",
|
||||
"Scaling factor",
|
||||
PARM_OPTIMIZABLE |
|
||||
PARM_STATISTICAL,
|
||||
"StdFileFormSet",
|
||||
UNITLESS_UNIT,
|
||||
prm("StdForm","1.0")
|
||||
),
|
||||
|
||||
// ------------------------------------------------------------------------
|
||||
// Is
|
||||
// ------------------------------------------------------------------------
|
||||
create_parm
|
||||
(
|
||||
"Is",
|
||||
"Saturation current",
|
||||
PARM_NO_DISPLAY |
|
||||
PARM_OPTIMIZABLE |
|
||||
PARM_STATISTICAL,
|
||||
"StdFileFormSet",
|
||||
CURRENT_UNIT,
|
||||
prm("StdForm","")
|
||||
),
|
||||
|
||||
// ------------------------------------------------------------------------
|
||||
// Tnom
|
||||
// ------------------------------------------------------------------------
|
||||
create_parm
|
||||
(
|
||||
"Tnom",
|
||||
"Nominal temperature",
|
||||
PARM_NO_DISPLAY |
|
||||
PARM_OPTIMIZABLE |
|
||||
PARM_STATISTICAL,
|
||||
"StdFileFormSet",
|
||||
TEMPERATURE_UNIT,
|
||||
prm("StdForm","")
|
||||
),
|
||||
|
||||
// ------------------------------------------------------------------------
|
||||
// Rs
|
||||
// ------------------------------------------------------------------------
|
||||
create_parm
|
||||
(
|
||||
"Rs",
|
||||
"Ohmic resistance",
|
||||
PARM_NO_DISPLAY |
|
||||
PARM_OPTIMIZABLE |
|
||||
PARM_STATISTICAL,
|
||||
"StdFileFormSet",
|
||||
RESISTANCE_UNIT,
|
||||
prm("StdForm","")
|
||||
),
|
||||
|
||||
// ------------------------------------------------------------------------
|
||||
// N
|
||||
// ------------------------------------------------------------------------
|
||||
create_parm
|
||||
(
|
||||
"N",
|
||||
"Emission coefficient, (default: 1.0)",
|
||||
PARM_NO_DISPLAY |
|
||||
PARM_OPTIMIZABLE |
|
||||
PARM_STATISTICAL,
|
||||
"StdFileFormSet",
|
||||
UNITLESS_UNIT,
|
||||
prm("StdForm","")
|
||||
),
|
||||
|
||||
// ------------------------------------------------------------------------
|
||||
// Tt
|
||||
// ------------------------------------------------------------------------
|
||||
create_parm
|
||||
(
|
||||
"Tt",
|
||||
"Transit time",
|
||||
PARM_NO_DISPLAY |
|
||||
PARM_OPTIMIZABLE |
|
||||
PARM_STATISTICAL,
|
||||
"StdFileFormSet",
|
||||
TIME_UNIT,
|
||||
prm("StdForm","0.0")
|
||||
),
|
||||
|
||||
// ------------------------------------------------------------------------
|
||||
// Cjo
|
||||
// ------------------------------------------------------------------------
|
||||
create_parm
|
||||
(
|
||||
"Cjo",
|
||||
"Junction capacitance",
|
||||
PARM_NO_DISPLAY |
|
||||
PARM_OPTIMIZABLE |
|
||||
PARM_STATISTICAL,
|
||||
"StdFileFormSet",
|
||||
CAPACITANCE_UNIT,
|
||||
prm("StdForm","")
|
||||
),
|
||||
|
||||
// ------------------------------------------------------------------------
|
||||
// Vj
|
||||
// ------------------------------------------------------------------------
|
||||
create_parm
|
||||
(
|
||||
"Vj",
|
||||
"Junction potential, (default: 1.0)",
|
||||
PARM_NO_DISPLAY |
|
||||
PARM_OPTIMIZABLE |
|
||||
PARM_STATISTICAL,
|
||||
"StdFileFormSet",
|
||||
VOLTAGE_UNIT,
|
||||
prm("StdForm","")
|
||||
),
|
||||
|
||||
// ------------------------------------------------------------------------
|
||||
// M
|
||||
// ------------------------------------------------------------------------
|
||||
create_parm
|
||||
(
|
||||
"M",
|
||||
"Grading coefficient, (default: 0.5)",
|
||||
PARM_NO_DISPLAY |
|
||||
PARM_OPTIMIZABLE |
|
||||
PARM_STATISTICAL,
|
||||
"StdFileFormSet",
|
||||
UNITLESS_UNIT,
|
||||
prm("StdForm","")
|
||||
),
|
||||
|
||||
// ------------------------------------------------------------------------
|
||||
// Eg
|
||||
// ------------------------------------------------------------------------
|
||||
create_parm
|
||||
(
|
||||
"Eg",
|
||||
"Activation energy, (default: 1.1)",
|
||||
PARM_NO_DISPLAY |
|
||||
PARM_OPTIMIZABLE |
|
||||
PARM_STATISTICAL,
|
||||
"StdFileFormSet",
|
||||
UNITLESS_UNIT,
|
||||
prm("StdForm","")
|
||||
),
|
||||
|
||||
// ------------------------------------------------------------------------
|
||||
// Xti
|
||||
// ------------------------------------------------------------------------
|
||||
create_parm
|
||||
(
|
||||
"Xti",
|
||||
"Is temperature exponent (default: 3.3)",
|
||||
PARM_NO_DISPLAY |
|
||||
PARM_OPTIMIZABLE |
|
||||
PARM_STATISTICAL,
|
||||
"StdFileFormSet",
|
||||
UNITLESS_UNIT,
|
||||
prm("StdForm","")
|
||||
),
|
||||
|
||||
// ------------------------------------------------------------------------
|
||||
// Af
|
||||
// ------------------------------------------------------------------------
|
||||
create_parm
|
||||
(
|
||||
"Af",
|
||||
"Flicker noise exponent (default: 1.0)",
|
||||
PARM_NO_DISPLAY |
|
||||
PARM_OPTIMIZABLE |
|
||||
PARM_STATISTICAL,
|
||||
"StdFileFormSet",
|
||||
UNITLESS_UNIT,
|
||||
prm("StdForm","")
|
||||
),
|
||||
|
||||
// ------------------------------------------------------------------------
|
||||
// Kf
|
||||
// ------------------------------------------------------------------------
|
||||
create_parm
|
||||
(
|
||||
"Kf",
|
||||
"Flicker noise coefficient (default: 0.0)",
|
||||
PARM_NO_DISPLAY |
|
||||
PARM_OPTIMIZABLE |
|
||||
PARM_STATISTICAL,
|
||||
"StdFileFormSet",
|
||||
UNITLESS_UNIT,
|
||||
prm("StdForm","")
|
||||
),
|
||||
|
||||
// ------------------------------------------------------------------------
|
||||
// Fc
|
||||
// ------------------------------------------------------------------------
|
||||
create_parm
|
||||
(
|
||||
"Fc",
|
||||
"Forward bias junction parm (default: 0.5)",
|
||||
PARM_NO_DISPLAY |
|
||||
PARM_OPTIMIZABLE |
|
||||
PARM_STATISTICAL,
|
||||
"StdFileFormSet",
|
||||
UNITLESS_UNIT,
|
||||
prm("StdForm","")
|
||||
),
|
||||
|
||||
// ------------------------------------------------------------------------
|
||||
// Bv
|
||||
// ------------------------------------------------------------------------
|
||||
create_parm
|
||||
(
|
||||
"Bv",
|
||||
"Reverse breakdown voltage (default: 1e99)",
|
||||
PARM_NO_DISPLAY |
|
||||
PARM_OPTIMIZABLE |
|
||||
PARM_STATISTICAL,
|
||||
"StdFileFormSet",
|
||||
VOLTAGE_UNIT,
|
||||
prm("StdForm","")
|
||||
),
|
||||
|
||||
// ------------------------------------------------------------------------
|
||||
// Ibv
|
||||
// ------------------------------------------------------------------------
|
||||
create_parm
|
||||
(
|
||||
"IBv",
|
||||
"Reverse breakdown current (default: 1 mA)",
|
||||
PARM_NO_DISPLAY |
|
||||
PARM_OPTIMIZABLE |
|
||||
PARM_STATISTICAL,
|
||||
"StdFileFormSet",
|
||||
CURRENT_UNIT,
|
||||
prm("StdForm","")
|
||||
),
|
||||
|
||||
// ------------------------------------------------------------------------
|
||||
// _M
|
||||
// ------------------------------------------------------------------------
|
||||
create_parm
|
||||
(
|
||||
"_M",
|
||||
"Number of devices in parallel, (default: 1)",
|
||||
PARM_NO_DISPLAY,
|
||||
"StdFileFormSet",
|
||||
UNITLESS_UNIT,
|
||||
prm("StdForm","")
|
||||
)
|
||||
);
|
||||
Reference in New Issue
Block a user