1.检查docker镜像是否存在本地
执行命令
sudo docker images
2.启动镜像
执行命令
sudo docker run -it zddong/chipyard-image:1.8.0 /bin/bash
此时已经进入容器内部,可以执行bash命令操控容器
3.测试
① 设置环境变量
执行命令
cd chipyard/
source ./env.sh
执行成功,前缀会发生变化
② 生成boom
执行命令
cd sims/verilator/
make CONFIG=SmallBoomConfig
运行成功可以发现当前目录下多了一个名为simulator-chipyard-SmallBoomConfig
可执行程序
③ 运行hello程序
使用刚才生成的可执行程序运行hello程序
./simulator-chipyard-SmallBoomConfig ../../tests/hello.riscv
终端打印出hello
说明运行成功