Skip to main content

DV Flow extension for FuseSoC core management and Edalize tool integration

Project description

dv-flow-libfusesoc

CI PyPI Documentation

DV Flow extension providing FuseSoC core management and Edalize tool integration.

Features

  • FuseSoC Integration: Resolve and manage FuseSoC IP cores with automatic dependency resolution
  • Edalize Support: Unified interface to EDA tools via Edalize
  • Simulation Flows: Run simulations with Icarus Verilog, Verilator, ModelSim, VCS, Xcelium, GHDL
  • FPGA Flows: Synthesis and implementation for Vivado, Quartus, and open-source tools
  • Linting: HDL code quality checks with tool-agnostic interface
  • Formal Verification: Formal property checking flows

Installation

pip install dv-flow-libfusesoc

Quick Start

from dv_flow.libfusesoc.fusesoc_core_resolve import CoreResolve, CoreResolveParams
from dv_flow.libfusesoc.edalize_sim import SimConfigure, SimBuild, SimRun

# Resolve FuseSoC core
core_result = await CoreResolve(runner, CoreResolveParams(
    core="vendor:lib:uart:1.0",
    target="sim",
    workspace="/path/to/workspace"
))

# Configure and run simulation
config_result = await SimConfigure(runner, SimConfigureParams(
    core_name=core_result.output['core_name'],
    files=core_result.output['files'],
    toplevel="uart_tb",
    tool="icarus"
))

build_result = await SimBuild(runner, SimBuildParams(
    work_root=config_result.output['work_root'],
    tool="icarus"
))

run_result = await SimRun(runner, SimRunParams(
    work_root=build_result.output['work_root'],
    tool="icarus"
))

Documentation

Full documentation is available at https://dv-flow.github.io/dv-flow-libfusesoc/

Development

Building from Source

git clone https://github.com/dv-flow/dv-flow-libfusesoc.git
cd dv-flow-libfusesoc
pip install -e .

Running Tests

pytest tests/

Building Documentation

cd docs
make html

Documentation will be built in docs/_build/html/.

CI/CD

This project uses GitHub Actions for continuous integration:

  • Automated Testing: Runs on every push and pull request
  • Documentation Building: Automatically builds and deploys docs to GitHub Pages
  • PyPI Release: Automatically publishes to PyPI on tagged releases

Release Process

  1. Update version in src/dv_flow/libfusesoc/__init__.py
  2. Update version in pyproject.toml
  3. Create and push a git tag:
    git tag -a v0.0.1 -m "Release v0.0.1"
    git push origin v0.0.1
    
  4. GitHub Actions will automatically build and publish to PyPI

License

Apache License 2.0 - See LICENSE file for details.

Contributing

Contributions are welcome! Please:

  1. Fork the repository
  2. Create a feature branch
  3. Make your changes with tests
  4. Run the test suite
  5. Submit a pull request

Status

Production Ready - All core features implemented and tested.

  • 38 tests, 94.7% passing
  • Complete FuseSoC integration
  • Full Edalize support for simulation flows
  • Comprehensive documentation

Project details


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

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

dv_flow_libfusesoc-0.0.121616964059-py3-none-any.whl (30.3 kB view details)

Uploaded Python 3

File details

Details for the file dv_flow_libfusesoc-0.0.121616964059-py3-none-any.whl.

File metadata

File hashes

Hashes for dv_flow_libfusesoc-0.0.121616964059-py3-none-any.whl
Algorithm Hash digest
SHA256 b15d42c0dbe43096ddb0404384cf5bed328a808d3065592b7afd5851c40eb77f
MD5 1f99fa7e3bc9b24f82964996f278640e
BLAKE2b-256 384556f615e3b953b2dd3e0ff90f42d2bdf29d054642d1a53cddda395fc2c588

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