Skip to content

Vector instances (like C1[3..1] or M1[3:0]) cause problems in drc procedures #620

@StefanSchippers

Description

@StefanSchippers

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 ($...)

Metadata

Metadata

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions