Corrected issue from github issue tracker #297, where "Import SPICE"

fails on instances with names containing brackets.
This commit is contained in:
Tim Edwards 2024-04-01 16:42:10 -04:00
parent bfd938b5e2
commit d0f6dab896
2 changed files with 4 additions and 2 deletions

View File

@ -1 +1 @@
8.3.466
8.3.467

View File

@ -334,7 +334,9 @@ proc magic::generate_layout_add {subname subpins complist library} {
}
set outparts {}
lappend outparts "magic::gencell $libdev $instname"
# Escape any brackets in the instance name, since it gets passed to "eval"
set minstname [string map {[ \\\[ ] \\\]} $instname]
lappend outparts "magic::gencell $libdev $minstname"
# Output all parameters. Parameters not used by the toolkit are
# ignored by the toolkit.