Skip to main content

High-performance VLSI CAD algorithms with Numba-accelerated implementations

Project description

optiVLSI

optiVLSI is a Python package that implements a collection of classic graph and circuit algorithms, including:

  • Bellman‑Ford
  • Dijkstra
  • Prim
  • Kruskal
  • Lee (maze solver)
  • BDD (binary decision diagrams)
  • Simulation engines (compiled‑code and event‑driven)

The project has been refactored into a proper Python package with a modern pyproject.toml, type hints, comprehensive tests, documentation, and CI/CD pipelines.

Quick Start

# Install the package
pip install optivlsi

# Run a quick demo
python -m optivlsi.lee.algorithms.lee_algorithm

Documentation

Contributing

See the CONTRIBUTING.md file for guidelines.

Implemented Algorithms

Graph Algorithms

Algorithm Package Variants
Bellman-Ford Shortest Path optivlsi.bellman_ford Pythonic, NetworkX, Numba
Dijkstra Shortest Path optivlsi.dijkstra Pythonic, NetworkX, Numba
Kruskal Minimum Spanning Tree optivlsi.kruskal Pythonic (DSU), NetworkX, Numba
Prim Minimum Spanning Tree optivlsi.prim Pythonic, NetworkX, Numba

Routing

Algorithm Package Variants
Lee Maze Routing optivlsi.lee Pythonic BFS, NetworkX, Numba

Digital Circuit Simulation

Algorithm Package Variants
Compiled-Code Simulator optivlsi.simulation.compiled_code Gate classes, Numba
Event-Driven Simulator optivlsi.simulation.event_driven Event propagation, Numba

Binary Decision Diagrams

Algorithm Package Variants
ROBDD optivlsi.bdd Python, Numba

Running Tests

# Run all tests
pytest

# Run with coverage
pytest --cov=optivlsi --cov-report=term

# Run benchmarks
pytest tests/test_benchmarks.py --benchmark-only

Documentation

Full documentation is available in the docs/ directory:

Detailed research paper: OptiVLSI.pdf

Benchmarking

Each algorithm module includes an automate.py file for automan-based benchmarking across various problem sizes. The package also provides pytest-benchmark integration for performance regression detection.

A live benchmark comparison report is automatically generated on every push:
👉 View Benchmark Report

Optimization Tools Used

  • Numba: All algorithms have Numba-accelerated variants with JIT compilation
  • Automan: Automated simulation and benchmarking infrastructure
  • NetworkX: Reference implementations using standard graph library

Project Structure

optivlsi/                   # Main package
├── bellman_ford/           # Bellman-Ford algorithm
├── dijkstra/               # Dijkstra's algorithm
├── kruskal/                # Kruskal's MST
├── prim/                   # Prim's MST
├── lee/                    # Lee maze routing
├── simulation/
│   ├── compiled_code/      # Compiled-code simulator
│   ├── compiled_code_numba/# Numba-accelerated variant
│   └── event_driven/       # Event-driven simulator
├── bdd/                    # ROBDD
└── utils/                  # Shared utilities
bellman-ford/               # Original standalone modules
dijkstra/                   # (preserved for reproducibility)
kruskal/                    #
prim/                       #
lee-algorithm/              #
compiled-code-simulator/    #
event-driven-sim/           #
ROBDD/                      #

Original Research

This open-source codebase started as a course project for AE6102 - Parallel Scientific Computing and Visualization at IIT Bombay. The original standalone research modules are preserved in their respective directories.

Collaborators

  • Rohan Rajesh Kalbag
  • Neeraj Prabhu

License

MIT

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

optivlsi-0.1.2.tar.gz (24.7 kB view details)

Uploaded Source

Built Distribution

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

optivlsi-0.1.2-py3-none-any.whl (25.4 kB view details)

Uploaded Python 3

File details

Details for the file optivlsi-0.1.2.tar.gz.

File metadata

  • Download URL: optivlsi-0.1.2.tar.gz
  • Upload date:
  • Size: 24.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.15

File hashes

Hashes for optivlsi-0.1.2.tar.gz
Algorithm Hash digest
SHA256 c464c77a6aee89a28e926275d174fb81dfd6bb2746dc108481a006084e4b08e6
MD5 627e71e1b0820ce21ef16ac40d4ac7c1
BLAKE2b-256 fbdd80d42ba24a2d57491bcd614915a244fc35b79ed7dd4654fc2725da7f02d4

See more details on using hashes here.

File details

Details for the file optivlsi-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: optivlsi-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 25.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.15

File hashes

Hashes for optivlsi-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 da7dcb00228f05124e344eff61af283cb1c04fcabf307d48474809a3ed5aa444
MD5 74af7def04d955e694682a266d916033
BLAKE2b-256 84e44ab25f023186a6d7713d9406711b59c9cf977e146a14b7b2708b7474961a

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