{"id":37685678,"url":"https://github.com/fvutils/pyhdl-if","last_synced_at":"2026-01-16T12:32:11.291Z","repository":{"id":288001797,"uuid":"786644389","full_name":"fvutils/pyhdl-if","owner":"fvutils","description":"Python interface for cross-calling with HDL","archived":false,"fork":false,"pushed_at":"2026-01-07T02:56:14.000Z","size":6296,"stargazers_count":45,"open_issues_count":5,"forks_count":11,"subscribers_count":5,"default_branch":"main","last_synced_at":"2026-01-09T04:41:46.651Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://fvutils.github.io/pyhdl-if/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/fvutils.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":"Agents.md","dco":null,"cla":null}},"created_at":"2024-04-15T02:59:24.000Z","updated_at":"2026-01-07T02:51:38.000Z","dependencies_parsed_at":null,"dependency_job_id":"89d324d0-0556-4805-b223-5aa7dff16450","html_url":"https://github.com/fvutils/pyhdl-if","commit_stats":null,"previous_names":["fvutils/pyhdl-if"],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/fvutils/pyhdl-if","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fvutils%2Fpyhdl-if","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fvutils%2Fpyhdl-if/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fvutils%2Fpyhdl-if/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fvutils%2Fpyhdl-if/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fvutils","download_url":"https://codeload.github.com/fvutils/pyhdl-if/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fvutils%2Fpyhdl-if/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28478672,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-16T11:59:17.896Z","status":"ssl_error","status_checked_at":"2026-01-16T11:55:55.838Z","response_time":107,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2026-01-16T12:32:10.469Z","updated_at":"2026-01-16T12:32:11.272Z","avatar_url":"https://github.com/fvutils.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PyHDL-IF - A Python Interface to HDL Simulators\n\nPyHDL-IF implements several interfaces between Python and \nhardware description languages, with a current focus on SystemVerilog.\n- Start Python behavior from SystemVerilog/UVM, and interact with UVM classes\n- Call SystemVerilog functions and tasks from Python, and invoke Python methods from SystemVerilog\n- Use the Python C API, and a SystemVerilog convenience API, to call Python\n- **Run async pytest tests from SystemVerilog testbenches**\n\n## Key Features\n\n### Pytest Runner\nRun async Python tests directly from SystemVerilog testbenches with pytest's assertion rewriting:\n\n```systemverilog\nmodule my_test;\n    initial begin\n        pyhdl_if::pyhdl_if_start();\n        pyhdl_if::pyhdl_pytest(\"tests/my_async_tests.py\");\n        $finish;\n    end\nendmodule\n```\n\nSee [doc/pytest_runner.md](doc/pytest_runner.md) for complete documentation and examples.\n\n## Installing PyHDL-IF\nInstalling PyHDL-IF in your own Python virtual environment is easy:\n\n```\n% pip install pyhdl-if\n```\n\nBinary wheels are currently available for Linux x86_64 platforms.\n\n# Running Examples\nSee [Examples.md](examples/Examples.md) for instructions on how to run examples.\n\n\n## Setting up a Development Environment\n\nPyHDL-IF uses [IVPM](https://fvutils.github.io/ivpm/) to manage dependencies. The\n`bootstrap.sh` creates a local Python virtual environment, installs IVPM, and\nrequired fetches packages.\n\n```\n% ./bootstrap.sh\n```\n\n### Building PyHDL-IF\nFor development builds, PyHDL-IF is built using the Python `setup.py` script. \nRun the `setup.py` script using the local Python virtual environment:\n\n```\n% ./packages/python/bin/python setup.py build_ext --inplace\n```\n\n### Running Tests\nPyHDL-IF has a growing set of unit tests. These tests assume that you have a\nrecent version of the [Verilator](https://github.com/verilator/verilator) \nSystemVerilog simulator installed. \n\nPyHDL-IF uses pytest for its tests. Run the suite of tests like this:\n\n```\n% PYTHONPATH=$(pwd)/src ./packages/python/bin/python3 -m pytest -s tests/unit\n```\n\nNote: this assumes running `bash` as the shell.\n\nBy default, all available simulators supported by a given test will be run. \nYou can filter the simulators to run using the pytest `-k` option.\n- mti - Siemens Questa (Modeltech)\n- xcm - Cadence Xcelium\n- vcs - Synopsys VCS\n- vlt - Verilator\n\n```\n%  PYTHONPATH=$(pwd)/src ./packages/python/bin/python3 -m pytest -s tests/ -k [vlt]\n```\n\nThe command above runs tests with Verilator only.\n\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffvutils%2Fpyhdl-if","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffvutils%2Fpyhdl-if","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffvutils%2Fpyhdl-if/lists"}