Skip to content

PYHDL-org/pyhdl

Repository files navigation

PYHDL

PYHDL is a Python to VHDL converter that translates Python-like syntax to VHDL hardware description language code.

Features

  • Convert Python-like syntax to VHDL
  • Support for entities, processes, functions, loops, and conditionals
  • Command-line interface

Installation

Build .deb Package

To build a Debian package (.deb file):

  1. On Linux (WSL/Ubuntu/Debian):

    chmod +x build_deb.sh
    ./build_deb.sh
  2. Install the package:

    sudo dpkg -i pyhdl_0.1.0-1_amd64.deb
  3. Fix any dependencies:

    sudo apt-get install -f

Alternative: Using Makefile

On Linux:

make deb
sudo make install

Usage

pyhdl input.py output.vhd [--verbose]

Arguments

  • input - Input Python-like file
  • output - Output VHDL file (default: out.vhd)
  • --verbose, -v - Enable verbose output

Example

pyhdl mydesign.py mydesign.vhd

Requirements

  • Python 3.7 or higher
  • Debian/Ubuntu system (for .deb packaging)

Development

Install for development:

python3 setup.py install

License

MIT License

Author

PYHDL Team

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published