Verilatorを WSL で動かしたい


Verilatorについてはこちら
https://www.veripool.org/projects/verilator/wiki/Intro

WSLのインストール

Microsoft storeからイントール。Ubuntuを選んでみる
VScodeから使えるように設定する
1. vscodeでCntl+Shift+X
2. Remote - WSLを検索してIntallボタンをクリック
3. vscodeを再起動
4. Remote Explorer(左の赤ライン)にすでにUbuntuが登録させているので、接続する(右の赤ライン)

4.接続できていると左下にWSL:Ubuntuと表示される

Verilatorのインストール

WSLのターミナルを開く

vscodeのメニューバー→Terminal→New Terminalとしてターミナルを開く

Verilatorのサイトの通りに実行

インストールの手順はこちら
https://www.veripool.org/projects/verilator/wiki/Installing

$ sudo apt-get install git make autoconf g++ flex bison libfl2 libfl-dev
$ git clone https://git.veripool.org/git/verilator
$ cd verilator 
$ autoconf 
$ ./configure
$ make![1.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/564039/ef809440-b007-fffd-bea2-e52b84e6accd.png)

$ sudo make install