sync_up: Discussion page for tomorrow's meeting
[libreriscv.git] / HDL_workflow / iverilog.mdwn
1 # Installation instructions for Icarus Verilog
2
3 ## Setting up new debootstrap and chroot into it
4
5 Run the following if you wish to isolate the iverilog build
6 from other software (reproducible builds) or use the schroot
7 auto-preparation script here:
8 <https://git.libre-soc.org/?p=dev-env-setup.git;a=blob;f=mk-deb-chroot;hb=HEAD>
9
10 export MY_CHROOT=/opt/chroot/iverilog
11 mkdir $MY_CHROOT
12 debootstrap stable $MY_CHROOT http://deb.debian.org/debian/
13 mount -t proc proc $MY_CHROOT/proc
14 mount -t sysfs sysfs $MY_CHROOT/sys
15 mount -t devpts devpts $MY_CHROOT/dev/pts/
16 chroot $MY_CHROOT /bin/bash
17
18 The dev-env-setup chroot script is a little more sophisticated
19 than the above
20
21 ## Steps to compile Icarus Verilog
22
23 ### Necessary software to install
24
25 apt-get install git autoconf make g++ bison flex gperf libreadline6-dev
26
27 ### Build Icarus Verilog
28
29 git clone https://github.com/steveicarus/iverilog.git
30
31 cd iverilog
32 git checkout v11_0
33 sh autoconf.sh
34 ./configure --prefix=/usr/local/iverilog
35 make -j$(nproc)
36 make check
37 make install
38
39 Please adjust the install paths for iverilog.
40