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:
parent
d50fd1c42c
commit
1fe032a79b
|
|
@ -220,10 +220,14 @@ proc readspice {netfile} {
|
||||||
set pinname [lindex $infopair 0]
|
set pinname [lindex $infopair 0]
|
||||||
set pindir [lindex $infopair 1]
|
set pindir [lindex $infopair 1]
|
||||||
if {![catch {set pin [dict get $pindict $pinname]}]} {
|
if {![catch {set pin [dict get $pindict $pinname]}]} {
|
||||||
case $pindir {
|
# Only set pin class if the pin class is currently default
|
||||||
B {port $pin class inout}
|
set pinclass [port $pin class]
|
||||||
I {port $pin class input}
|
if {$pinclass == "default"} {
|
||||||
O {port $pin class output}
|
case $pindir {
|
||||||
|
B {port $pin class inout}
|
||||||
|
I {port $pin class input}
|
||||||
|
O {port $pin class output}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
} elseif {$pinname != ""} {
|
} elseif {$pinname != ""} {
|
||||||
puts stderr ".PININFO error: Pin $pinname not found."
|
puts stderr ".PININFO error: Pin $pinname not found."
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue