diff options
author | Tristan Gingold <tgingold@free.fr> | 2019-08-15 05:52:40 +0200 |
---|---|---|
committer | Tristan Gingold <tgingold@free.fr> | 2019-08-15 05:52:40 +0200 |
commit | d9ce5d06ecefc5cd3c3a8cbd6cb77afcee5185e9 (patch) | |
tree | 61a0bbe6e903b9073d89982a83317425c1346d41 /README.md | |
parent | 3dad306e1d7159b21dbd2aeadae016b634d26692 (diff) | |
download | ghdl-yosys-plugin-d9ce5d06ecefc5cd3c3a8cbd6cb77afcee5185e9.tar.gz ghdl-yosys-plugin-d9ce5d06ecefc5cd3c3a8cbd6cb77afcee5185e9.tar.bz2 ghdl-yosys-plugin-d9ce5d06ecefc5cd3c3a8cbd6cb77afcee5185e9.zip |
Use libghdl to build the module. Update instructions.
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 29 |
1 files changed, 16 insertions, 13 deletions
@@ -1,7 +1,7 @@ # ghdlsynth-beta VHDL synthesis (based on ghdl) -This is awfully experimental and work in progress! +This is experimental and work in progress! TODO: Explain purpose of program. @@ -24,16 +24,25 @@ Get the latest version of GNAT: $ sudo apt-get install gnat-8 ``` -From ghdl, build and install `libghdlsynth.so`. You may need sudo permission. +Configure ghdl using at least `--enable-libghdl` and `--enable-synth`. +Build and install. ```sh -$ make libghdlsynth.so -$ make install.libghdlsynth.shared +$ ./configure --enable-libghdl --enable-synth +$ make +$ make install ``` From ghdlsynth-beta: ```sh -make GHDL_PREFIX=/usr/local/ +$ make +``` + +Note that if ghdl has been installed in a non-standard way or in a +directory that is not in your PATH, you must give the name of the ghdl +executable: +```sh +$ make GHDL=/my/path/to/ghdl ``` This generates `ghdl.so`, which can be used directly: @@ -45,18 +54,12 @@ $ yosys -m ghdl.so To install the module: ```sh -make GHDL_PREFIX=/usr/local/ install +make install ``` ## How to build as part of yosys (not recommended) -Get ghdl from github, -build and install -build and install `libghdlsynth.a`: -```sh -$ make libghdlsynth.a -$ make install.libghdlsynth -``` +Get and build ghdl as in the previous section. Get yosys. |