You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Attached is a project showing how to pass parameters to a sub-circuit/model in Qucs-S/ngspice. There are a few conditions required to get everything to work.
The Spice model may need to be modified. If it contains ".PARAMS", .PARAMS must be removed. For the Spice model "VCRES1.lib" the original line was ".SUBCKT VCRES1 1 2 4 5 .PARAMS RVAL=10K" was changed to ".SUBCKT VCRES1 1 2 4 5 RVAL=10K".
If you want to alter a Spice model to add User alterable Parameters, change a fixed value like "10k" to "RVAL" and then add RVAL=10K. See "VCRES1.lib".
When making a subcircuit schematic with User alterable parameters, you must put the PARAMS info in BOTH the schematic AND symbol sections of the subcircuit schematic. See "74HCU04_lib.sch", "genericopa_sub.sch" and "VRES1.sch".
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Attached is a project showing how to pass parameters to a sub-circuit/model in Qucs-S/ngspice. There are a few conditions required to get everything to work.
The Spice model may need to be modified. If it contains ".PARAMS", .PARAMS must be removed. For the Spice model "VCRES1.lib" the original line was ".SUBCKT VCRES1 1 2 4 5 .PARAMS RVAL=10K" was changed to ".SUBCKT VCRES1 1 2 4 5 RVAL=10K".
If you want to alter a Spice model to add User alterable Parameters, change a fixed value like "10k" to "RVAL" and then add RVAL=10K. See "VCRES1.lib".
When making a subcircuit schematic with User alterable parameters, you must put the PARAMS info in BOTH the schematic AND symbol sections of the subcircuit schematic. See "74HCU04_lib.sch", "genericopa_sub.sch" and "VRES1.sch".
Parameter_Passing_prj.zip
Beta Was this translation helpful? Give feedback.
All reactions