aboutsummaryrefslogtreecommitdiffstats
path: root/README.md
diff options
context:
space:
mode:
authorTristan Gingold <tgingold@free.fr>2019-08-15 05:52:40 +0200
committerTristan Gingold <tgingold@free.fr>2019-08-15 05:52:40 +0200
commitd9ce5d06ecefc5cd3c3a8cbd6cb77afcee5185e9 (patch)
tree61a0bbe6e903b9073d89982a83317425c1346d41 /README.md
parent3dad306e1d7159b21dbd2aeadae016b634d26692 (diff)
downloadghdl-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.md29
1 files changed, 16 insertions, 13 deletions
diff --git a/README.md b/README.md
index ea1f7b0..b933d2c 100644
--- a/README.md
+++ b/README.md
@@ -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.