Added BJT component with 2 models
This commit is contained in:
@@ -0,0 +1,202 @@
|
||||
// --------------------------------------------------------------------------------------
|
||||
// Creating item definition for bipolar NPN transistor
|
||||
// --------------------------------------------------------------------------------------
|
||||
create_item
|
||||
(
|
||||
"mr_bjt_npn", // name
|
||||
"Nonlinear Bipolar Transistor, NPN", // description
|
||||
"Q", // prefix
|
||||
0, // attributes
|
||||
NULL, // priority
|
||||
NULL, // icon name
|
||||
standard_dialog, // dialog name
|
||||
"*", // dialog data
|
||||
CmpModelNetlistFmt, // netlist format string
|
||||
"BJT", // 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
|
||||
|
||||
create_parm
|
||||
(
|
||||
"Model",
|
||||
"Model instance name",
|
||||
0,
|
||||
"StdFileFormSet",
|
||||
UNITLESS_UNIT,
|
||||
prm("StdForm","")
|
||||
),
|
||||
|
||||
create_parm
|
||||
(
|
||||
"Area",
|
||||
"Scaling Factor, (default: 1.0)",
|
||||
PARM_OPTIMIZABLE | PARM_STATISTICAL | PARM_NO_DISPLAY,
|
||||
"StdFileFormSet",
|
||||
UNITLESS_UNIT,
|
||||
prm("StdForm","")
|
||||
),
|
||||
|
||||
create_parm
|
||||
(
|
||||
"Region",
|
||||
"DC operating region, 0=off, 1=on, 2=rev, 3=sat, (default: on)",
|
||||
PARM_NO_DISPLAY,
|
||||
"StdFileFormSet",
|
||||
UNITLESS_UNIT,
|
||||
prm("StdForm","")
|
||||
),
|
||||
|
||||
create_parm
|
||||
(
|
||||
"Temp",
|
||||
"Device operating temperature, (default: 25)",
|
||||
PARM_OPTIMIZABLE | PARM_STATISTICAL | PARM_NO_DISPLAY,
|
||||
"StdFileFormSet",
|
||||
TEMPERATURE_UNIT,
|
||||
prm("StdForm","")
|
||||
),
|
||||
|
||||
create_parm
|
||||
(
|
||||
"Trise",
|
||||
"Temperature rise over ambient",
|
||||
PARM_OPTIMIZABLE | PARM_STATISTICAL | PARM_NO_DISPLAY,
|
||||
"StdFileFormSet",
|
||||
TEMPERATURE_UNIT,
|
||||
prm("StdForm","")
|
||||
),
|
||||
|
||||
create_parm
|
||||
(
|
||||
"Mode",
|
||||
"Simulation Mode for This Device, (default: NONLINEAR)",
|
||||
PARM_NO_DISPLAY,
|
||||
"simtype_mode",
|
||||
UNITLESS_UNIT,
|
||||
prm("simtype_nonlin","")
|
||||
),
|
||||
|
||||
create_parm
|
||||
(
|
||||
"Noise",
|
||||
"Noise generation option; yes=1, no=0 ( default: yes ) ",
|
||||
PARM_NO_DISPLAY,
|
||||
"sim_enum_on_off_list_form",
|
||||
UNITLESS_UNIT,prm("Yes","yes")
|
||||
),
|
||||
|
||||
create_parm
|
||||
(
|
||||
"_M",
|
||||
"Number of devices in parallel, (default: 1)",
|
||||
PARM_NO_DISPLAY,
|
||||
"StdFileFormSet",
|
||||
UNITLESS_UNIT,
|
||||
prm("StdForm","")
|
||||
)
|
||||
);
|
||||
|
||||
// --------------------------------------------------------------------------------------
|
||||
// Creating item definition for bipolar NPN transistor
|
||||
// --------------------------------------------------------------------------------------
|
||||
create_item
|
||||
(
|
||||
"mr_bjt_pnp", // name
|
||||
"Nonlinear Bipolar Transistor, PNP", // description
|
||||
"Q", // prefix
|
||||
0, // attributes
|
||||
NULL, // priority
|
||||
NULL, // icon name
|
||||
standard_dialog, // dialog name
|
||||
"*", // dialog data
|
||||
CmpModelNetlistFmt, // netlist format string
|
||||
"*", // 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
|
||||
|
||||
create_parm
|
||||
(
|
||||
"Model",
|
||||
"Model instance name",
|
||||
0,
|
||||
"StdFileFormSet",
|
||||
UNITLESS_UNIT,
|
||||
prm("StdForm","")
|
||||
),
|
||||
|
||||
create_parm
|
||||
(
|
||||
"Area",
|
||||
"Scaling Factor, (default: 1.0)",
|
||||
PARM_OPTIMIZABLE | PARM_STATISTICAL | PARM_NO_DISPLAY,
|
||||
"StdFileFormSet",
|
||||
UNITLESS_UNIT,
|
||||
prm("StdForm","")
|
||||
),
|
||||
|
||||
create_parm
|
||||
(
|
||||
"Region",
|
||||
"DC operating region, 0=off, 1=on, 2=rev, 3=sat, (default: on)",
|
||||
PARM_NO_DISPLAY,
|
||||
"StdFileFormSet",
|
||||
UNITLESS_UNIT,
|
||||
prm("StdForm","")
|
||||
),
|
||||
|
||||
create_parm
|
||||
(
|
||||
"Temp",
|
||||
"Device operating temperature, (default: 25)",
|
||||
PARM_OPTIMIZABLE | PARM_STATISTICAL | PARM_NO_DISPLAY,
|
||||
"StdFileFormSet",
|
||||
TEMPERATURE_UNIT,
|
||||
prm("StdForm","")
|
||||
),
|
||||
|
||||
create_parm
|
||||
(
|
||||
"Trise",
|
||||
"Temperature rise over ambient",
|
||||
PARM_OPTIMIZABLE | PARM_STATISTICAL | PARM_NO_DISPLAY,
|
||||
"StdFileFormSet",
|
||||
TEMPERATURE_UNIT,
|
||||
prm("StdForm","")
|
||||
),
|
||||
|
||||
create_parm
|
||||
(
|
||||
"Mode",
|
||||
"Simulation Mode for This Device, (default: NONLINEAR)",
|
||||
PARM_NO_DISPLAY,
|
||||
"simtype_mode",
|
||||
UNITLESS_UNIT,
|
||||
prm("simtype_nonlin","")
|
||||
),
|
||||
|
||||
create_parm
|
||||
(
|
||||
"Noise",
|
||||
"Noise generation option; yes=1, no=0 ( default: yes ) ",
|
||||
PARM_NO_DISPLAY,
|
||||
"sim_enum_on_off_list_form",
|
||||
UNITLESS_UNIT,prm("Yes","yes")
|
||||
),
|
||||
|
||||
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