Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Rocket-ChipとBOOMのシュミレーション環境準備について #25

Closed
ghost opened this issue Sep 11, 2022 · 2 comments
Closed

Comments

@ghost
Copy link

ghost commented Sep 11, 2022

WSL の ubuntu20.04 を利用しています。
本の78ページを参考に Chipyard のインストールと、ツールチェインのビルドまでうまくいったのですが、
Rocket-Chip のシュミレーション環境を用意するためのコマンドを実行すると、エラーが発生します。

$ make CONFIG=RocketConfig
Makefile:5: *** Did not find Verilator in PATH. Make sure all requirements are installed.  Stop.

Chipyard のインストールをするために、下記コマンドを実行しました。

$ cd /tmp 
$ git clone https://github.com/ucb-bar/chipyard.git -b 1.7.1 --depth 1
$ cd chipyard
$ ./scripts/init-submodules-no-riscv-tools.sh
$ MAKEFLAGS="-j<ncores>" ./scripts/build-toolchains.sh riscv-tools --ignore-qemu

お手数ですが、対処法についてご教示いただけますと幸いです。
よろしくお願いいたします。

@msyksphinz-self
Copy link
Owner

ご確認ありがとうございます。
本書内にVerilatorのインストール方法について明確に記載しておりませんでした。
Chipyard-1.7.1を使用している場合、リポジトリ内にVerilatorをダウンロードしてインストールするスクリプトが含まれています。

Ubuntuを使用している場合、scripts/ubuntu-req.shを参照してください。

# install verilator
git clone http://git.veripool.org/git/verilator
cd verilator
git checkout v4.034
autoconf && ./configure && make -j$(nproc) && sudo make install

@ghost
Copy link
Author

ghost commented Sep 12, 2022

ご回答いただきありがとうございます。
ご教示いただきました通り Verilator をダウンロードしたところ、
本の通りにコマンドを実行することができました。

丁寧にご対応いただきありがとうございました。

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant