Skip to content

Commit 3eae4ad

Browse files
authored
fix(spectre): escape ports in subckt declarations (#441)
1 parent bad9503 commit 3eae4ad

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tools/spectre/src/lib.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -1081,10 +1081,10 @@ impl HasSpiceLikeNetlist for Spectre {
10811081
for sig in ports {
10821082
if let Some(width) = sig.width {
10831083
for i in 0..width {
1084-
write!(out, " {}\\[{}\\]", sig.name, i)?;
1084+
write!(out, " {}\\[{}\\]", Spectre::escape_identifier(&sig.name), i)?;
10851085
}
10861086
} else {
1087-
write!(out, " {}", sig.name)?;
1087+
write!(out, " {}", Spectre::escape_identifier(&sig.name))?;
10881088
}
10891089
}
10901090
write!(out, " )")?;

0 commit comments

Comments
 (0)