mirror of
https://github.com/RTimothyEdwards/magic.git
synced 2026-08-29 17:39:28 +02:00
way. The code as previously written was undermining other code written to avoid long run-times on ext2spice, and didn't solve at least one issue with unnecessary resistor shorts being added to the netlist output. The current solution fixes one underlying problem where a wrongly-placed parenthesis caused the "preferred net name" routine EFHNBest() not to be run, which prevented original node names from being preferred over their suffixed versions created by "extract unique". However, I also added code to EFbuild.c to merge unique nodes when the nodes are not really unique. The problem is caused by "extract unique" operating only on one level of hierarchy and being unable to see where nets may connect through subcircuits. That can be determined from the "merge" statements in the .ext file, and now the EFbuild routines will merge these "false unique" names back into the original net.