Skip to content

Commit d0f6dab

Browse files
Corrected issue from github issue tracker #297, where "Import SPICE"
fails on instances with names containing brackets.
1 parent bfd938b commit d0f6dab

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

VERSION

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
8.3.466
1+
8.3.467

tcltk/toolkit.tcl

+3-1
Original file line numberDiff line numberDiff line change
@@ -334,7 +334,9 @@ proc magic::generate_layout_add {subname subpins complist library} {
334334
}
335335

336336
set outparts {}
337-
lappend outparts "magic::gencell $libdev $instname"
337+
# Escape any brackets in the instance name, since it gets passed to "eval"
338+
set minstname [string map {[ \\\[ ] \\\]} $instname]
339+
lappend outparts "magic::gencell $libdev $minstname"
338340

339341
# Output all parameters. Parameters not used by the toolkit are
340342
# ignored by the toolkit.

0 commit comments

Comments
 (0)