6 Star 8 Fork 2

Gitee 极速下载 / lowRISC

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
此仓库是为了提升国内下载速度的镜像仓库,每日同步一次。 原始仓库: https://github.com/lowrisc/lowrisc-chip
克隆/下载
set_env.sh 1.87 KB
一键复制 编辑 原始数据 按行查看 历史
#!/bin/bash
# source this file
echo "Setting up lowRISC/RISC-V and SoC Debug SoC environment..."
echo "Make sure you source this script at the top of lowrisc-chip."
echo
# Variables for lowRISC/RISC-V
if [ -z $TOP ] || [ ! -d $TOP ]; then
echo "\$TOP is not defined or does not point to a directory. Set \$TOP to the top of lowrisc-chip which is the current directory."
export TOP=$PWD
fi
if [ -z $RISCV ]; then
echo "\$RISCV is not defined. Set \$TOP/riscv to the RISC-V toolchain installation target (\$RISCV)."
export RISCV=$TOP/riscv
fi
export PATH=$PATH:$RISCV/bin
# Variables for Open SoC Debug
if [ -z $OSD_ROOT ]; then
echo "\$OSD_ROOT is not defined."
echo "Set \$TOP/tools to the Open SoC Debug installation target (\$OSD_ROOT)."
export OSD_ROOT=$TOP/tools
fi
echo "Add opensocdebug to \$PYTHONPATH"
export PYTHONPATH=$OSD_ROOT/lib/python2.7/site-packages:$PYTHONPATH
if [ -z $LD_LIBRARY_PATH ]; then
export LD_LIBRARY_PATH=$OSD_ROOT/lib
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$RISCV/lib
else
export LD_LIBRARY_PATH=$OSD_ROOT/lib:$LD_LIBRARY_PATH
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$RISCV/lib
fi
export PATH=$OSD_ROOT/bin:$PATH
if [ -z $PKG_CONFIG_PATH ]; then
export PKG_CONFIG_PATH=$OSD_ROOT/lib/pkgconfig
else
export PKG_CONFIG_PATH=$OSD_ROOT/lib/pkgconfig:$PKG_CONFIG_PATH
fi
# choose the FPGA board (Nexys4-DDR in default)
if [ -z $FPGA_BOARD ]; then
echo "\$FPGA_BOARD is not defined. Set the target FPGA board to nexys4_ddr."
export FPGA_BOARD=nexys4_ddr
fi
echo "============================"
echo " export TOP=$TOP"
echo " export RISCV=$RISCV"
echo " export OSD_ROOT=$OSD_ROOT"
echo " export PYTHONPATH=$PYTHONPATH"
echo " export PATH=$PATH"
echo " export LD_LIBRARY_PATH=$LD_LIBRARY_PATH"
echo " export PKG_CONFIG_PATH=$PKG_CONFIG_PATH"
echo " export FPGA_BOARD=$FPGA_BOARD"
echo "============================"
Verilog
1
https://gitee.com/mirrors/lowRISC.git
git@gitee.com:mirrors/lowRISC.git
mirrors
lowRISC
lowRISC
master

搜索帮助