verilog_data-1 / OpenROAD /src /rcx /test /coordinates.py
SAIFIINDUSTRIES's picture
Upload folder using huggingface_hub
5cdf637 verified
Raw History Blame Contribute Delete
774 Bytes
from openroad import Design, Tech
import rcx_aux
import helpers
import via_45_resistance as via_45
test_nets = ""
tech = Tech()
tech.readLef("Nangate45/Nangate45.lef")
tech.readLiberty("Nangate45/Nangate45_typ.lib")
design = helpers.make_design(tech)
design.readDef("coordinates.def")
# Load via resistance info
via_45.set_resistance(tech)
rcx_aux.define_process_corner(design, ext_model_index=0, filename="X")
rcx_aux.set_extraction_rules_file(design, filename="45_patterns.rules")
rcx_aux.extract_parasitics(design, max_res=0, coupling_threshold=0.1)
spef_file = helpers.make_result_file("coordinates.spef")
rcx_aux.write_spef(design, filename=spef_file, nets=test_nets, coordinates=True)
helpers.diff_files("coordinates.spefok", spef_file, "^\\*(DATE|VERSION)")