============================================
裸机ubuntu18.04上运行香山处理器(南湖)make verilog
============================================
system program problem detected - sudo vi /etc/default/apport
sudo apt install tree git cmake curl
sudo apt install bison flex
sudo apt install verilator
sudo apt install default-jre
sudo sh -c "curl -L https://github.com/com-lihaoyi/mill/releases/download/0.9.8/0.9.8 > /usr/local/bin/mill && chmod +x /usr/local/bin/mill"
mill 耗时
mill -v
free -m -h
sudo -i
whoami
mkdir /swap
cd /swap
sudo dd if=/dev/zero of=swapfile bs=32M count=2k 耗时
sudo mkswap /swap/swapfile
sudo swapon /swap/swapfile
/etc/fstab中添加/var/swapfile swap swap defaults 0 0
git clone https://github.com/OpenXiangShan/XiangShan
git checkout nanhu-clockdiv2
make init
make clean
make verilog NUM_CORES=2
============================================
vmware虚拟机上运行香山处理器make emu
============================================
vmware15pro
ubuntu20.04-desktop minimal installation
system program problem detected - sudo vi /etc/default/apport
sudo apt install net-tools openssh-server tree
sudo apt install clang
sudo apt install aptitude
sudo aptitude install libsdl2-dev
vmware配置虚拟硬盘64g
fdisk -l
sudo mkswap -f /dev/sdb
sudo swapon /dev/sdb
git config --global http.proxy
git config --global https.proxy
git config --global --unset http.proxy
git config --global --unset https.proxy
git clone https://github.com/OpenXiangShan/xs-env
cd xs-env
sudo -s ./setup-tools.sh文章来源:https://www.toymoban.com/news/detail-632996.html
cd xs-env
source setup.sh
cd xs-env/XiangShan
make init
make emu CONFIG=MinimalConfig EMU_TRACE=1 -j6文章来源地址https://www.toymoban.com/news/detail-632996.html
到了这里,关于香山处理器跑仿真和跑FPGA两套环境配置过程小结的文章就介绍完了。如果您还想了解更多内容,请在右上角搜索TOY模板网以前的文章或继续浏览下面的相关文章,希望大家以后多多支持TOY模板网!