MyHDL
Setup
For Windows make sure you have Python and pip is installed
- Install Python here: https://www.python.org/downloads/
- Add the path to python.exe to the environment variables
- Download https://bootstrap.pypa.io/get-pip.py
- Install pip using
python get-pip.py
Install MyHDL using pip install myhdl
Program
- Clone or download and extract this repository
- Open the VHDPlus project and program your code with MyHDL:
http://www.myhdl.org/docs/examples/
http://docs.myhdl.org/en/stable/manual/rtl.html - After you finished coding, right click on the python file and click on
Run Python
to convert the code. (Check ifExtras/Settings/Detect external file changes
is enabled) - The file blinky.vhd is created after running the python file. Import other created vhdl files, if you change the code.
- If you use the MyHDL code together with VHDP, make sure your file with the
Main
component uses the new updated component and click onCompile
Language Server
- Install the language server using
pip install 'python-lsp-server[all]'
- Go to Extras -> Settings -> Languages -> Python
- Language server path is pylsp.exe for Windows and pylsp for Linux
- Set the 'Active' checkbox
- Deactivate the warnings in the 'Code Errors' window, because MyHDL has some ways to program that the language server doesn't like