This page maps the current package structure and common imports.
Core packages
opentestability.core.common— shared circuit representation and gate classifierCircuitIndex: integer-indexed, CSR-backed circuit graph (signal names → ints, fan-in/fan-out CSR arrays, topological order, levelization)GateCode/classify(gtype): canonical gate-type codes computed once per gate; eliminates per-iteration string matching
opentestability.core.cop— COP analysis (runtime:cop/vectorized.py)opentestability.core.scoap— SCOAP analysis (runtime:scoap/accelerated.py→ Cython_kernels.pyx)opentestability.core.dag— DAG construction helpersopentestability.core.reconvergence— fanout/reconvergence detectionopentestability.core.testpoint— TPI orchestration
Common imports
from opentestability.core.cop import run_cop
from opentestability.core.scoap import run as run_scoap
from opentestability.core.dag import create_dag_from_netlist
from opentestability.core.reconvergence import ReconvergenceIntegrator
from opentestability.core.testpoint import TPIOrchestrator
Typical use
from opentestability.core.cop import run_cop
run_cop(
input_file="circuit.txt",
output_file="cop_results.txt",
reconvergence_algorithm="simple",
auto_parallel=True,
)
Detailed module pages
Developer note
Prefer package-level imports from __init__.py where available. Move to internal module imports only when you need behavior not exposed in package-level APIs.