Download OpenROAD/src/rcx/test/coordinates.py from SAIFIINDUSTRIES/verilog_data-1: direct link, hf CLI and curl.
- Browser
- Download file 774 Bytes
-
https://huggingface.co/datasets/SAIFIINDUSTRIES/verilog_data-1/resolve/main/OpenROAD/src/rcx/test/coordinates.py
- Command line
-
hf download hf://datasets/SAIFIINDUSTRIES/verilog_data-1/OpenROAD/src/rcx/test/coordinates.py
-
curl -L -o coordinates.py https://huggingface.co/datasets/SAIFIINDUSTRIES/verilog_data-1/resolve/main/OpenROAD/src/rcx/test/coordinates.py
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)") | |