Aries Embedded RISC-V on MAX10 Manual del usuario - Página 9

Navegue en línea o descargue pdf Manual del usuario para Hardware informático Aries Embedded RISC-V on MAX10. Aries Embedded RISC-V on MAX10 20 páginas.

RISC-V on MAX10 User Guide

3.3 RISC-V GCC

This guide installs the toolchain under /opt/riscv, this path is configurable. For other Linux distributions
the toolchain can be installed similarly. For more information, please visit the official
Toolchain
repository.
Note: To use the RISC-V GCC toolchain on Windows the
The guide for Ubuntu then applies.
The first step is to download the prerequisites. Open a terminal window and enter the following command:
sudo apt-get install autoconf automake autotools-dev curl python3 libmpc-dev
libmpfr-dev libgmp-dev gawk build-essential bison flex texinfo gperf libtool
patchutils bc zlib1g-dev libexpat-dev
Navigate to a temporary directory and clone the toolchain from github:
git clone https://github.com/riscv/riscv-gnu-toolchain
cd
riscv-gnu-toolchain
Configure the build for the available architectures and run make to start the build:
Note: This step may take a while.
./configure --prefix=/opt/riscv
"rv32im-ilp32-rv32ima-;rv32imc-ilp32-rv32imac-;rv32imafc-ilp32f--"
sudo make
Add the build tools to the path by opening ~/.bashrc (or equivalent) and add the line:
export
PATH="$PATH:/opt/riscv/bin"
Finally reload the terminal with the following command:
source
~/.bashrc
Now the RISC-V tools are available on the terminal via riscv64-unknown-elf-(*)

3.4 Intel Quartus Prime

To synthesize the hardware design
free of charge, please make sure that the MAX10 Device support is included.
To make the RISC-V cores available for the Intel Platform Designer open Quartus and under the menu Tools
select Options. There select IP Settings > Ip Catalog Search Locations and add the the following
path to the Global IP search directory, substituting the path to the repository previously cloned:
<path to repository>/Cores/**/*
The MAX10 SoM is programmed via JTAG either through the intregrated PIC microcontroller using a
Serial Vector Format (.svf) file or through a Quartus Prime compatible USB-Blaster connected to the JTAG
Header on the Spider Baseboard.
Chapter 3. Requirements
Windows Subsystem for Linux
--with-multilib-generator="rv32i-ilp32--;"\
Intel Quartus Prime
is required. The lite edition is available from Intel
RISC-V GNU Compiler
is recommended.
\
\
Page 9 of 20