{"id":13648179,"url":"https://github.com/pymtl/pymtl3","last_synced_at":"2026-04-04T14:34:51.312Z","repository":{"id":40360652,"uuid":"82823931","full_name":"pymtl/pymtl3","owner":"pymtl","description":"Pymtl 3 (Mamba), an open-source Python-based hardware generation, simulation, and verification framework","archived":false,"fork":false,"pushed_at":"2026-03-06T02:45:24.000Z","size":5653,"stargazers_count":446,"open_issues_count":12,"forks_count":57,"subscribers_count":19,"default_branch":"master","last_synced_at":"2026-03-14T09:57:17.715Z","etag":null,"topics":["cycle-level-modeling","hardware-generation","hdl","multi-level-modeling","open-source-eda","open-source-hardware","pymtl","python","rtl","systemverilog","verilog"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pymtl.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}},"created_at":"2017-02-22T16:01:10.000Z","updated_at":"2026-03-03T06:46:00.000Z","dependencies_parsed_at":"2023-10-13T13:15:15.262Z","dependency_job_id":"902c99e5-f7cb-4e69-a223-9ead7cc8a027","html_url":"https://github.com/pymtl/pymtl3","commit_stats":{"total_commits":2156,"total_committers":19,"mean_commits":"113.47368421052632","dds":"0.48840445269016697","last_synced_commit":"b35d76eeaf6491a639ad6c0d68a25f3fc783a64e"},"previous_names":[],"tags_count":14,"template":false,"template_full_name":null,"purl":"pkg:github/pymtl/pymtl3","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pymtl%2Fpymtl3","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pymtl%2Fpymtl3/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pymtl%2Fpymtl3/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pymtl%2Fpymtl3/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pymtl","download_url":"https://codeload.github.com/pymtl/pymtl3/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pymtl%2Fpymtl3/sbom","scorecard":{"id":751646,"data":{"date":"2025-08-11","repo":{"name":"github.com/pymtl/pymtl3","commit":"eea5ff49e06b303123097dc4d9e163790c0f58d6"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.6,"checks":[{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","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":"Code-Review","score":0,"reason":"Found 0/9 approved changesets -- score normalized to 0","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":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/python-package-ci.yml:1","Info: no jobLevel write permissions found"],"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":"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":"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":"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":"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":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/python-package-ci.yml:29: update your workflow using https://app.stepsecurity.io/secureworkflow/pymtl/pymtl3/python-package-ci.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/python-package-ci.yml:31: update your workflow using https://app.stepsecurity.io/secureworkflow/pymtl/pymtl3/python-package-ci.yml/master?enable=pin","Warn: pipCommand not pinned by hash: .github/workflows/python-package-ci.yml:52","Warn: pipCommand not pinned by hash: .github/workflows/python-package-ci.yml:53","Warn: pipCommand not pinned by hash: .github/workflows/python-package-ci.yml:54","Info:   0 out of   2 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   3 pipCommand 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":"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":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: BSD 3-Clause \"New\" or \"Revised\" License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"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":"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":-1,"reason":"internal error: error during branchesHandler.setup: internal error: githubv4.Query: Resource not accessible by integration","details":null,"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":"Vulnerabilities","score":8,"reason":"2 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: PYSEC-2020-92 / GHSA-hj5v-574p-mj7c","Warn: Project is vulnerable to: PYSEC-2022-42969"],"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 27 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-22T20:32:38.334Z","repository_id":40360652,"created_at":"2025-08-22T20:32:38.334Z","updated_at":"2025-08-22T20:32:38.334Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31402900,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-04T10:20:44.708Z","status":"ssl_error","status_checked_at":"2026-04-04T10:20:06.846Z","response_time":60,"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":["cycle-level-modeling","hardware-generation","hdl","multi-level-modeling","open-source-eda","open-source-hardware","pymtl","python","rtl","systemverilog","verilog"],"created_at":"2024-08-02T01:04:02.105Z","updated_at":"2026-04-04T14:34:51.293Z","avatar_url":"https://github.com/pymtl.png","language":"Python","funding_links":[],"categories":["Python","Circuit Compilers"],"sub_categories":[],"readme":"PyMTL 3 (Mamba)\n==========================================================================\n\n[![Github Action](https://github.com/pymtl/pymtl3/actions/workflows/python-package-ci.yml/badge.svg)](https://github.com/pymtl/pymtl3/actions/workflows/python-package-ci.yml)\n[![Documentation Status](https://readthedocs.org/projects/pymtl3/badge/?version=latest)](https://pymtl3.readthedocs.io/en/latest/?badge=latest)\n[![Codecov Status](https://codecov.io/gh/pymtl/pymtl3/branch/master/graph/badge.svg)](https://codecov.io/gh/pymtl/pymtl3)\n\nPyMTL 3 (Mamba) is the latest version of PyMTL, an open-source\nPython-based hardware generation, simulation, and verification framework with\nmulti-level hardware modeling support. The original PyMTL was introduced\nat MICRO-47 in December, 2014. Please note that PyMTL 3 is currently\n**beta** software that is under active development and documentation is\ncurrently quite sparse.\n\nIn June 2019, [Keeping Computer Hardware Fast and Furious: \"PyMTL is a fantastic example of what we need to jump-start the open-source hardware ecosystem…It’s a key missing link.\"](https://research.cornell.edu/news-features/keeping-computer-hardware-fast-and-furious \"Link to the article\") was featured on Cornell Research.\n\nUser Forum\n----------\nWe recommend the user to post on https://groups.google.com/forum/#!forum/pymtl-users to ask questions about using PyMTL 3. The github issues are reserved for development purposes, e.g., bug reports and feature requests.\n\nRelated publications\n--------------------------------------------------------------------------\n\n- Shunning Jiang, Christopher Torng, and Christopher Batten. _\"An Open-Source Python-Based Hardware Generation, Simulation, and Verification Framework.\"_ First Workshop on Open-Source EDA Technology (WOSET'18) held in conjunction with ICCAD-37, Nov. 2018.\n\n- Shunning Jiang, Berkin Ilbeyi, and Christopher Batten. _\"Mamba: Closing the Performance Gap in Productive Hardware Development Frameworks.\"_ 55th ACM/IEEE Design Automation Conf. (DAC-55), June 2018. \n\n- Derek Lockhart, Gary Zibrat, and Christopher Batten. _\"PyMTL: A Unified Framework for Vertically Integrated Computer Architecture Research.\"_ 47th ACM/IEEE Int'l Symp. on Microarchitecture (MICRO-47), Dec. 2014.\n\nLicense\n--------------------------------------------------------------------------\n\nPyMTL is offered under the terms of the Open Source Initiative BSD\n3-Clause License. More information about this license can be found here:\n\n  - http://choosealicense.com/licenses/bsd-3-clause\n  - http://opensource.org/licenses/BSD-3-Clause\n  \nInstallation\n------------\n\nThe steps for installing these prerequisites and PyMTL on a fresh Ubuntu\ndistribution are shown below. They have been tested with Ubuntu Xenial 18.04.\n\n### Install PyMTL 3\n\n\n**tl; dr** ```pip install pymtl3```\n\n----\n\nPyMTL 3 requires Python 3.6+. We highly recommend you work inside a **virtual environment** instead of calling ```sudo pip install```. Starting from Python 3.5, the use of venv is now recommended for creating virtual environments.\n\n```\n $ cd \u003cpath to where venvs are stored\u003e\n $ python3 -m venv pymtl3 # you can use whatever Python 3.6+ binary you have\n $ source pymtl3/bin/activate\n```\nPyMTL 3 needs to use cffi, so install these packages first.\n\n```\n $ sudo apt-get install git python-dev libffi-dev\n```\n\nPyMTL 3 is available on pypi.org. As a result, you are able to just call ```pip install pymtl3``` to install PyMTL 3.\n\n```\n $ pip install pymtl3\n```\n\nWhen you relaunch the bash session, you need to re-enable the venv.\n\n```\n $ source \u003cpath to where venvs are stored\u003e/pymtl3/bin/activate\n```\n\nWhen you're done testing/developing but you don't want to close the terminal, you can deactivate the virtualenv:\n\n```\n $ deactivate\n```\n\n\nAdditional dependencies include ```verilator```(and ```pkg-config```) when you want to integrate SystemVerilog blackbox into your PyMTL simulation.\n\n### Install Verilator\n\n[Verilator](http://www.veripool.org/wiki/verilator) is an open-source toolchain for compiling SystemVerilog RTL\nmodels into C++ simulators. You can install Verilator using the\nstandard package manager but the version available in the package\nrepositories is several years old. This means you will need to build and\ninstall Verilator from source using the following commands:\n\n```\n $ sudo apt-get install git make autoconf g++ libfl-dev bison\n $ mkdir -p ${HOME}/src\n $ cd ${HOME}/src\n $ wget http://www.veripool.org/ftp/verilator-4.036.tgz\n $ tar -xzvf verilator-4.036.tgz\n $ cd verilator-4.036\n $ ./configure\n $ make\n $ sudo make install\n```\n\nVerify that Verilator is on your path as follows:\n\n```\n $ cd $HOME\n $ which verilator\n $ verilator --version\n```\n\nPyMTL uses `pkg-config` to find the Verilator source files when\nintegrating SystemVerilog blackbox. Install\n`pkg-config` and verify that it is setup correctly as follows:\n\n```\n $ sudo apt-get install pkg-config\n $ pkg-config --print-variables verilator\n```\n\nIf `pkg-config` cannot find information about verilator, then you can\nalso explicitly set the following special environment variable:\n\n```\n $ export PYMTL_VERILATOR_INCLUDE_DIR=\"/usr/local/share/verilator/include\"\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpymtl%2Fpymtl3","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpymtl%2Fpymtl3","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpymtl%2Fpymtl3/lists"}