Fix typo, automatically get newest plugin

Signed-off-by: Rafal Kapuscik <rkapuscik@antmicro.com>
This commit is contained in:
Rafal Kapuscik 2022-06-21 15:34:56 +02:00
parent 37bbc6843e
commit 2170e50abe
1 changed files with 9 additions and 3 deletions

View File

@ -6,6 +6,13 @@ Sometimes it may be preferable to get the latest versions of the tools even befo
Updating Yosys SystemVerilog plugin
-----------------------------------
Make sure :code:`curl`, :code:`jq`, :code:`tar` and :code:`wget` are installed (used to automatically download newest version):
.. code-block:: bash
:name: activate-xc7
apt install curl jq tar wget
Activate the conda repository for the correct family:
.. code-block:: bash
@ -18,8 +25,7 @@ Obtain the latest release of the plugin from `here <https://github.com/antmicro/
.. code-block:: bash
:name: get-plugin
wget https://github.com/antmicro/yosys-uhdm-plugin-integration/releases/download/e3a87e3-2022-06-17/yosys-uhdm-plugin-e3a87e3-Ubuntu-20.04-focal-x86_64.tar.gz
tar -xzf yosys-uhdm-plugin-e3a87e3-Ubuntu-20.04-focal-x86_64.tar.gz
curl https://api.github.com/repos/antmicro/yosys-uhdm-plugin-integration/releases/latest | jq .assets[1] | grep "browser_download_url" | grep -Eo 'https://[^\"]*' | xargs wget -O - | tar -xz
Install the plugin using provided installation script. It will use the `yosys-config` from conda, so it will install into the conda environment.