Score
0
1 Unstar Star 0 Fork 2

Gitee 极速下载 / lowRISCVerilog

Create your Gitee Account
Explore and code with more than 5 million developers,Free private repositories !:)
Sign up
此仓库是为了提升国内下载速度的镜像仓库,每日同步一次。 原始仓库: https://github.com/lowrisc/lowrisc-chip
lowRISC 目的是开发一个完全开放的硬件平台,从处理器到开发版 spread retract

Clone or download
set_env.sh 1.87 KB
Copy Edit Web IDE Raw Blame History
#!/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 "============================"

Comment ( 0 )

Sign in for post a comment

Verilog
1
https://gitee.com/mirrors/lowRISC.git
git@gitee.com:mirrors/lowRISC.git
mirrors
lowRISC
lowRISC
master

Search