Skip to main content

ChipFoundry MPW tapeout precheck tool

Project description

cf-precheck

ChipFoundry MPW tapeout precheck tool. Validates user projects before shuttle submission by running a sequence of design-rule and consistency checks.

Installation

pip install cf-precheck

External tool dependencies

Some checks invoke external EDA tools that must be available on $PATH:

  • KLayout — used by all Klayout DRC checks and the XOR check
  • Magic — used by the optional Magic DRC check and LVS
  • Netgen — used by the LVS check

Usage

cf-precheck -i <project_dir> -p <pdk_path> -c <caravel_root> [options] [check ...]

Required arguments

Flag Description
-i, --input-directory Path to the user project directory
-p, --pdk-path Path to the PDK installation (variant-specific, e.g. $PDK_ROOT/sky130A)
-c, --caravel-root Path to the golden Caravel root (or set $GOLDEN_CARAVEL)

Optional arguments

Flag Description
-o, --output-directory Output directory (default: <project>/precheck_results/<timestamp>)
--magic-drc Include the Magic DRC check (off by default)
--skip-checks check [...] Skip specific checks
-v, --verbose Show verbose/debug output
--version Print version and exit

Positional arguments

Pass one or more check names to run only those checks. If omitted, all applicable checks are run.

Example

# Run all checks
cf-precheck -i ./my_project -p $PDK_ROOT/sky130A -c ./caravel

# Run only specific checks
cf-precheck -i ./my_project -p $PDK_ROOT/sky130A -c ./caravel topcell_check gpio_defines

# Include the optional Magic DRC check
cf-precheck -i ./my_project -p $PDK_ROOT/sky130A -c ./caravel --magic-drc

# Skip certain checks
cf-precheck -i ./my_project -p $PDK_ROOT/sky130A -c ./caravel --skip-checks lvs oeb

Checks

Check Description
topcell_check Validates the top cell name in the GDS
gpio_defines Validates GPIO directives in verilog/rtl/user_defines.v
pdn Power distribution network check
metal_check Metal density check
xor XOR comparison against the golden wrapper to detect out-of-bounds edits
magic_drc Full DRC using Magic (optional, off by default)
klayout_feol Klayout Front End Of Line DRC
klayout_beol Klayout Back End Of Line DRC
klayout_offgrid Klayout off-grid violations check
klayout_metal_minimum_clear_area_density Klayout metal density check
klayout_pin_label_purposes_overlapping_drawing Klayout pin/label overlap check
klayout_zero_area Klayout zero-area cell check
spike_check Detects voltage spikes in the design
illegal_cellname_check Detects cells with illegal names
oeb Output-enable-bar signal connectivity check
lvs Layout vs. Schematic check

Results

Check results are saved to <project>/.cf/project.json under the precheck key:

{
  "precheck": {
    "version": "1.0.0",
    "timestamp": "2026-03-17T12:00:00+00:00",
    "pdk": "sky130A",
    "passed": false,
    "checks": {
      "topcell_check": { "status": "pass", "duration_s": 1.2 },
      "gpio_defines": { "status": "fail", "duration_s": 0.8, "details": "..." }
    }
  }
}

Detailed logs are written to <project>/precheck_results/<timestamp>/logs/precheck.log.

License

Apache-2.0

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

cf_precheck-1.0.2.tar.gz (3.5 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

cf_precheck-1.0.2-py3-none-any.whl (3.7 MB view details)

Uploaded Python 3

File details

Details for the file cf_precheck-1.0.2.tar.gz.

File metadata

  • Download URL: cf_precheck-1.0.2.tar.gz
  • Upload date:
  • Size: 3.5 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for cf_precheck-1.0.2.tar.gz
Algorithm Hash digest
SHA256 26851e26ef0a815c47b99d0b81b41fb5910821507fcf9e65af4a9cb39d7120b7
MD5 c6e39e8e32feabda3f7bea7b6405e997
BLAKE2b-256 eb8a7a9333070a0ce141d74d8ba29ce9505fce232a16d2081d79d62f1777e28f

See more details on using hashes here.

File details

Details for the file cf_precheck-1.0.2-py3-none-any.whl.

File metadata

  • Download URL: cf_precheck-1.0.2-py3-none-any.whl
  • Upload date:
  • Size: 3.7 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for cf_precheck-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 b4a5f7f97eea8204165d378c60e56d6d4f41affbbf73068aecee62cda37f1885
MD5 7bdf47ddb92d0faccbb2e68fdb9dcddc
BLAKE2b-256 38eec99ad683b160b51b6a20aeb06e2d0a9038abbd133e5e1acb3b86f268969e

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page