mirror of
https://github.com/RTimothyEdwards/magic.git
synced 2026-10-06 09:53:00 +02:00
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:
+8
-4
@@ -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."
|
||||
|
||||
Reference in New Issue
Block a user