cf-precheck 1.2.0__tar.gz → 1.3.2__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {cf_precheck-1.2.0 → cf_precheck-1.3.2}/PKG-INFO +2 -2
- cf_precheck-1.3.2/pyproject.toml +40 -0
- cf_precheck-1.3.2/src/cf_precheck/__init__.py +1 -0
- cf_precheck-1.3.2/src/cf_precheck/_warning_filters.py +26 -0
- cf_precheck-1.3.2/src/cf_precheck/checks/_oeb_report.py +374 -0
- cf_precheck-1.3.2/src/cf_precheck/checks/oeb.py +94 -0
- {cf_precheck-1.2.0 → cf_precheck-1.3.2}/src/cf_precheck/results.py +8 -1
- {cf_precheck-1.2.0 → cf_precheck-1.3.2}/src/cf_precheck/runner.py +28 -5
- cf_precheck-1.3.2/tests/__init__.py +0 -0
- cf_precheck-1.3.2/tests/checks/__init__.py +0 -0
- cf_precheck-1.3.2/tests/checks/test_oeb_report.py +194 -0
- cf_precheck-1.3.2/tests/test_runner_warnings.py +40 -0
- cf_precheck-1.2.0/pyproject.toml +0 -29
- cf_precheck-1.2.0/src/cf_precheck/__init__.py +0 -1
- cf_precheck-1.2.0/src/cf_precheck/checks/oeb.py +0 -49
- {cf_precheck-1.2.0 → cf_precheck-1.3.2}/.github/workflows/precheck_test.yml +0 -0
- {cf_precheck-1.2.0 → cf_precheck-1.3.2}/.github/workflows/publish.yml +0 -0
- {cf_precheck-1.2.0 → cf_precheck-1.3.2}/.gitignore +0 -0
- {cf_precheck-1.2.0 → cf_precheck-1.3.2}/LICENSE +0 -0
- {cf_precheck-1.2.0 → cf_precheck-1.3.2}/README.md +0 -0
- {cf_precheck-1.2.0 → cf_precheck-1.3.2}/debug_precheck.md +0 -0
- {cf_precheck-1.2.0 → cf_precheck-1.3.2}/dependencies/Dockerfile +0 -0
- {cf_precheck-1.2.0 → cf_precheck-1.3.2}/dependencies/build-docker.sh +0 -0
- {cf_precheck-1.2.0 → cf_precheck-1.3.2}/dependencies/hooks/build +0 -0
- {cf_precheck-1.2.0 → cf_precheck-1.3.2}/mpw_precheck.py +0 -0
- {cf_precheck-1.2.0 → cf_precheck-1.3.2}/src/cf_precheck/__main__.py +0 -0
- {cf_precheck-1.2.0 → cf_precheck-1.3.2}/src/cf_precheck/_default_content/gds/user_analog_project_wrapper.gds +0 -0
- {cf_precheck-1.2.0 → cf_precheck-1.3.2}/src/cf_precheck/_default_content/gds/user_project_wrapper_empty_gf180mcu.gds +0 -0
- {cf_precheck-1.2.0 → cf_precheck-1.3.2}/src/cf_precheck/_default_content/gds/user_project_wrapper_mini4_empty.gds +0 -0
- {cf_precheck-1.2.0 → cf_precheck-1.3.2}/src/cf_precheck/be_checks/README.md +0 -0
- {cf_precheck-1.2.0 → cf_precheck-1.3.2}/src/cf_precheck/be_checks/check_extraction +0 -0
- {cf_precheck-1.2.0 → cf_precheck-1.3.2}/src/cf_precheck/be_checks/get_location +0 -0
- {cf_precheck-1.2.0 → cf_precheck-1.3.2}/src/cf_precheck/be_checks/lvs_config.md +0 -0
- {cf_precheck-1.2.0 → cf_precheck-1.3.2}/src/cf_precheck/be_checks/run_be_checks +0 -0
- {cf_precheck-1.2.0 → cf_precheck-1.3.2}/src/cf_precheck/be_checks/run_cvc +0 -0
- {cf_precheck-1.2.0 → cf_precheck-1.3.2}/src/cf_precheck/be_checks/run_extract +0 -0
- {cf_precheck-1.2.0 → cf_precheck-1.3.2}/src/cf_precheck/be_checks/run_full_lvs +0 -0
- {cf_precheck-1.2.0 → cf_precheck-1.3.2}/src/cf_precheck/be_checks/run_hier_check +0 -0
- {cf_precheck-1.2.0 → cf_precheck-1.3.2}/src/cf_precheck/be_checks/run_oeb_check +0 -0
- {cf_precheck-1.2.0 → cf_precheck-1.3.2}/src/cf_precheck/be_checks/run_openframe_check +0 -0
- {cf_precheck-1.2.0 → cf_precheck-1.3.2}/src/cf_precheck/be_checks/run_scheck +0 -0
- {cf_precheck-1.2.0 → cf_precheck-1.3.2}/src/cf_precheck/be_checks/scripts/ext.hier.awk +0 -0
- {cf_precheck-1.2.0 → cf_precheck-1.3.2}/src/cf_precheck/be_checks/scripts/floating.awk +0 -0
- {cf_precheck-1.2.0 → cf_precheck-1.3.2}/src/cf_precheck/be_checks/scripts/merge_short.awk +0 -0
- {cf_precheck-1.2.0 → cf_precheck-1.3.2}/src/cf_precheck/be_checks/scripts/remove_disconnect.awk +0 -0
- {cf_precheck-1.2.0 → cf_precheck-1.3.2}/src/cf_precheck/be_checks/tech/gf180mcuC/cvc.models +0 -0
- {cf_precheck-1.2.0 → cf_precheck-1.3.2}/src/cf_precheck/be_checks/tech/gf180mcuC/cvc.power.caravan +0 -0
- {cf_precheck-1.2.0 → cf_precheck-1.3.2}/src/cf_precheck/be_checks/tech/gf180mcuC/cvc.power.caravel +0 -0
- {cf_precheck-1.2.0 → cf_precheck-1.3.2}/src/cf_precheck/be_checks/tech/gf180mcuC/cvc.power.user_analog_project_wrapper +0 -0
- {cf_precheck-1.2.0 → cf_precheck-1.3.2}/src/cf_precheck/be_checks/tech/gf180mcuC/cvc.power.user_project_wrapper +0 -0
- {cf_precheck-1.2.0 → cf_precheck-1.3.2}/src/cf_precheck/be_checks/tech/gf180mcuC/cvcrc +0 -0
- {cf_precheck-1.2.0 → cf_precheck-1.3.2}/src/cf_precheck/be_checks/tech/gf180mcuC/gf180mcuC.tech +0 -0
- {cf_precheck-1.2.0 → cf_precheck-1.3.2}/src/cf_precheck/be_checks/tech/gf180mcuC/gf180mcuC_setup.tcl +0 -0
- {cf_precheck-1.2.0 → cf_precheck-1.3.2}/src/cf_precheck/be_checks/tech/gf180mcuC/known_abstract_filter.awk +0 -0
- {cf_precheck-1.2.0 → cf_precheck-1.3.2}/src/cf_precheck/be_checks/tech/gf180mcuC/lvs_config.base.json +0 -0
- {cf_precheck-1.2.0 → cf_precheck-1.3.2}/src/cf_precheck/be_checks/tech/gf180mcuC/lvs_config.caravel.json +0 -0
- {cf_precheck-1.2.0 → cf_precheck-1.3.2}/src/cf_precheck/be_checks/tech/gf180mcuC/lvs_config.caravel_core.json +0 -0
- {cf_precheck-1.2.0 → cf_precheck-1.3.2}/src/cf_precheck/be_checks/tech/gf180mcuC/lvs_config.chip_io.json +0 -0
- {cf_precheck-1.2.0 → cf_precheck-1.3.2}/src/cf_precheck/be_checks/tech/gf180mcuC/lvs_config.sram256x8m8wm1.json +0 -0
- {cf_precheck-1.2.0 → cf_precheck-1.3.2}/src/cf_precheck/be_checks/tech/gf180mcuC/lvs_config.user_project_wrapper.json +0 -0
- {cf_precheck-1.2.0 → cf_precheck-1.3.2}/src/cf_precheck/be_checks/tech/gf180mcuC/remove_well.sed +0 -0
- {cf_precheck-1.2.0 → cf_precheck-1.3.2}/src/cf_precheck/be_checks/tech/gf180mcuC/spi2cdl +0 -0
- {cf_precheck-1.2.0 → cf_precheck-1.3.2}/src/cf_precheck/be_checks/tech/gf180mcuD/cvc.models +0 -0
- {cf_precheck-1.2.0 → cf_precheck-1.3.2}/src/cf_precheck/be_checks/tech/gf180mcuD/cvc.power.caravan +0 -0
- {cf_precheck-1.2.0 → cf_precheck-1.3.2}/src/cf_precheck/be_checks/tech/gf180mcuD/cvc.power.caravel +0 -0
- {cf_precheck-1.2.0 → cf_precheck-1.3.2}/src/cf_precheck/be_checks/tech/gf180mcuD/cvc.power.user_analog_project_wrapper +0 -0
- {cf_precheck-1.2.0 → cf_precheck-1.3.2}/src/cf_precheck/be_checks/tech/gf180mcuD/cvc.power.user_project_wrapper +0 -0
- {cf_precheck-1.2.0 → cf_precheck-1.3.2}/src/cf_precheck/be_checks/tech/gf180mcuD/cvcrc +0 -0
- {cf_precheck-1.2.0 → cf_precheck-1.3.2}/src/cf_precheck/be_checks/tech/gf180mcuD/gf180mcuD.tech +0 -0
- {cf_precheck-1.2.0 → cf_precheck-1.3.2}/src/cf_precheck/be_checks/tech/gf180mcuD/gf180mcuD.tech.446 +0 -0
- {cf_precheck-1.2.0 → cf_precheck-1.3.2}/src/cf_precheck/be_checks/tech/gf180mcuD/gf180mcuD_setup.tcl +0 -0
- {cf_precheck-1.2.0 → cf_precheck-1.3.2}/src/cf_precheck/be_checks/tech/gf180mcuD/known_abstract_filter.awk +0 -0
- {cf_precheck-1.2.0 → cf_precheck-1.3.2}/src/cf_precheck/be_checks/tech/gf180mcuD/lvs_config.base.json +0 -0
- {cf_precheck-1.2.0 → cf_precheck-1.3.2}/src/cf_precheck/be_checks/tech/gf180mcuD/lvs_config.caravel.json +0 -0
- {cf_precheck-1.2.0 → cf_precheck-1.3.2}/src/cf_precheck/be_checks/tech/gf180mcuD/lvs_config.caravel_core.json +0 -0
- {cf_precheck-1.2.0 → cf_precheck-1.3.2}/src/cf_precheck/be_checks/tech/gf180mcuD/lvs_config.chip_io.json +0 -0
- {cf_precheck-1.2.0 → cf_precheck-1.3.2}/src/cf_precheck/be_checks/tech/gf180mcuD/lvs_config.sram.json +0 -0
- {cf_precheck-1.2.0 → cf_precheck-1.3.2}/src/cf_precheck/be_checks/tech/gf180mcuD/lvs_config.sram256x8m8wm1.json +0 -0
- {cf_precheck-1.2.0 → cf_precheck-1.3.2}/src/cf_precheck/be_checks/tech/gf180mcuD/lvs_config.sram512x8m8wm1.json +0 -0
- {cf_precheck-1.2.0 → cf_precheck-1.3.2}/src/cf_precheck/be_checks/tech/gf180mcuD/lvs_config.user_project_wrapper.json +0 -0
- {cf_precheck-1.2.0 → cf_precheck-1.3.2}/src/cf_precheck/be_checks/tech/gf180mcuD/remove_well.sed +0 -0
- {cf_precheck-1.2.0 → cf_precheck-1.3.2}/src/cf_precheck/be_checks/tech/gf180mcuD/spi2cdl +0 -0
- {cf_precheck-1.2.0 → cf_precheck-1.3.2}/src/cf_precheck/be_checks/tech/magicrc +0 -0
- {cf_precheck-1.2.0 → cf_precheck-1.3.2}/src/cf_precheck/be_checks/tech/sky130A/cvc.models +0 -0
- {cf_precheck-1.2.0 → cf_precheck-1.3.2}/src/cf_precheck/be_checks/tech/sky130A/cvc.power.caravan +0 -0
- {cf_precheck-1.2.0 → cf_precheck-1.3.2}/src/cf_precheck/be_checks/tech/sky130A/cvc.power.caravel +0 -0
- {cf_precheck-1.2.0 → cf_precheck-1.3.2}/src/cf_precheck/be_checks/tech/sky130A/cvc.power.openframe_project_wrapper +0 -0
- {cf_precheck-1.2.0 → cf_precheck-1.3.2}/src/cf_precheck/be_checks/tech/sky130A/cvc.power.user_analog_project_wrapper +0 -0
- {cf_precheck-1.2.0 → cf_precheck-1.3.2}/src/cf_precheck/be_checks/tech/sky130A/cvc.power.user_project_wrapper +0 -0
- {cf_precheck-1.2.0 → cf_precheck-1.3.2}/src/cf_precheck/be_checks/tech/sky130A/cvc.power.user_project_wrapper_mini4 +0 -0
- {cf_precheck-1.2.0 → cf_precheck-1.3.2}/src/cf_precheck/be_checks/tech/sky130A/cvcrc +0 -0
- {cf_precheck-1.2.0 → cf_precheck-1.3.2}/src/cf_precheck/be_checks/tech/sky130A/fix_spice +0 -0
- {cf_precheck-1.2.0 → cf_precheck-1.3.2}/src/cf_precheck/be_checks/tech/sky130A/known.undefined.layer +0 -0
- {cf_precheck-1.2.0 → cf_precheck-1.3.2}/src/cf_precheck/be_checks/tech/sky130A/known_abstract_filter.awk +0 -0
- {cf_precheck-1.2.0 → cf_precheck-1.3.2}/src/cf_precheck/be_checks/tech/sky130A/lvs_config.base.json +0 -0
- {cf_precheck-1.2.0 → cf_precheck-1.3.2}/src/cf_precheck/be_checks/tech/sky130A/lvs_config.caravan_core.json +0 -0
- {cf_precheck-1.2.0 → cf_precheck-1.3.2}/src/cf_precheck/be_checks/tech/sky130A/lvs_config.caravel.json +0 -0
- {cf_precheck-1.2.0 → cf_precheck-1.3.2}/src/cf_precheck/be_checks/tech/sky130A/lvs_config.caravel_core.json +0 -0
- {cf_precheck-1.2.0 → cf_precheck-1.3.2}/src/cf_precheck/be_checks/tech/sky130A/lvs_config.chip_io.json +0 -0
- {cf_precheck-1.2.0 → cf_precheck-1.3.2}/src/cf_precheck/be_checks/tech/sky130A/lvs_config.chip_io_alt.json +0 -0
- {cf_precheck-1.2.0 → cf_precheck-1.3.2}/src/cf_precheck/be_checks/tech/sky130A/lvs_config.openframe_project_wrapper.json +0 -0
- {cf_precheck-1.2.0 → cf_precheck-1.3.2}/src/cf_precheck/be_checks/tech/sky130A/lvs_config.sram.json +0 -0
- {cf_precheck-1.2.0 → cf_precheck-1.3.2}/src/cf_precheck/be_checks/tech/sky130A/lvs_config.user_analog_project_wrapper.json +0 -0
- {cf_precheck-1.2.0 → cf_precheck-1.3.2}/src/cf_precheck/be_checks/tech/sky130A/lvs_config.user_project_wrapper.json +0 -0
- {cf_precheck-1.2.0 → cf_precheck-1.3.2}/src/cf_precheck/be_checks/tech/sky130A/lvs_config.user_project_wrapper_mini4.json +0 -0
- {cf_precheck-1.2.0 → cf_precheck-1.3.2}/src/cf_precheck/be_checks/tech/sky130A/remove_well.sed +0 -0
- {cf_precheck-1.2.0 → cf_precheck-1.3.2}/src/cf_precheck/be_checks/tech/sky130A/sky130A.tech +0 -0
- {cf_precheck-1.2.0 → cf_precheck-1.3.2}/src/cf_precheck/be_checks/tech/sky130A/sky130A_setup.tcl +0 -0
- {cf_precheck-1.2.0 → cf_precheck-1.3.2}/src/cf_precheck/be_checks/tech/sky130A/spi2cdl +0 -0
- {cf_precheck-1.2.0 → cf_precheck-1.3.2}/src/cf_precheck/be_checks/tech/sky130A/subcutout.txt +0 -0
- {cf_precheck-1.2.0 → cf_precheck-1.3.2}/src/cf_precheck/be_checks/tech/sky130B/cvc.models +0 -0
- {cf_precheck-1.2.0 → cf_precheck-1.3.2}/src/cf_precheck/be_checks/tech/sky130B/cvc.power.caravan +0 -0
- {cf_precheck-1.2.0 → cf_precheck-1.3.2}/src/cf_precheck/be_checks/tech/sky130B/cvc.power.caravel +0 -0
- {cf_precheck-1.2.0 → cf_precheck-1.3.2}/src/cf_precheck/be_checks/tech/sky130B/cvc.power.openframe_project_wrapper +0 -0
- {cf_precheck-1.2.0 → cf_precheck-1.3.2}/src/cf_precheck/be_checks/tech/sky130B/cvc.power.user_analog_project_wrapper +0 -0
- {cf_precheck-1.2.0 → cf_precheck-1.3.2}/src/cf_precheck/be_checks/tech/sky130B/cvc.power.user_project_wrapper +0 -0
- {cf_precheck-1.2.0 → cf_precheck-1.3.2}/src/cf_precheck/be_checks/tech/sky130B/cvc.power.user_project_wrapper_mini4 +0 -0
- {cf_precheck-1.2.0 → cf_precheck-1.3.2}/src/cf_precheck/be_checks/tech/sky130B/cvcrc +0 -0
- {cf_precheck-1.2.0 → cf_precheck-1.3.2}/src/cf_precheck/be_checks/tech/sky130B/fix_spice +0 -0
- {cf_precheck-1.2.0 → cf_precheck-1.3.2}/src/cf_precheck/be_checks/tech/sky130B/known.undefined.layer +0 -0
- {cf_precheck-1.2.0 → cf_precheck-1.3.2}/src/cf_precheck/be_checks/tech/sky130B/known_abstract_filter.awk +0 -0
- {cf_precheck-1.2.0 → cf_precheck-1.3.2}/src/cf_precheck/be_checks/tech/sky130B/lvs_config.base.json +0 -0
- {cf_precheck-1.2.0 → cf_precheck-1.3.2}/src/cf_precheck/be_checks/tech/sky130B/lvs_config.caravan_core.json +0 -0
- {cf_precheck-1.2.0 → cf_precheck-1.3.2}/src/cf_precheck/be_checks/tech/sky130B/lvs_config.caravel.json +0 -0
- {cf_precheck-1.2.0 → cf_precheck-1.3.2}/src/cf_precheck/be_checks/tech/sky130B/lvs_config.caravel_core.json +0 -0
- {cf_precheck-1.2.0 → cf_precheck-1.3.2}/src/cf_precheck/be_checks/tech/sky130B/lvs_config.chip_io.json +0 -0
- {cf_precheck-1.2.0 → cf_precheck-1.3.2}/src/cf_precheck/be_checks/tech/sky130B/lvs_config.chip_io_alt.json +0 -0
- {cf_precheck-1.2.0 → cf_precheck-1.3.2}/src/cf_precheck/be_checks/tech/sky130B/lvs_config.openframe_project_wrapper.json +0 -0
- {cf_precheck-1.2.0 → cf_precheck-1.3.2}/src/cf_precheck/be_checks/tech/sky130B/lvs_config.sram.json +0 -0
- {cf_precheck-1.2.0 → cf_precheck-1.3.2}/src/cf_precheck/be_checks/tech/sky130B/lvs_config.user_analog_project_wrapper.json +0 -0
- {cf_precheck-1.2.0 → cf_precheck-1.3.2}/src/cf_precheck/be_checks/tech/sky130B/lvs_config.user_project_wrapper.json +0 -0
- {cf_precheck-1.2.0 → cf_precheck-1.3.2}/src/cf_precheck/be_checks/tech/sky130B/lvs_config.user_project_wrapper_mini4.json +0 -0
- {cf_precheck-1.2.0 → cf_precheck-1.3.2}/src/cf_precheck/be_checks/tech/sky130B/remove_well.sed +0 -0
- {cf_precheck-1.2.0 → cf_precheck-1.3.2}/src/cf_precheck/be_checks/tech/sky130B/sky130B.tech +0 -0
- {cf_precheck-1.2.0 → cf_precheck-1.3.2}/src/cf_precheck/be_checks/tech/sky130B/sky130B_setup.tcl +0 -0
- {cf_precheck-1.2.0 → cf_precheck-1.3.2}/src/cf_precheck/be_checks/tech/sky130B/spi2cdl +0 -0
- {cf_precheck-1.2.0 → cf_precheck-1.3.2}/src/cf_precheck/be_checks/tech/sky130B/subcutout.txt +0 -0
- {cf_precheck-1.2.0 → cf_precheck-1.3.2}/src/cf_precheck/be_checks/tech/soft.lvs.script +0 -0
- {cf_precheck-1.2.0 → cf_precheck-1.3.2}/src/cf_precheck/check_manager.py +0 -0
- {cf_precheck-1.2.0 → cf_precheck-1.3.2}/src/cf_precheck/checks/__init__.py +0 -0
- {cf_precheck-1.2.0 → cf_precheck-1.3.2}/src/cf_precheck/checks/gpio_defines.py +0 -0
- {cf_precheck-1.2.0 → cf_precheck-1.3.2}/src/cf_precheck/checks/illegal_cellname.py +0 -0
- {cf_precheck-1.2.0 → cf_precheck-1.3.2}/src/cf_precheck/checks/klayout_drc.py +0 -0
- {cf_precheck-1.2.0 → cf_precheck-1.3.2}/src/cf_precheck/checks/lvs.py +0 -0
- {cf_precheck-1.2.0 → cf_precheck-1.3.2}/src/cf_precheck/checks/magic_converters/__init__.py +0 -0
- {cf_precheck-1.2.0 → cf_precheck-1.3.2}/src/cf_precheck/checks/magic_converters/magic_drc_to_rdb.py +0 -0
- {cf_precheck-1.2.0 → cf_precheck-1.3.2}/src/cf_precheck/checks/magic_converters/magic_drc_to_tcl.py +0 -0
- {cf_precheck-1.2.0 → cf_precheck-1.3.2}/src/cf_precheck/checks/magic_converters/magic_drc_to_tr_drc.py +0 -0
- {cf_precheck-1.2.0 → cf_precheck-1.3.2}/src/cf_precheck/checks/magic_converters/tr2klayout.py +0 -0
- {cf_precheck-1.2.0 → cf_precheck-1.3.2}/src/cf_precheck/checks/magic_drc.py +0 -0
- {cf_precheck-1.2.0 → cf_precheck-1.3.2}/src/cf_precheck/checks/metal.py +0 -0
- {cf_precheck-1.2.0 → cf_precheck-1.3.2}/src/cf_precheck/checks/pdn.py +0 -0
- {cf_precheck-1.2.0 → cf_precheck-1.3.2}/src/cf_precheck/checks/spike.py +0 -0
- {cf_precheck-1.2.0 → cf_precheck-1.3.2}/src/cf_precheck/checks/topcell.py +0 -0
- {cf_precheck-1.2.0 → cf_precheck-1.3.2}/src/cf_precheck/checks/verilog_assets/gpio_modes_base.v +0 -0
- {cf_precheck-1.2.0 → cf_precheck-1.3.2}/src/cf_precheck/checks/verilog_assets/gpio_modes_observe.v +0 -0
- {cf_precheck-1.2.0 → cf_precheck-1.3.2}/src/cf_precheck/checks/xor.py +0 -0
- {cf_precheck-1.2.0 → cf_precheck-1.3.2}/src/cf_precheck/cli.py +0 -0
- {cf_precheck-1.2.0 → cf_precheck-1.3.2}/src/cf_precheck/config.py +0 -0
- {cf_precheck-1.2.0 → cf_precheck-1.3.2}/src/cf_precheck/drc_scripts/erase_box.tcl +0 -0
- {cf_precheck-1.2.0 → cf_precheck-1.3.2}/src/cf_precheck/drc_scripts/erase_box_gf180mcu.tcl +0 -0
- {cf_precheck-1.2.0 → cf_precheck-1.3.2}/src/cf_precheck/drc_scripts/erase_box_mini4.tcl +0 -0
- {cf_precheck-1.2.0 → cf_precheck-1.3.2}/src/cf_precheck/drc_scripts/erase_box_openframe.tcl +0 -0
- {cf_precheck-1.2.0 → cf_precheck-1.3.2}/src/cf_precheck/drc_scripts/gdsArea0 +0 -0
- {cf_precheck-1.2.0 → cf_precheck-1.3.2}/src/cf_precheck/drc_scripts/gds_size.rb +0 -0
- {cf_precheck-1.2.0 → cf_precheck-1.3.2}/src/cf_precheck/drc_scripts/gf180mcuC_mr.drc +0 -0
- {cf_precheck-1.2.0 → cf_precheck-1.3.2}/src/cf_precheck/drc_scripts/gf180mcuD_mr.drc +0 -0
- {cf_precheck-1.2.0 → cf_precheck-1.3.2}/src/cf_precheck/drc_scripts/gf180mcu_density.lydrc +0 -0
- {cf_precheck-1.2.0 → cf_precheck-1.3.2}/src/cf_precheck/drc_scripts/magic_drc_check.tcl +0 -0
- {cf_precheck-1.2.0 → cf_precheck-1.3.2}/src/cf_precheck/drc_scripts/met_min_ca_density.lydrc +0 -0
- {cf_precheck-1.2.0 → cf_precheck-1.3.2}/src/cf_precheck/drc_scripts/pin_label_purposes_overlapping_drawing.rb.drc +0 -0
- {cf_precheck-1.2.0 → cf_precheck-1.3.2}/src/cf_precheck/drc_scripts/sky130A.magicrc +0 -0
- {cf_precheck-1.2.0 → cf_precheck-1.3.2}/src/cf_precheck/drc_scripts/sky130A_mr.drc +0 -0
- {cf_precheck-1.2.0 → cf_precheck-1.3.2}/src/cf_precheck/drc_scripts/sky130B.magicrc +0 -0
- {cf_precheck-1.2.0 → cf_precheck-1.3.2}/src/cf_precheck/drc_scripts/sky130B_mr.drc +0 -0
- {cf_precheck-1.2.0 → cf_precheck-1.3.2}/src/cf_precheck/drc_scripts/xor.rb.drc +0 -0
- {cf_precheck-1.2.0 → cf_precheck-1.3.2}/src/cf_precheck/drc_scripts/zeroarea.rb.drc +0 -0
- {cf_precheck-1.2.0 → cf_precheck-1.3.2}/src/cf_precheck/logging.py +0 -0
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: cf-precheck
|
|
3
|
-
Version: 1.2
|
|
3
|
+
Version: 1.3.2
|
|
4
4
|
Summary: ChipFoundry MPW tapeout precheck tool
|
|
5
5
|
License-Expression: Apache-2.0
|
|
6
6
|
License-File: LICENSE
|
|
7
7
|
Requires-Python: >=3.9
|
|
8
|
-
Requires-Dist: klayout
|
|
8
|
+
Requires-Dist: klayout==0.29.2
|
|
9
9
|
Requires-Dist: numpy
|
|
10
10
|
Requires-Dist: pyverilog
|
|
11
11
|
Requires-Dist: pyyaml
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
[build-system]
|
|
2
|
+
requires = ["hatchling"]
|
|
3
|
+
build-backend = "hatchling.build"
|
|
4
|
+
|
|
5
|
+
[project]
|
|
6
|
+
name = "cf-precheck"
|
|
7
|
+
dynamic = ["version"]
|
|
8
|
+
description = "ChipFoundry MPW tapeout precheck tool"
|
|
9
|
+
readme = "README.md"
|
|
10
|
+
license = "Apache-2.0"
|
|
11
|
+
requires-python = ">=3.9"
|
|
12
|
+
dependencies = [
|
|
13
|
+
"rich",
|
|
14
|
+
# Pin klayout to match the native toolchain in chipfoundry/mpw_precheck
|
|
15
|
+
# (RockyLinux 9 RPM: klayout-0.29.2). PyPI has shipped 0.30+ that are ABI-
|
|
16
|
+
# incompatible with the 0.29.2 native .so files baked in the base image,
|
|
17
|
+
# so leaving this unpinned causes `import pya` to fail with an
|
|
18
|
+
# `undefined symbol: _ZNK2db18shape_interactions...` ImportError after a
|
|
19
|
+
# `pip install --force-reinstall cf-precheck` on top of the base image.
|
|
20
|
+
# If the base image bumps its klayout RPM, bump this pin in lockstep.
|
|
21
|
+
"klayout==0.29.2",
|
|
22
|
+
"numpy",
|
|
23
|
+
"pyverilog",
|
|
24
|
+
"pyyaml",
|
|
25
|
+
"requests",
|
|
26
|
+
"strsimpy",
|
|
27
|
+
]
|
|
28
|
+
|
|
29
|
+
[project.scripts]
|
|
30
|
+
cf-precheck = "cf_precheck.cli:main"
|
|
31
|
+
|
|
32
|
+
[tool.hatch.version]
|
|
33
|
+
path = "src/cf_precheck/__init__.py"
|
|
34
|
+
|
|
35
|
+
[tool.hatch.build.targets.wheel]
|
|
36
|
+
packages = ["src/cf_precheck"]
|
|
37
|
+
|
|
38
|
+
[tool.pytest.ini_options]
|
|
39
|
+
pythonpath = ["src"]
|
|
40
|
+
testpaths = ["tests"]
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
__version__ = "1.3.2"
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
"""Classifiers for the captured-warning fallback used by runner.py.
|
|
2
|
+
|
|
3
|
+
Lives in its own tiny module so unit tests can import the classifier without
|
|
4
|
+
pulling in the full check stack (which transitively imports pya/KLayout and
|
|
5
|
+
only works inside the precheck Docker image).
|
|
6
|
+
"""
|
|
7
|
+
|
|
8
|
+
from __future__ import annotations
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
# Warnings emitted during setup that must stay visible in the log but must
|
|
12
|
+
# NOT become the one-line FAIL summary for a check. Each entry is a plain
|
|
13
|
+
# substring match against the captured log message.
|
|
14
|
+
#
|
|
15
|
+
# Example: "Missing LVS configuration variable EXTRACT_CREATE_SUBCUT" fires
|
|
16
|
+
# for almost every user project whose lvs_config.*.json doesn't populate the
|
|
17
|
+
# optional LVS optimisation keys, and it always fires before the real OEB
|
|
18
|
+
# or LVS failure reason. Without this filter the real error gets masked.
|
|
19
|
+
BENIGN_WARNING_SUBSTRINGS: tuple[str, ...] = (
|
|
20
|
+
"Missing LVS configuration variable ",
|
|
21
|
+
)
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
def is_benign_warning(message: str) -> bool:
|
|
25
|
+
"""Return True if a captured WARNING shouldn't be surfaced as fail detail."""
|
|
26
|
+
return any(needle in message for needle in BENIGN_WARNING_SUBSTRINGS)
|
|
@@ -0,0 +1,374 @@
|
|
|
1
|
+
"""Parse cvc.oeb.report into a structured dict for UI consumption.
|
|
2
|
+
|
|
3
|
+
The backend OEB scripts (see cf_precheck/be_checks/run_oeb_check and
|
|
4
|
+
cf_precheck/be_checks/run_openframe_check) emit a human-readable report with
|
|
5
|
+
two distinct formats:
|
|
6
|
+
|
|
7
|
+
caravel / caravan (padring-adjusted gpio, user index, analog index):
|
|
8
|
+
|
|
9
|
+
" gpio/user/analog | in | out | analog | oeb min/sim/max | configuration"
|
|
10
|
+
" 35 / 35 / 28 | 10 | 20 | | vssd1/vssd1/vssd1 | USER_STD_OUTPUT 2 warnings/errors"
|
|
11
|
+
|
|
12
|
+
openframe (raw gpio index, configuration bit string, resolved mode):
|
|
13
|
+
|
|
14
|
+
" gpio | in | out | analog | oeb min/sim/max | Configuration (dm[2:0] vtrip slow analog[pol,sel,en] ib input_dis holdover)"
|
|
15
|
+
" 35 | 10 | 20 | | vssd1/vssd1/vssd1 | 01100000000 -> USER_STD_OUTPUT 2 warnings/errors"
|
|
16
|
+
|
|
17
|
+
Both formats end with either
|
|
18
|
+
|
|
19
|
+
"No warnings or errors detected"
|
|
20
|
+
|
|
21
|
+
or
|
|
22
|
+
|
|
23
|
+
"*** Detected the following warnings and/or errors: ***"
|
|
24
|
+
"GPIO 35: ERROR: user input connection to user output gpio - undriven"
|
|
25
|
+
"GPIO 36: Warning: user output fixed at vssd1"
|
|
26
|
+
...
|
|
27
|
+
|
|
28
|
+
The parser is intentionally permissive: unknown lines are skipped, and any
|
|
29
|
+
failure returns a dict with a ``parse_error`` key so the UI can still show a
|
|
30
|
+
warning without losing the overall check status.
|
|
31
|
+
"""
|
|
32
|
+
|
|
33
|
+
from __future__ import annotations
|
|
34
|
+
|
|
35
|
+
import logging
|
|
36
|
+
import re
|
|
37
|
+
from pathlib import Path
|
|
38
|
+
from typing import Any, Optional
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
CARAVEL_HEADER_PREFIX = "gpio/user/analog"
|
|
42
|
+
OPENFRAME_HEADER_PREFIX = "gpio |"
|
|
43
|
+
OPENFRAME_HEADER_MARKER = "Configuration (dm[2:0]"
|
|
44
|
+
|
|
45
|
+
_CARAVEL_ROW_RE = re.compile(
|
|
46
|
+
r"""^\s*
|
|
47
|
+
(?P<gpio>\d+)\s*/\s*
|
|
48
|
+
(?P<user>\d+)\s*/\s*
|
|
49
|
+
(?P<analog>\d+|)\s*\|\s*
|
|
50
|
+
(?P<in>\S*)\s*\|\s*
|
|
51
|
+
(?P<out>\S*)\s*\|\s*
|
|
52
|
+
(?P<analog_count>\S*)\s*\|\s*
|
|
53
|
+
(?P<oeb_min>\S*)\s*/\s*(?P<oeb_sim>\S*)\s*/\s*(?P<oeb_max>\S*)\s*\|\s*
|
|
54
|
+
(?P<tail>.*)$
|
|
55
|
+
""",
|
|
56
|
+
re.VERBOSE,
|
|
57
|
+
)
|
|
58
|
+
|
|
59
|
+
_OPENFRAME_ROW_RE = re.compile(
|
|
60
|
+
r"""^\s*
|
|
61
|
+
(?P<gpio>\d+)\s*\|\s*
|
|
62
|
+
(?P<in>\S*)\s*\|\s*
|
|
63
|
+
(?P<out>\S*)\s*\|\s*
|
|
64
|
+
(?P<analog_count>\S*)\s*\|\s*
|
|
65
|
+
(?P<oeb_min>\S*)\s*/\s*(?P<oeb_sim>\S*)\s*/\s*(?P<oeb_max>\S*)\s*\|\s*
|
|
66
|
+
(?P<tail>.*)$
|
|
67
|
+
""",
|
|
68
|
+
re.VERBOSE,
|
|
69
|
+
)
|
|
70
|
+
|
|
71
|
+
_MSG_RE = re.compile(
|
|
72
|
+
r"""^\s*GPIO\s+(?P<gpio>\d+)\s*:\s*
|
|
73
|
+
(?P<severity>ERROR|Warning)\s*:\s*
|
|
74
|
+
(?P<text>.+?)\s*$
|
|
75
|
+
""",
|
|
76
|
+
re.VERBOSE | re.IGNORECASE,
|
|
77
|
+
)
|
|
78
|
+
|
|
79
|
+
_WARN_COUNT_RE = re.compile(r"(\d+)\s+warnings?/errors?", re.IGNORECASE)
|
|
80
|
+
|
|
81
|
+
_OPENFRAME_DM_BITS = 3
|
|
82
|
+
_OPENFRAME_CONFIG_LEN = 11
|
|
83
|
+
|
|
84
|
+
|
|
85
|
+
def _clean(line: str) -> str:
|
|
86
|
+
return line.rstrip("\r\n").rstrip()
|
|
87
|
+
|
|
88
|
+
|
|
89
|
+
def _maybe_int(value: str) -> Optional[int]:
|
|
90
|
+
value = value.strip()
|
|
91
|
+
if not value:
|
|
92
|
+
return None
|
|
93
|
+
try:
|
|
94
|
+
return int(value)
|
|
95
|
+
except ValueError:
|
|
96
|
+
return None
|
|
97
|
+
|
|
98
|
+
|
|
99
|
+
def _parse_tail_caravel(tail: str) -> tuple[str, Optional[int]]:
|
|
100
|
+
"""Split trailing mode cell into (configuration, warning_count).
|
|
101
|
+
|
|
102
|
+
Caravel/caravan reports render the configuration as a single mode name
|
|
103
|
+
such as ``USER_STD_OUTPUT`` followed optionally by ``"N warnings/errors"``
|
|
104
|
+
and any additional free-text warnings printed for the "unknown mode" case.
|
|
105
|
+
"""
|
|
106
|
+
tail = tail.strip()
|
|
107
|
+
warning_count: Optional[int] = None
|
|
108
|
+
match = _WARN_COUNT_RE.search(tail)
|
|
109
|
+
if match:
|
|
110
|
+
warning_count = int(match.group(1))
|
|
111
|
+
tail = (tail[: match.start()] + tail[match.end():]).strip()
|
|
112
|
+
return tail, warning_count
|
|
113
|
+
|
|
114
|
+
|
|
115
|
+
def _parse_tail_openframe(tail: str) -> tuple[Optional[str], Optional[str], Optional[int]]:
|
|
116
|
+
"""Split trailing column into (config_bits, resolved_mode, warning_count).
|
|
117
|
+
|
|
118
|
+
Openframe rows look like ``"01100000000 -> USER_STD_OUTPUT 2 warnings/errors"``.
|
|
119
|
+
"""
|
|
120
|
+
tail = tail.strip()
|
|
121
|
+
warning_count: Optional[int] = None
|
|
122
|
+
match = _WARN_COUNT_RE.search(tail)
|
|
123
|
+
if match:
|
|
124
|
+
warning_count = int(match.group(1))
|
|
125
|
+
tail = (tail[: match.start()] + tail[match.end():]).strip()
|
|
126
|
+
|
|
127
|
+
config_bits: Optional[str] = None
|
|
128
|
+
resolved: Optional[str] = None
|
|
129
|
+
if "->" in tail:
|
|
130
|
+
left, right = tail.split("->", 1)
|
|
131
|
+
config_bits = left.strip() or None
|
|
132
|
+
resolved = right.strip() or None
|
|
133
|
+
else:
|
|
134
|
+
# All-bits-known-but-mode-unknown case still prints a config.
|
|
135
|
+
resolved = tail or None
|
|
136
|
+
|
|
137
|
+
if resolved and resolved.upper() == "UNKNOWN":
|
|
138
|
+
resolved = None
|
|
139
|
+
return config_bits, resolved, warning_count
|
|
140
|
+
|
|
141
|
+
|
|
142
|
+
def _detect_format(lines: list[str]) -> Optional[str]:
|
|
143
|
+
for line in lines:
|
|
144
|
+
stripped = line.strip()
|
|
145
|
+
if not stripped:
|
|
146
|
+
continue
|
|
147
|
+
if CARAVEL_HEADER_PREFIX in stripped:
|
|
148
|
+
return "caravel"
|
|
149
|
+
if OPENFRAME_HEADER_MARKER in stripped:
|
|
150
|
+
return "openframe"
|
|
151
|
+
if stripped.startswith(OPENFRAME_HEADER_PREFIX) and "Configuration" in stripped:
|
|
152
|
+
return "openframe"
|
|
153
|
+
return None
|
|
154
|
+
|
|
155
|
+
|
|
156
|
+
def _parse_messages(lines: list[str]) -> list[dict[str, Any]]:
|
|
157
|
+
messages: list[dict[str, Any]] = []
|
|
158
|
+
for raw in lines:
|
|
159
|
+
line = _clean(raw)
|
|
160
|
+
if not line:
|
|
161
|
+
continue
|
|
162
|
+
match = _MSG_RE.match(line)
|
|
163
|
+
if not match:
|
|
164
|
+
continue
|
|
165
|
+
severity = match.group("severity")
|
|
166
|
+
normalized = "error" if severity.upper() == "ERROR" else "warning"
|
|
167
|
+
messages.append({
|
|
168
|
+
"gpio": int(match.group("gpio")),
|
|
169
|
+
"severity": normalized,
|
|
170
|
+
"text": match.group("text").strip(),
|
|
171
|
+
})
|
|
172
|
+
return messages
|
|
173
|
+
|
|
174
|
+
|
|
175
|
+
def _split_gpio_rows_and_messages(lines: list[str]) -> tuple[list[str], list[str], bool]:
|
|
176
|
+
"""Return (row_lines, message_lines, has_explicit_no_issues_marker).
|
|
177
|
+
|
|
178
|
+
Rows appear after the header and before either the "No warnings or errors"
|
|
179
|
+
line or the "*** Detected ..." banner. Messages appear after the banner.
|
|
180
|
+
"""
|
|
181
|
+
row_lines: list[str] = []
|
|
182
|
+
message_lines: list[str] = []
|
|
183
|
+
header_seen = False
|
|
184
|
+
in_messages = False
|
|
185
|
+
no_issues_seen = False
|
|
186
|
+
|
|
187
|
+
for raw in lines:
|
|
188
|
+
line = _clean(raw)
|
|
189
|
+
stripped = line.strip()
|
|
190
|
+
if not header_seen:
|
|
191
|
+
if (
|
|
192
|
+
CARAVEL_HEADER_PREFIX in stripped
|
|
193
|
+
or OPENFRAME_HEADER_MARKER in stripped
|
|
194
|
+
or (stripped.startswith(OPENFRAME_HEADER_PREFIX) and "Configuration" in stripped)
|
|
195
|
+
):
|
|
196
|
+
header_seen = True
|
|
197
|
+
continue
|
|
198
|
+
|
|
199
|
+
if not stripped:
|
|
200
|
+
continue
|
|
201
|
+
|
|
202
|
+
if stripped.startswith("***") and "Detected" in stripped:
|
|
203
|
+
in_messages = True
|
|
204
|
+
continue
|
|
205
|
+
|
|
206
|
+
if stripped == "No warnings or errors detected":
|
|
207
|
+
no_issues_seen = True
|
|
208
|
+
in_messages = True
|
|
209
|
+
continue
|
|
210
|
+
|
|
211
|
+
if in_messages:
|
|
212
|
+
message_lines.append(line)
|
|
213
|
+
else:
|
|
214
|
+
row_lines.append(line)
|
|
215
|
+
|
|
216
|
+
return row_lines, message_lines, no_issues_seen
|
|
217
|
+
|
|
218
|
+
|
|
219
|
+
def _parse_caravel(row_lines: list[str]) -> list[dict[str, Any]]:
|
|
220
|
+
gpios: list[dict[str, Any]] = []
|
|
221
|
+
for line in row_lines:
|
|
222
|
+
match = _CARAVEL_ROW_RE.match(line)
|
|
223
|
+
if not match:
|
|
224
|
+
continue
|
|
225
|
+
configuration, warning_count = _parse_tail_caravel(match.group("tail"))
|
|
226
|
+
gpios.append({
|
|
227
|
+
"gpio": int(match.group("gpio")),
|
|
228
|
+
"user_index": int(match.group("user")),
|
|
229
|
+
"analog_index": _maybe_int(match.group("analog")),
|
|
230
|
+
"in": _maybe_int(match.group("in")),
|
|
231
|
+
"out": match.group("out").strip() or None,
|
|
232
|
+
"analog": _maybe_int(match.group("analog_count")),
|
|
233
|
+
"oeb_min": match.group("oeb_min").strip() or None,
|
|
234
|
+
"oeb_sim": match.group("oeb_sim").strip() or None,
|
|
235
|
+
"oeb_max": match.group("oeb_max").strip() or None,
|
|
236
|
+
"configuration": configuration or None,
|
|
237
|
+
"resolved_mode": configuration or None,
|
|
238
|
+
"warning_count": warning_count,
|
|
239
|
+
})
|
|
240
|
+
return gpios
|
|
241
|
+
|
|
242
|
+
|
|
243
|
+
def _parse_openframe(row_lines: list[str]) -> list[dict[str, Any]]:
|
|
244
|
+
gpios: list[dict[str, Any]] = []
|
|
245
|
+
for line in row_lines:
|
|
246
|
+
match = _OPENFRAME_ROW_RE.match(line)
|
|
247
|
+
if not match:
|
|
248
|
+
continue
|
|
249
|
+
config_bits, resolved, warning_count = _parse_tail_openframe(match.group("tail"))
|
|
250
|
+
dm = config_bits[:_OPENFRAME_DM_BITS] if config_bits and len(config_bits) >= _OPENFRAME_DM_BITS else None
|
|
251
|
+
gpios.append({
|
|
252
|
+
"gpio": int(match.group("gpio")),
|
|
253
|
+
"user_index": int(match.group("gpio")),
|
|
254
|
+
"analog_index": None,
|
|
255
|
+
"in": _maybe_int(match.group("in")),
|
|
256
|
+
"out": match.group("out").strip() or None,
|
|
257
|
+
"analog": _maybe_int(match.group("analog_count")),
|
|
258
|
+
"oeb_min": match.group("oeb_min").strip() or None,
|
|
259
|
+
"oeb_sim": match.group("oeb_sim").strip() or None,
|
|
260
|
+
"oeb_max": match.group("oeb_max").strip() or None,
|
|
261
|
+
"configuration": config_bits,
|
|
262
|
+
"dm": dm,
|
|
263
|
+
"resolved_mode": resolved,
|
|
264
|
+
"warning_count": warning_count,
|
|
265
|
+
})
|
|
266
|
+
return gpios
|
|
267
|
+
|
|
268
|
+
|
|
269
|
+
def _annotate_counts(
|
|
270
|
+
gpios: list[dict[str, Any]],
|
|
271
|
+
messages: list[dict[str, Any]],
|
|
272
|
+
) -> None:
|
|
273
|
+
"""Populate per-GPIO error/warning counts from the message list.
|
|
274
|
+
|
|
275
|
+
Prefer counts derived from messages over the awk "N warnings/errors" token
|
|
276
|
+
because the latter combines both severities without distinguishing them.
|
|
277
|
+
"""
|
|
278
|
+
by_gpio: dict[int, dict[str, int]] = {}
|
|
279
|
+
for msg in messages:
|
|
280
|
+
tally = by_gpio.setdefault(msg["gpio"], {"errors": 0, "warnings": 0})
|
|
281
|
+
if msg["severity"] == "error":
|
|
282
|
+
tally["errors"] += 1
|
|
283
|
+
else:
|
|
284
|
+
tally["warnings"] += 1
|
|
285
|
+
for row in gpios:
|
|
286
|
+
tally = by_gpio.get(row["gpio"], {"errors": 0, "warnings": 0})
|
|
287
|
+
row["error_count"] = tally["errors"]
|
|
288
|
+
row["warning_count"] = tally["warnings"]
|
|
289
|
+
|
|
290
|
+
|
|
291
|
+
def parse_report_text(text: str, *, design_type: Optional[str] = None) -> dict[str, Any]:
|
|
292
|
+
"""Parse raw cvc.oeb.report text into a structured dict."""
|
|
293
|
+
if not text.strip():
|
|
294
|
+
return {"parse_error": "empty report"}
|
|
295
|
+
|
|
296
|
+
lines = text.splitlines()
|
|
297
|
+
detected = _detect_format(lines)
|
|
298
|
+
if detected is None:
|
|
299
|
+
return {"parse_error": "unrecognized report format"}
|
|
300
|
+
|
|
301
|
+
row_lines, message_lines, no_issues = _split_gpio_rows_and_messages(lines)
|
|
302
|
+
messages = _parse_messages(message_lines)
|
|
303
|
+
|
|
304
|
+
if detected == "caravel":
|
|
305
|
+
gpios = _parse_caravel(row_lines)
|
|
306
|
+
rendered_type = "caravel"
|
|
307
|
+
# Heuristic: caravan reports keep the same header but apply a +11 offset
|
|
308
|
+
# for gpios above 13 (see run_oeb_check). We cannot reliably distinguish
|
|
309
|
+
# caravel from caravan from the report alone, so fall back to the
|
|
310
|
+
# caller-provided design_type when present.
|
|
311
|
+
if design_type in {"caravan", "analog", "caravel"}:
|
|
312
|
+
rendered_type = design_type if design_type in {"caravel", "caravan"} else (
|
|
313
|
+
"caravan" if design_type == "analog" else "caravel"
|
|
314
|
+
)
|
|
315
|
+
else:
|
|
316
|
+
gpios = _parse_openframe(row_lines)
|
|
317
|
+
rendered_type = "openframe"
|
|
318
|
+
|
|
319
|
+
_annotate_counts(gpios, messages)
|
|
320
|
+
|
|
321
|
+
errors = sum(1 for m in messages if m["severity"] == "error")
|
|
322
|
+
warnings = sum(1 for m in messages if m["severity"] == "warning")
|
|
323
|
+
|
|
324
|
+
return {
|
|
325
|
+
"design_type": rendered_type,
|
|
326
|
+
"gpios": gpios,
|
|
327
|
+
"messages": messages,
|
|
328
|
+
"summary": {
|
|
329
|
+
"total": len(gpios),
|
|
330
|
+
"errors": errors,
|
|
331
|
+
"warnings": warnings,
|
|
332
|
+
"no_issues_banner": no_issues,
|
|
333
|
+
},
|
|
334
|
+
}
|
|
335
|
+
|
|
336
|
+
|
|
337
|
+
def parse_report_file(path: Path, *, design_type: Optional[str] = None) -> dict[str, Any]:
|
|
338
|
+
"""Read and parse cvc.oeb.report from disk.
|
|
339
|
+
|
|
340
|
+
Returns a dict that always includes a ``report_relpath`` pointing at the
|
|
341
|
+
report location (relative-ish — actually the absolute filename the caller
|
|
342
|
+
passed in). On any IO / parse failure, a ``parse_error`` key is set
|
|
343
|
+
instead of raising, so the caller never has to guard against an exception.
|
|
344
|
+
"""
|
|
345
|
+
payload: dict[str, Any] = {"report_relpath": str(path)}
|
|
346
|
+
try:
|
|
347
|
+
text = path.read_text(encoding="utf-8", errors="replace")
|
|
348
|
+
except OSError as exc:
|
|
349
|
+
payload["parse_error"] = f"could not read report: {exc}"
|
|
350
|
+
logging.debug("OEB report read failed: %s", exc)
|
|
351
|
+
return payload
|
|
352
|
+
|
|
353
|
+
try:
|
|
354
|
+
parsed = parse_report_text(text, design_type=design_type)
|
|
355
|
+
except Exception as exc: # pragma: no cover - defensive
|
|
356
|
+
payload["parse_error"] = f"parser crashed: {exc}"
|
|
357
|
+
logging.debug("OEB report parse crashed: %s", exc, exc_info=True)
|
|
358
|
+
return payload
|
|
359
|
+
|
|
360
|
+
payload.update(parsed)
|
|
361
|
+
return payload
|
|
362
|
+
|
|
363
|
+
|
|
364
|
+
def one_line_summary(report: dict[str, Any]) -> str:
|
|
365
|
+
"""Human-readable summary to stash in CheckResult.details."""
|
|
366
|
+
if "parse_error" in report:
|
|
367
|
+
return f"OEB report unavailable: {report['parse_error']}"
|
|
368
|
+
summary = report.get("summary") or {}
|
|
369
|
+
total = summary.get("total", 0)
|
|
370
|
+
errors = summary.get("errors", 0)
|
|
371
|
+
warnings = summary.get("warnings", 0)
|
|
372
|
+
if errors == 0 and warnings == 0:
|
|
373
|
+
return f"0 errors, 0 warnings across {total} GPIOs"
|
|
374
|
+
return f"{errors} error{'s' if errors != 1 else ''}, {warnings} warning{'s' if warnings != 1 else ''} across {total} GPIOs"
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
from __future__ import annotations
|
|
2
|
+
|
|
3
|
+
import logging
|
|
4
|
+
from pathlib import Path
|
|
5
|
+
from typing import Any, Optional
|
|
6
|
+
|
|
7
|
+
from cf_precheck.checks._oeb_report import parse_report_file, one_line_summary
|
|
8
|
+
from cf_precheck.config import run_be_check
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
def run_oeb(
|
|
12
|
+
design_directory: Path,
|
|
13
|
+
output_directory: Path,
|
|
14
|
+
design_name: str,
|
|
15
|
+
config_file: Path,
|
|
16
|
+
pdk_root: Path,
|
|
17
|
+
pdk: str,
|
|
18
|
+
) -> bool:
|
|
19
|
+
return run_be_check(design_directory, output_directory, design_name, config_file, pdk_root, pdk, "OEB")
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
class Oeb:
|
|
23
|
+
__ref__ = "oeb"
|
|
24
|
+
__surname__ = "OEB"
|
|
25
|
+
__supported_pdks__ = ["gf180mcuC", "gf180mcuD", "sky130A", "sky130B"]
|
|
26
|
+
__supported_type__ = ["analog", "digital", "openframe", "mini"]
|
|
27
|
+
__optional__ = False
|
|
28
|
+
|
|
29
|
+
def __init__(self, precheck_config: dict, project_config: dict):
|
|
30
|
+
self.precheck_config = precheck_config
|
|
31
|
+
self.project_config = project_config
|
|
32
|
+
self.result = True
|
|
33
|
+
self.report: Optional[dict[str, Any]] = None
|
|
34
|
+
self.details: Optional[str] = None
|
|
35
|
+
|
|
36
|
+
proj_type = project_config["type"]
|
|
37
|
+
type_to_design = {
|
|
38
|
+
"analog": "user_analog_project_wrapper",
|
|
39
|
+
"openframe": "openframe_project_wrapper",
|
|
40
|
+
"mini": "user_project_wrapper_mini4",
|
|
41
|
+
}
|
|
42
|
+
self.design_name = type_to_design.get(proj_type, "user_project_wrapper")
|
|
43
|
+
self.config_file = precheck_config["input_directory"] / f"lvs/{self.design_name}/lvs_config.json"
|
|
44
|
+
self.pdk_root = precheck_config["pdk_path"].parent
|
|
45
|
+
self.pdk = precheck_config["pdk_path"].name
|
|
46
|
+
|
|
47
|
+
def _report_path(self) -> Path:
|
|
48
|
+
return Path(self.precheck_config["output_directory"]) / "outputs" / "reports" / "cvc.oeb.report"
|
|
49
|
+
|
|
50
|
+
def _collect_report(self) -> None:
|
|
51
|
+
"""Populate ``self.report`` / ``self.details`` from the emitted report.
|
|
52
|
+
|
|
53
|
+
Must not raise: parse failures surface as a ``parse_error`` key on the
|
|
54
|
+
returned dict so the UI can still show the overall check status.
|
|
55
|
+
"""
|
|
56
|
+
report_path = self._report_path()
|
|
57
|
+
if not report_path.exists():
|
|
58
|
+
self.report = {
|
|
59
|
+
"report_relpath": str(report_path),
|
|
60
|
+
"parse_error": "cvc.oeb.report not produced",
|
|
61
|
+
}
|
|
62
|
+
self.details = "OEB report not produced"
|
|
63
|
+
return
|
|
64
|
+
|
|
65
|
+
project_type = self.project_config.get("type")
|
|
66
|
+
design_hint: Optional[str] = None
|
|
67
|
+
if project_type == "analog":
|
|
68
|
+
design_hint = "caravan"
|
|
69
|
+
elif project_type in {"digital", "mini"}:
|
|
70
|
+
design_hint = "caravel"
|
|
71
|
+
elif project_type == "openframe":
|
|
72
|
+
design_hint = "openframe"
|
|
73
|
+
|
|
74
|
+
try:
|
|
75
|
+
self.report = parse_report_file(report_path, design_type=design_hint)
|
|
76
|
+
except Exception as exc: # pragma: no cover - defensive
|
|
77
|
+
logging.warning("OEB report parse failed: %s", exc)
|
|
78
|
+
self.report = {
|
|
79
|
+
"report_relpath": str(report_path),
|
|
80
|
+
"parse_error": f"parser crashed: {exc}",
|
|
81
|
+
}
|
|
82
|
+
self.details = one_line_summary(self.report)
|
|
83
|
+
|
|
84
|
+
def run(self) -> bool:
|
|
85
|
+
self.result = run_oeb(
|
|
86
|
+
self.precheck_config["input_directory"],
|
|
87
|
+
self.precheck_config["output_directory"],
|
|
88
|
+
self.design_name,
|
|
89
|
+
self.config_file,
|
|
90
|
+
self.pdk_root,
|
|
91
|
+
self.pdk,
|
|
92
|
+
)
|
|
93
|
+
self._collect_report()
|
|
94
|
+
return self.result
|
|
@@ -5,7 +5,7 @@ import logging
|
|
|
5
5
|
from dataclasses import dataclass, field
|
|
6
6
|
from datetime import datetime, timezone
|
|
7
7
|
from pathlib import Path
|
|
8
|
-
from typing import Optional
|
|
8
|
+
from typing import Any, Optional
|
|
9
9
|
|
|
10
10
|
from rich.table import Table
|
|
11
11
|
|
|
@@ -21,6 +21,11 @@ class CheckResult:
|
|
|
21
21
|
duration_s: float = 0.0
|
|
22
22
|
details: Optional[str] = None
|
|
23
23
|
reason: Optional[str] = None
|
|
24
|
+
# Structured per-check payload emitted into .cf/project.json and consumed
|
|
25
|
+
# by the platform UI (see cf_precheck/checks/_oeb_report.py for the OEB
|
|
26
|
+
# shape). Kept distinct from `details` so existing consumers that treat
|
|
27
|
+
# `details` as a human-readable string stay untouched.
|
|
28
|
+
report: Optional[dict[str, Any]] = None
|
|
24
29
|
|
|
25
30
|
@property
|
|
26
31
|
def display_name(self) -> str:
|
|
@@ -32,6 +37,8 @@ class CheckResult:
|
|
|
32
37
|
d["details"] = self.details
|
|
33
38
|
if self.reason:
|
|
34
39
|
d["reason"] = self.reason
|
|
40
|
+
if self.report is not None:
|
|
41
|
+
d["report"] = self.report
|
|
35
42
|
return d
|
|
36
43
|
|
|
37
44
|
|
|
@@ -12,6 +12,7 @@ from rich.panel import Panel
|
|
|
12
12
|
from rich.text import Text
|
|
13
13
|
|
|
14
14
|
from cf_precheck import __version__
|
|
15
|
+
from cf_precheck._warning_filters import is_benign_warning
|
|
15
16
|
from cf_precheck.check_manager import ALL_CHECKS, build_sequence, get_check_manager
|
|
16
17
|
from cf_precheck.config import file_hash, get_project_config, uncompress_gds
|
|
17
18
|
from cf_precheck.logging import console, error_capture
|
|
@@ -161,14 +162,36 @@ def run_precheck(
|
|
|
161
162
|
devnull.close()
|
|
162
163
|
|
|
163
164
|
captured_errors = error_capture.stop()
|
|
165
|
+
# Benign setup warnings (e.g. "Missing LVS configuration variable FOO")
|
|
166
|
+
# get logged before the real failure reason, so without this filter
|
|
167
|
+
# they end up as the FAIL summary line and mask the actual problem.
|
|
168
|
+
# Keep them in the log — just don't surface them as the fail summary.
|
|
169
|
+
significant_errors = [m for m in captured_errors if not is_benign_warning(m)]
|
|
170
|
+
|
|
171
|
+
check_report = getattr(check, "report", None)
|
|
172
|
+
check_details = getattr(check, "details", None)
|
|
164
173
|
|
|
165
174
|
if passed:
|
|
166
175
|
status_str = "[pass]PASS[/pass]"
|
|
167
|
-
result = CheckResult(
|
|
176
|
+
result = CheckResult(
|
|
177
|
+
name=ref,
|
|
178
|
+
surname=surname,
|
|
179
|
+
status="pass",
|
|
180
|
+
duration_s=elapsed,
|
|
181
|
+
details=check_details,
|
|
182
|
+
report=check_report,
|
|
183
|
+
)
|
|
168
184
|
else:
|
|
169
185
|
status_str = "[fail]FAIL[/fail]"
|
|
170
|
-
|
|
171
|
-
result = CheckResult(
|
|
186
|
+
fallback_detail = significant_errors[0] if significant_errors else None
|
|
187
|
+
result = CheckResult(
|
|
188
|
+
name=ref,
|
|
189
|
+
surname=surname,
|
|
190
|
+
status="fail",
|
|
191
|
+
duration_s=elapsed,
|
|
192
|
+
details=check_details or fallback_detail,
|
|
193
|
+
report=check_report,
|
|
194
|
+
)
|
|
172
195
|
|
|
173
196
|
collector.add(result)
|
|
174
197
|
|
|
@@ -178,8 +201,8 @@ def run_precheck(
|
|
|
178
201
|
console.file.flush()
|
|
179
202
|
console.print(_format_check_line(prefix, dots, status_str, elapsed))
|
|
180
203
|
|
|
181
|
-
if not passed and
|
|
182
|
-
brief =
|
|
204
|
+
if not passed and significant_errors:
|
|
205
|
+
brief = significant_errors[0]
|
|
183
206
|
if len(brief) > 120:
|
|
184
207
|
brief = brief[:117] + "..."
|
|
185
208
|
console.print(f" [dim]{brief}[/dim]")
|
|
File without changes
|
|
File without changes
|