Hi!
I have a hierarchical design and want to edit the parameter of a sub-circuit by using AEL (deeper background: install a callback function for the parameter and then set the value in the sub-circuit to this value).
I tried something like de_edit_item ("MyPart1.SubPart1"), but this seems not to work ...
Any hints? :-/
Best regards,
Martin.
I have a hierarchical design and want to edit the parameter of a sub-circuit by using AEL (deeper background: install a callback function for the parameter and then set the value in the sub-circuit to this value).
I tried something like de_edit_item ("MyPart1.SubPart1"), but this seems not to work ...
Any hints? :-/
Best regards,
Martin.
I guess you want to modify the subcircuit based on a parameter value.
Assume you have a subcircuit, mysub, with a parameter called C with a parameter callback defined. You placed mysub twice in a schematic. You have now got two instances of mysub, X1 and X2. If you change the value of X1.C the callback function is triggered. Assume we could figure out how to modify something withing mysub depending on the C value. This would not be very good since mysub is shared for all instances, e.g. X2 would be affected as well when you change mysub!
There are several possible workarounds for this:
R = 0.15 + C * 1000
R = if (C=10E-12) then 0.1 elseif (C<20E-12) then 0.15 else 0.2 endif
R = pwl(C,10E-12,0.1,20E-12,0.15,30E-12,0.17)