Changed the readspice script to avoid changing pin direction from

a CDL file unless the existing pin direction is set to "default".
This is consistent with the way the LEF annotation works, as well.
This commit is contained in:
Tim Edwards 2020-10-27 15:39:12 -04:00
parent d50fd1c42c
commit 1fe032a79b
2 changed files with 9 additions and 5 deletions

View File

@ -1 +1 @@
8.3.73
8.3.74

View File

@ -220,10 +220,14 @@ proc readspice {netfile} {
set pinname [lindex $infopair 0]
set pindir [lindex $infopair 1]
if {![catch {set pin [dict get $pindict $pinname]}]} {
case $pindir {
B {port $pin class inout}
I {port $pin class input}
O {port $pin class output}
# Only set pin class if the pin class is currently default
set pinclass [port $pin class]
if {$pinclass == "default"} {
case $pindir {
B {port $pin class inout}
I {port $pin class input}
O {port $pin class output}
}
}
} elseif {$pinname != ""} {
puts stderr ".PININFO error: Pin $pinname not found."