-
Notifications
You must be signed in to change notification settings - Fork 104
Description
IHP symbols have the following attribute set (example here is for a mim cap):
drc="mim_drc @name @symname @model @w @l"
After Xschem expands the '@' parameters the expression becomes (if using C1[3..1] as vectored instance name):
drc="mim_drc C1[3..1] cap_rfcmim cap_rfcmim 10.0e-6 10.0e-6"
this causes an error in the TCL interpreter as it tries to evaluate command 3..1
.
We need to protect all @name occurrences with curly braces:
drc="mim_drc {@name\} @symname @model @w @l
(backslash before closing '}' is needed to tell Xschem the '}' is not part of the @ parameter name).
see issue StefanSchippers/xschem#380
If you want to be even more on the safe side you might want to protect also @symname and @model.
This is however not needed if these parameters do not contain command substitution characters ([ ... ]) or variable substitution characters ($...)