香山处理器跑仿真和跑FPGA两套环境配置过程小结

============================================
裸机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 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

cd xs-env
source setup.sh
cd xs-env/XiangShan
make init
make emu CONFIG=MinimalConfig EMU_TRACE=1 -j6

你可能感兴趣的:(chisel,verilog,riscv,chisel,xiangshan,verilog,超标量处理器)