同步操作将从 VeriMake/SparkRoad-FPGA 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
The SparkRoad is a FPGA board with low cost per logic element and convenient USB bitstream programming capability. It is compatible with the micro:bit and is a perfect fit for breadboards. The heart of the SparkRoad board is a EG4S20NG88 FPGA from Anlogic.
git clone https://github.com/verimake-team/SparkRoad-FPGA.git
cd SparkRoad-FPGA
If you have compiled a complete toolchain for riscv Please skip the following commands.
For well-known reasons, we provide a mirror of toolchain for a pure rv32i
here。
链接:https://pan.baidu.com/s/160Iu03p4NvlcNUw18_msDQ
提取码:fv59
Make sure the mirror above is in the directory /SparkRoad-FPGA
.Then the following commands will build the
RISC-V GNU toolchain and libraries for a pure RV32I target, and install it in /opt/riscv32i
:
sudo mkdir /opt/riscv32i
sudo chown $USER /opt/riscv32i
make get-tools
sudo tar -zxvf riscv-gnu-toolchain-rv32i.tar.gz
sudo chown $USER riscv-gnu-toolchain-rv32i
cd riscv-gnu-toolchain-rv32i; mkdir build; cd build
../configure --with-arch=rv32i --prefix=/opt/riscv32i
make -j$(nproc)
cd ../../RISC-V/firmware
gcc -Wall rom2mif.c -o rom2mif
sudo mv rom2mif /opt/riscv32i/bin
You can input the following at the end of profile use vi /etc/profile
.
export PATH="$PATH:/opt/riscv32i/bin"
Then log out and reload your ubuntu.
Just install risc-v-toolchain.exe
which provide by Anlogic. Then export PATH.
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。