Thanks Steve and Jim,
I have been using the suggestions you guys described here and both ideas
have been working well. I use
Edit->Properties->Cell Parameters to add a parameter on a device. The spice
template then allows me to netlist this parameter.
But there are a few bugs:
1. The Edit->Properties->Cell Parameters feature allows me to add only one
parameter. Once I add the first parameter the "Create New" button becomes
disabled and I cannot add any more parameters.
2. Just as Jim suggested, my spice template has an expression that
evaluates resistance value from sheetrho, L and W. However, that expression
never seems to get actually passed on to the resistor so the sim results
are not correct. Here is my netlist from Electric. I am using ngspice to
simulate it:
.param sheetrho = 100.0
.param W=5.0u
.param rval={sheetrho*5.0u/W}
Ryres@0 vin vout rval TC1=0.002
.param sheetrho = 100.0
.param W=5.0u
.param rval={sheetrho*10.0u/W}
Ryres@1 vout gnd rval TC1=0.002
* Spice Code nodes in cell cell 'R_divider{sch}'
vin vin 0 DC 1
.tran 1u 5m
.END
Theoretically my vout should be 2/3V per the above netlist. However when I
actually run the sim, ngspice reports vout as 1/2V. The vout voltage stays
1/2V for any value of L I choose.
Any further help you can provide for these two issues will be highly
appreciated.
Yusuf
--
You received this message because you are subscribed to the Google Groups
"Electric VLSI Editor" group.
To view this discussion on the web visit
https://groups.google.com/d/msg/electricvlsi/-/NL-W1HVW_jMJ.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/electricvlsi?hl=en.