p2v-compiler


Namep2v-compiler JSON
Version 0.14.0 PyPI version JSON
download
home_pagehttps://github.com/eyalhoc/p2v
SummaryA Python library for converting Python to synthesizable Verilog code
upload_time2025-07-29 03:28:18
maintainerNone
docs_urlNone
authorEyal Hochberg
requires_python>=3.6
licenseGPL-3.0-or-later
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # 🚀 P2V – Designing Chips in Python  
**Python to Verilog Compiler**

---

## 📘 What Is P2V?
**P2V** is a Python library for generating synthesizable RTL. It lets chip designers express RTL modules in Python, then compiles them into Verilog.

---

## 👥 Who Is P2V For?
For hardware designers familiar with Verilog and Python who want higher-level abstraction and automation in RTL creation.

---

## 📦 Installation

Install P2V using pip:

```bash
pip install p2v-compiler
```

P2V is a native Python 3 library with no mandatory external dependencies. However, some advanced features rely on the following open-source tools:

| Tool      | Purpose                   | Link |
|-----------|---------------------------|------|
| Verible   | Verilog indentation        | [Verible GitHub](https://github.com/chipsalliance/verible) |
| Verilator | Verilog linting            | [Verilator Install Guide](https://verilator.org/guide/latest/install.html) |
| Icarus    | Verilog simulation         | [Icarus Install Guide](https://steveicarus.github.io/iverilog/usage/installation.html) |

---

## 📚 Documentation

👉 [p2v_spec.pdf](https://github.com/eyalhoc/p2v/blob/main/doc/p2v_spec.pdf)

---

## 👋 Hello World Example

Run the tutorial:

```bash
python3 p2v/tutorial/example0_hello_world/hello_world.py
```

Sample output:
```
p2v-INFO: created: hello_world.sv
p2v-INFO: verilog generation completed successfully (1 sec)
p2v-INFO: verilog lint completed successfully
p2v-INFO: completed successfully
```

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/eyalhoc/p2v",
    "name": "p2v-compiler",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.6",
    "maintainer_email": null,
    "keywords": null,
    "author": "Eyal Hochberg",
    "author_email": "eyalhoc@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/24/26/b92e3a1776620380c1c11e43f20f3ac9ad683b352c5e7ff8062a21389561/p2v_compiler-0.14.0.tar.gz",
    "platform": null,
    "description": "# \ud83d\ude80 P2V \u2013 Designing Chips in Python  \n**Python to Verilog Compiler**\n\n---\n\n## \ud83d\udcd8 What Is P2V?\n**P2V** is a Python library for generating synthesizable RTL. It lets chip designers express RTL modules in Python, then compiles them into Verilog.\n\n---\n\n## \ud83d\udc65 Who Is P2V For?\nFor hardware designers familiar with Verilog and Python who want higher-level abstraction and automation in RTL creation.\n\n---\n\n## \ud83d\udce6 Installation\n\nInstall P2V using pip:\n\n```bash\npip install p2v-compiler\n```\n\nP2V is a native Python 3 library with no mandatory external dependencies. However, some advanced features rely on the following open-source tools:\n\n| Tool      | Purpose                   | Link |\n|-----------|---------------------------|------|\n| Verible   | Verilog indentation        | [Verible GitHub](https://github.com/chipsalliance/verible) |\n| Verilator | Verilog linting            | [Verilator Install Guide](https://verilator.org/guide/latest/install.html) |\n| Icarus    | Verilog simulation         | [Icarus Install Guide](https://steveicarus.github.io/iverilog/usage/installation.html) |\n\n---\n\n## \ud83d\udcda Documentation\n\n\ud83d\udc49 [p2v_spec.pdf](https://github.com/eyalhoc/p2v/blob/main/doc/p2v_spec.pdf)\n\n---\n\n## \ud83d\udc4b Hello World Example\n\nRun the tutorial:\n\n```bash\npython3 p2v/tutorial/example0_hello_world/hello_world.py\n```\n\nSample output:\n```\np2v-INFO: created: hello_world.sv\np2v-INFO: verilog generation completed successfully (1 sec)\np2v-INFO: verilog lint completed successfully\np2v-INFO: completed successfully\n```\n",
    "bugtrack_url": null,
    "license": "GPL-3.0-or-later",
    "summary": "A Python library for converting Python to synthesizable Verilog code",
    "version": "0.14.0",
    "project_urls": {
        "Homepage": "https://github.com/eyalhoc/p2v"
    },
    "split_keywords": [],
    "urls": [
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "d0c5e2c519c0cd1da9cc8e4c2a02e3fbf839fe2439bdf157a9335df1e646c191",
                "md5": "bfd29172e91695ac11f055b72766d564",
                "sha256": "a6348dfbd396e0b9d0e22d731606286a25021fbd446be7a24ce4572d17955fe0"
            },
            "downloads": -1,
            "filename": "p2v_compiler-0.14.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "bfd29172e91695ac11f055b72766d564",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.6",
            "size": 53821,
            "upload_time": "2025-07-29T03:28:17",
            "upload_time_iso_8601": "2025-07-29T03:28:17.185875Z",
            "url": "https://files.pythonhosted.org/packages/d0/c5/e2c519c0cd1da9cc8e4c2a02e3fbf839fe2439bdf157a9335df1e646c191/p2v_compiler-0.14.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "2426b92e3a1776620380c1c11e43f20f3ac9ad683b352c5e7ff8062a21389561",
                "md5": "bd15f48ab7739cadcd2b58e8b5c21046",
                "sha256": "b645632ab270380618fd31ddbe273b7e7722f8f7db91ac94c164ca9d161b04b6"
            },
            "downloads": -1,
            "filename": "p2v_compiler-0.14.0.tar.gz",
            "has_sig": false,
            "md5_digest": "bd15f48ab7739cadcd2b58e8b5c21046",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.6",
            "size": 49377,
            "upload_time": "2025-07-29T03:28:18",
            "upload_time_iso_8601": "2025-07-29T03:28:18.632015Z",
            "url": "https://files.pythonhosted.org/packages/24/26/b92e3a1776620380c1c11e43f20f3ac9ad683b352c5e7ff8062a21389561/p2v_compiler-0.14.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2025-07-29 03:28:18",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "eyalhoc",
    "github_project": "p2v",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "lcname": "p2v-compiler"
}
        
Elapsed time: 0.94873s