{"id":37069595,"url":"https://github.com/gasparka/pyha","last_synced_at":"2026-01-14T08:00:56.454Z","repository":{"id":12021557,"uuid":"70997174","full_name":"gasparka/pyha","owner":"gasparka","description":"Describe, simulate and debug hardware in Python","archived":false,"fork":false,"pushed_at":"2024-12-08T17:34:35.000Z","size":90901,"stargazers_count":9,"open_issues_count":78,"forks_count":1,"subscribers_count":3,"default_branch":"develop","last_synced_at":"2025-09-19T02:29:44.503Z","etag":null,"topics":["dsp","fixed-point","python","simulation","verification","vhdl"],"latest_commit_sha":null,"homepage":"","language":"Jupyter Notebook","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/gasparka.png","metadata":{"files":{"readme":"README.rst","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}},"created_at":"2016-10-15T15:45:31.000Z","updated_at":"2023-10-12T16:34:39.000Z","dependencies_parsed_at":"2023-12-20T19:46:05.698Z","dependency_job_id":"e3df597b-21b2-418a-99e2-a2461d591898","html_url":"https://github.com/gasparka/pyha","commit_stats":{"total_commits":1396,"total_committers":4,"mean_commits":349.0,"dds":"0.10028653295128942","last_synced_commit":"60d9bbfd6075e7548d670d05317d64bc2a1a19ee"},"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"purl":"pkg:github/gasparka/pyha","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gasparka%2Fpyha","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gasparka%2Fpyha/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gasparka%2Fpyha/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gasparka%2Fpyha/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gasparka","download_url":"https://codeload.github.com/gasparka/pyha/tar.gz/refs/heads/develop","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gasparka%2Fpyha/sbom","scorecard":{"id":419464,"data":{"date":"2025-08-11","repo":{"name":"github.com/gasparka/pyha","commit":"60d9bbfd6075e7548d670d05317d64bc2a1a19ee"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":1.9,"checks":[{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Code-Review","score":3,"reason":"Found 11/30 approved changesets -- score normalized to 3","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":9,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Warn: project license file does not contain an FSF or OSI license."],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'develop'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: containerImage not pinned by hash: pyha/simulation/Dockerfile:1: pin your Docker image by updating ghdl/ghdl:ubuntu18-mcode to ghdl/ghdl:ubuntu18-mcode@sha256:9771c769b04b1d8867ce92708ff057eb1d832b3adedcf1fc077935a36164b9f4","Warn: containerImage not pinned by hash: pyha/synthesis/Dockerfile:1: pin your Docker image by updating ubuntu:18.04 to ubuntu:18.04@sha256:152dc042452c496007f07ca9127571cb9c29697f42acbfad72324b2bb2e43c98","Info:   0 out of   2 containerImage dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Vulnerabilities","score":0,"reason":"10 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: PYSEC-2021-856 / GHSA-5545-2q6w-2gh6","Warn: Project is vulnerable to: GHSA-6p56-wp2h-9hxr","Warn: Project is vulnerable to: PYSEC-2019-108 / GHSA-9fq2-x9r6-wfmf","Warn: Project is vulnerable to: PYSEC-2021-857 / GHSA-f7c7-j99h-c22f","Warn: Project is vulnerable to: GHSA-fpfv-jqm9-f5jm","Warn: Project is vulnerable to: PYSEC-2023-102","Warn: Project is vulnerable to: PYSEC-2023-114","Warn: Project is vulnerable to: GHSA-g7vv-2v7x-gj9p","Warn: Project is vulnerable to: PYSEC-2021-428 / GHSA-p6rw-44q7-3fw4","Warn: Project is vulnerable to: PYSEC-2022-43017 / GHSA-qwmp-2cf2-g9g6"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 11 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-19T00:48:13.453Z","repository_id":12021557,"created_at":"2025-08-19T00:48:13.453Z","updated_at":"2025-08-19T00:48:13.453Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28413527,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T05:26:33.345Z","status":"ssl_error","status_checked_at":"2026-01-14T05:21:57.251Z","response_time":107,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: 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":["dsp","fixed-point","python","simulation","verification","vhdl"],"created_at":"2026-01-14T08:00:42.327Z","updated_at":"2026-01-14T08:00:56.386Z","avatar_url":"https://github.com/gasparka.png","language":"Jupyter Notebook","funding_links":[],"categories":[],"sub_categories":[],"readme":"====\npyha\n====\n\n.. image:: https://img.shields.io/pypi/v/pyha.svg\n    :target: https://pypi.python.org/pypi/pyha\n\n.. image:: https://img.shields.io/travis/gasparka/pyha.svg\n    :target: https://travis-ci.org/gasparka/pyha\n\n.. image:: https://pyup.io/repos/github/gasparka/pyha/shield.svg\n    :target: https://pyup.io/repos/github/gasparka/pyha/\n    :alt: Updates\n\n.. image:: https://coveralls.io/repos/github/gasparka/pyha/badge.svg?branch=develop\n    :target: https://coveralls.io/github/gasparka/pyha?branch=develop\n\n* Free software: Apache Software License 2.0\n\nInstall\n-------\n\nFrom pip:\n\n``pip install --user pyha``\n\nRTL/NETLIST level simulations require `Docker \u003chttps://docs.docker.com/install/\u003e`_ :\n\n``curl -fsSL https://get.docker.com | sh``\n\nFollow the instructions to add yourself to the 'docker' group.\n\n\nFeatures\n--------\n\n* Describe hardware in Python and convert to VHDL\n* Cycle-accurate and fast simulator\n* Debuggable in Python – very useful as Python and VHDL sources are highly correlated\n* Simple testing framework by pairing pytest and cocotb\n* Builtin fixed-point and complex types\n\n\nQuick start\n-----------\n\nTake a look at the cores implemented in Pyha, each of them have a Notebook to ease the experimentation.\nFor example, start with the moving-average core:\n\n`Python source \u003chttps://github.com/gasparka/pyha/blob/develop/pyha/cores/filter/moving_average/moving_average.py\u003e`_\n\n`Notebook \u003chttps://github.com/gasparka/pyha/blob/develop/pyha/cores/filter/moving_average/moving_average.ipynb\u003e`_\n\n`VHDL conversion \u003chttps://github.com/gasparka/pyha/blob/develop/pyha/cores/filter/moving_average/example_conversion/src/MovingAverage_0.vhd\u003e`_\n\nAnd then see how the 'dc-removal' is built by reusing the 'moving-average' component:\n\n`Python source \u003chttps://github.com/gasparka/pyha/blob/develop/pyha/cores/filter/dc_removal/dc_removal.py\u003e`_\n\n`Notebook \u003chttps://github.com/gasparka/pyha/blob/develop/pyha/cores/filter/dc_removal/dc_removal.ipynb\u003e`_\n\n`VHDL conversion \u003chttps://github.com/gasparka/pyha/blob/develop/pyha/cores/filter/dc_removal/example_conversion/src/DCRemoval_0.vhd\u003e`_\n\nDocumentation\n-------------\n\nUnder construction!","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgasparka%2Fpyha","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgasparka%2Fpyha","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgasparka%2Fpyha/lists"}