Create a Develop Environment using Python venv
2023-5-11 23:31 JST

We will guide you through the process of setting up your development environment for Polyphony, the open-source HLS compiler.

By following these steps, you'll be ready to dive into the world of hardware design using Polyphony. Let's get started!

Step 1: Creating a Virtual Environment

1. Open your terminal.
2. Navigate to your desired directory.
3. Run the following command to create a new virtual environment:
   python3 -m venv polyphony-env

Step 2: Activating the Virtual Environment

   source polyphony-env/bin/activate

Step 3: Installing Polyphony via pip

With the virtual environment activated, run the following command to install Polyphony:
     pip install polyphony

Step 4: Cloning the Polyphony Repository

1. Ensure that Git is installed on your system. If not, download and install Git from
2. In the terminal, navigate to the directory where you want to clone the Polyphony repository.
3. Run the following command to clone the repository:
   git clone

Step 5: Setting the PYTHONPATH

1. In the terminal, navigate to the root directory of the Polyphony repository.
2. Run the following command to set the PYTHONPATH:
     export PYTHONPATH=$PYTHONPATH:/path/to/polyphony

That's it! You have successfully set up your development environment for Polyphony. Now you can start exploring and leveraging the power of Polyphony's HLS compiler to transform high-level code into efficient hardware designs.

Remember to activate the virtual environment each time you work with Polyphony by running the appropriate activation command and export PYTHONPATH mentioned in Step 2 and 5.

We hope this guide has been helpful in getting you started with Polyphony. Stay tuned for more exciting tutorials and examples on using Polyphony for hardware design. Happy coding!

If you have any questions or need further assistance, please feel free to reach out to our twitter account.

Happy hardware designing with Polyphony!