Tutorials

Setup your machine for the ESP tutorial

The setup consists in performing the following steps from the ESP How to: setup guide:

  • Software packets
    • Install the packets for your OS (CentOS 7, Ubuntu 18.04, Red Hat Enterprise Linux 7.8) listed in the Software packets section of the How to: setup guide under the labels “Miscellaneous”, “Python”, “Perl”, “CAD tools and SW toolchains dependencies”.
  • Clone the ESP repository
    • Follow the instructions in the ESP repository section of the How to: setup guide.
  • Software toolchain
    • Install both Leon3 and RISC-V toolchains by following the instructions in the Software toolchain section of the How to: setup guide.
  • Environment variables
    • In the terminal window where you use ESP set the environment variables by following the instructions in the Environment variables section of the How to: setup guide. You only need the variables for RISC-V and Leon3. You should also set the XILINX_VIVADO to any value.

        export XILINX_VIVADO=/
      
      # RISC-V
        # e.g. <riscv_path> = /opt/riscv
        export RISCV=<riscv_path>
        export PATH=$PATH:<riscv_path>/bin
      
      # Leon3
        # e.g. <leon3_path> = /opt/leon
        export PATH=$PATH:<leon3_path>/bin
        export PATH=$PATH:<leon3_path>/mklinuximg
        export PATH=$PATH:<leon3_path>/sparc-elf/bin
      

ESP is supported on the following OS distributions: CentOS 7, Ubuntu 18.04, Red Hat Enterprise Linux 7.8. Other Linux distributions could work too, but they may require additional setup effort.