mirror of
				https://github.com/YosysHQ/sby.git
				synced 2025-10-31 13:02:28 +00:00 
			
		
		
		
	Extract installation procedure to separate file
This commit is contained in:
		
							parent
							
								
									37a1fec120
								
							
						
					
					
						commit
						091222b87f
					
				
					 3 changed files with 123 additions and 122 deletions
				
			
		|  | @ -19,6 +19,7 @@ at the moment.) | ||||||
| .. toctree:: | .. toctree:: | ||||||
|    :maxdepth: 3 |    :maxdepth: 3 | ||||||
| 
 | 
 | ||||||
|  |    install.rst | ||||||
|    quickstart.rst |    quickstart.rst | ||||||
|    reference.rst |    reference.rst | ||||||
|    verilog.rst |    verilog.rst | ||||||
|  |  | ||||||
							
								
								
									
										122
									
								
								docs/source/install.rst
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										122
									
								
								docs/source/install.rst
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,122 @@ | ||||||
|  | Installing | ||||||
|  | ========== | ||||||
|  | 
 | ||||||
|  | Follow the instructions below to install SymbiYosys and its dependencies. | ||||||
|  | Yosys, SymbiYosys, and Z3 are non-optional. The other packages are only | ||||||
|  | required for some engine configurations. | ||||||
|  | 
 | ||||||
|  | Prerequisites | ||||||
|  | ------------- | ||||||
|  | 
 | ||||||
|  | Installing prerequisites (this command is for Ubuntu 16.04): | ||||||
|  | 
 | ||||||
|  | .. code-block:: text | ||||||
|  | 
 | ||||||
|  |    sudo apt-get install build-essential clang bison flex libreadline-dev \ | ||||||
|  |                         gawk tcl-dev libffi-dev git mercurial graphviz   \ | ||||||
|  |                         xdot pkg-config python python3 libftdi-dev gperf \ | ||||||
|  |                         libboost-program-options-dev autoconf libgmp-dev \ | ||||||
|  |                         cmake | ||||||
|  | 
 | ||||||
|  | Yosys, Yosys-SMTBMC and ABC | ||||||
|  | --------------------------- | ||||||
|  | 
 | ||||||
|  | http://www.clifford.at/yosys/ | ||||||
|  | 
 | ||||||
|  | https://people.eecs.berkeley.edu/~alanmi/abc/ | ||||||
|  | 
 | ||||||
|  | Next install Yosys, Yosys-SMTBMC and ABC (``yosys-abc``): | ||||||
|  | 
 | ||||||
|  | .. code-block:: text | ||||||
|  | 
 | ||||||
|  |    git clone https://github.com/YosysHQ/yosys.git yosys | ||||||
|  |    cd yosys | ||||||
|  |    make -j$(nproc) | ||||||
|  |    sudo make install | ||||||
|  | 
 | ||||||
|  | SymbiYosys | ||||||
|  | ---------- | ||||||
|  | 
 | ||||||
|  | https://github.com/YosysHQ/SymbiYosys | ||||||
|  | 
 | ||||||
|  | .. code-block:: text | ||||||
|  | 
 | ||||||
|  |    git clone https://github.com/YosysHQ/SymbiYosys.git SymbiYosys | ||||||
|  |    cd SymbiYosys | ||||||
|  |    sudo make install | ||||||
|  | 
 | ||||||
|  | Yices 2 | ||||||
|  | ------- | ||||||
|  | 
 | ||||||
|  | http://yices.csl.sri.com/ | ||||||
|  | 
 | ||||||
|  | .. code-block:: text | ||||||
|  | 
 | ||||||
|  |    git clone https://github.com/SRI-CSL/yices2.git yices2 | ||||||
|  |    cd yices2 | ||||||
|  |    autoconf | ||||||
|  |    ./configure | ||||||
|  |    make -j$(nproc) | ||||||
|  |    sudo make install | ||||||
|  | 
 | ||||||
|  | Z3 | ||||||
|  | -- | ||||||
|  | 
 | ||||||
|  | https://github.com/Z3Prover/z3/wiki | ||||||
|  | 
 | ||||||
|  | .. code-block:: text | ||||||
|  | 
 | ||||||
|  |    git clone https://github.com/Z3Prover/z3.git z3 | ||||||
|  |    cd z3 | ||||||
|  |    python scripts/mk_make.py | ||||||
|  |    cd build | ||||||
|  |    make -j$(nproc) | ||||||
|  |    sudo make install | ||||||
|  | 
 | ||||||
|  | super_prove | ||||||
|  | ----------- | ||||||
|  | 
 | ||||||
|  | https://bitbucket.org/sterin/super_prove_build | ||||||
|  | 
 | ||||||
|  | Download the right binary .tar.gz for your system from http://downloads.bvsrc.org/super_prove/ | ||||||
|  | and extract it to ``/usr/local/super_prove``. | ||||||
|  | 
 | ||||||
|  | Then create a wrapper script ``/usr/local/bin/suprove`` with the following contents: | ||||||
|  | 
 | ||||||
|  | .. code-block:: text | ||||||
|  | 
 | ||||||
|  |    #!/bin/bash | ||||||
|  |    tool=super_prove; if [ "$1" != "${1#+}" ]; then tool="${1#+}"; shift; fi | ||||||
|  |    exec /usr/local/super_prove/bin/${tool}.sh "$@" | ||||||
|  | 
 | ||||||
|  | Avy | ||||||
|  | --- | ||||||
|  | 
 | ||||||
|  | https://arieg.bitbucket.io/avy/ | ||||||
|  | 
 | ||||||
|  | .. code-block:: text | ||||||
|  | 
 | ||||||
|  |    git clone https://bitbucket.org/arieg/extavy.git | ||||||
|  |    cd extavy | ||||||
|  |    git submodule update --init | ||||||
|  |    mkdir build; cd build | ||||||
|  |    cmake -DCMAKE_BUILD_TYPE=Release .. | ||||||
|  |    make -j$(nproc) | ||||||
|  |    sudo cp avy/src/{avy,avybmc} /usr/local/bin/ | ||||||
|  | 
 | ||||||
|  | Boolector | ||||||
|  | --------- | ||||||
|  | 
 | ||||||
|  | http://fmv.jku.at/boolector/ | ||||||
|  | 
 | ||||||
|  | .. code-block:: text | ||||||
|  | 
 | ||||||
|  |    git clone https://github.com/boolector/boolector | ||||||
|  |    cd boolector | ||||||
|  |    ./contrib/setup-btor2tools.sh | ||||||
|  |    ./contrib/setup-lingeling.sh | ||||||
|  |    ./configure.sh | ||||||
|  |    make -C build -j$(nproc) | ||||||
|  |    sudo cp build/bin/{boolector,btor*} /usr/local/bin/ | ||||||
|  |    sudo cp deps/btor2tools/bin/btorsim /usr/local/bin/ | ||||||
|  | 
 | ||||||
|  | @ -5,128 +5,6 @@ Getting Started | ||||||
| The example files used in this chapter can be downloaded from `here | The example files used in this chapter can be downloaded from `here | ||||||
| <https://github.com/YosysHQ/SymbiYosys/tree/master/docs/examples/quickstart>`_. | <https://github.com/YosysHQ/SymbiYosys/tree/master/docs/examples/quickstart>`_. | ||||||
| 
 | 
 | ||||||
| Installing |  | ||||||
| ---------- |  | ||||||
| 
 |  | ||||||
| Follow the instructions below to install SymbiYosys and its dependencies. |  | ||||||
| Yosys, SymbiYosys, and Z3 are non-optional. The other packages are only |  | ||||||
| required for some engine configurations. |  | ||||||
| 
 |  | ||||||
| Prerequisites |  | ||||||
| ~~~~~~~~~~~~~ |  | ||||||
| 
 |  | ||||||
| Installing prerequisites (this command is for Ubuntu 16.04): |  | ||||||
| 
 |  | ||||||
| .. code-block:: text |  | ||||||
| 
 |  | ||||||
|    sudo apt-get install build-essential clang bison flex libreadline-dev \ |  | ||||||
|                         gawk tcl-dev libffi-dev git mercurial graphviz   \ |  | ||||||
|                         xdot pkg-config python python3 libftdi-dev gperf \ |  | ||||||
|                         libboost-program-options-dev autoconf libgmp-dev \ |  | ||||||
|                         cmake |  | ||||||
| 
 |  | ||||||
| Yosys, Yosys-SMTBMC and ABC |  | ||||||
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~ |  | ||||||
| 
 |  | ||||||
| http://www.clifford.at/yosys/ |  | ||||||
| 
 |  | ||||||
| https://people.eecs.berkeley.edu/~alanmi/abc/ |  | ||||||
| 
 |  | ||||||
| Next install Yosys, Yosys-SMTBMC and ABC (``yosys-abc``): |  | ||||||
| 
 |  | ||||||
| .. code-block:: text |  | ||||||
| 
 |  | ||||||
|    git clone https://github.com/YosysHQ/yosys.git yosys |  | ||||||
|    cd yosys |  | ||||||
|    make -j$(nproc) |  | ||||||
|    sudo make install |  | ||||||
| 
 |  | ||||||
| SymbiYosys |  | ||||||
| ~~~~~~~~~~ |  | ||||||
| 
 |  | ||||||
| https://github.com/YosysHQ/SymbiYosys |  | ||||||
| 
 |  | ||||||
| .. code-block:: text |  | ||||||
| 
 |  | ||||||
|    git clone https://github.com/YosysHQ/SymbiYosys.git SymbiYosys |  | ||||||
|    cd SymbiYosys |  | ||||||
|    sudo make install |  | ||||||
| 
 |  | ||||||
| Yices 2 |  | ||||||
| ~~~~~~~ |  | ||||||
| 
 |  | ||||||
| http://yices.csl.sri.com/ |  | ||||||
| 
 |  | ||||||
| .. code-block:: text |  | ||||||
| 
 |  | ||||||
|    git clone https://github.com/SRI-CSL/yices2.git yices2 |  | ||||||
|    cd yices2 |  | ||||||
|    autoconf |  | ||||||
|    ./configure |  | ||||||
|    make -j$(nproc) |  | ||||||
|    sudo make install |  | ||||||
| 
 |  | ||||||
| Z3 |  | ||||||
| ~~ |  | ||||||
| 
 |  | ||||||
| https://github.com/Z3Prover/z3/wiki |  | ||||||
| 
 |  | ||||||
| .. code-block:: text |  | ||||||
| 
 |  | ||||||
|    git clone https://github.com/Z3Prover/z3.git z3 |  | ||||||
|    cd z3 |  | ||||||
|    python scripts/mk_make.py |  | ||||||
|    cd build |  | ||||||
|    make -j$(nproc) |  | ||||||
|    sudo make install |  | ||||||
| 
 |  | ||||||
| super_prove |  | ||||||
| ~~~~~~~~~~~ |  | ||||||
| 
 |  | ||||||
| https://bitbucket.org/sterin/super_prove_build |  | ||||||
| 
 |  | ||||||
| Download the right binary .tar.gz for your system from http://downloads.bvsrc.org/super_prove/ |  | ||||||
| and extract it to ``/usr/local/super_prove``. |  | ||||||
| 
 |  | ||||||
| Then create a wrapper script ``/usr/local/bin/suprove`` with the following contents: |  | ||||||
| 
 |  | ||||||
| .. code-block:: text |  | ||||||
| 
 |  | ||||||
|    #!/bin/bash |  | ||||||
|    tool=super_prove; if [ "$1" != "${1#+}" ]; then tool="${1#+}"; shift; fi |  | ||||||
|    exec /usr/local/super_prove/bin/${tool}.sh "$@" |  | ||||||
| 
 |  | ||||||
| Avy |  | ||||||
| ~~~ |  | ||||||
| 
 |  | ||||||
| https://arieg.bitbucket.io/avy/ |  | ||||||
| 
 |  | ||||||
| .. code-block:: text |  | ||||||
| 
 |  | ||||||
|    git clone https://bitbucket.org/arieg/extavy.git |  | ||||||
|    cd extavy |  | ||||||
|    git submodule update --init |  | ||||||
|    mkdir build; cd build |  | ||||||
|    cmake -DCMAKE_BUILD_TYPE=Release .. |  | ||||||
|    make -j$(nproc) |  | ||||||
|    sudo cp avy/src/{avy,avybmc} /usr/local/bin/ |  | ||||||
| 
 |  | ||||||
| Boolector |  | ||||||
| ~~~~~~~~~ |  | ||||||
| 
 |  | ||||||
| http://fmv.jku.at/boolector/ |  | ||||||
| 
 |  | ||||||
| .. code-block:: text |  | ||||||
| 
 |  | ||||||
|    git clone https://github.com/boolector/boolector |  | ||||||
|    cd boolector |  | ||||||
|    ./contrib/setup-btor2tools.sh |  | ||||||
|    ./contrib/setup-lingeling.sh |  | ||||||
|    ./configure.sh |  | ||||||
|    make -C build -j$(nproc) |  | ||||||
|    sudo cp build/bin/{boolector,btor*} /usr/local/bin/ |  | ||||||
|    sudo cp deps/btor2tools/bin/btorsim /usr/local/bin/ |  | ||||||
| 
 |  | ||||||
| First step: A simple BMC example | First step: A simple BMC example | ||||||
| -------------------------------- | -------------------------------- | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue