aboutsummaryrefslogtreecommitdiffstats
path: root/src/synth/ghdlsynth.h
diff options
context:
space:
mode:
authorTristan Gingold <tgingold@free.fr>2019-12-02 21:18:37 +0100
committerTristan Gingold <tgingold@free.fr>2019-12-02 21:18:37 +0100
commite6a643ea1db47dc5fcf3893a81b3193869edbc38 (patch)
tree9b72a932ffb8f43a4900a5098296fff22b120048 /src/synth/ghdlsynth.h
parentd11ad2282157564dad9e53eccf9f2ec8a05bbda7 (diff)
downloadghdl-e6a643ea1db47dc5fcf3893a81b3193869edbc38.tar.gz
ghdl-e6a643ea1db47dc5fcf3893a81b3193869edbc38.tar.bz2
ghdl-e6a643ea1db47dc5fcf3893a81b3193869edbc38.zip
synth: support multiple synthesis.
Diffstat (limited to 'src/synth/ghdlsynth.h')
-rw-r--r--src/synth/ghdlsynth.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/synth/ghdlsynth.h b/src/synth/ghdlsynth.h
index ae43c2c72..0537ceaf7 100644
--- a/src/synth/ghdlsynth.h
+++ b/src/synth/ghdlsynth.h
@@ -122,10 +122,11 @@ namespace GhdlSynth {
GHDLSYNTH_ADA_WRAPPER_WWD(get_input_net, Net, Instance, Port_Idx);
- extern "C" unsigned int ghdlsynth__ghdl_synth(int argc, const char **argv);
- inline Module ghdl_synth(int argc, const char **argv) {
+ extern "C" unsigned int ghdlsynth__ghdl_synth(int init,
+ int argc, const char **argv);
+ inline Module ghdl_synth(int init, int argc, const char **argv) {
Module res;
- res.id = ghdlsynth__ghdl_synth(argc, argv);
+ res.id = ghdlsynth__ghdl_synth(init, argc, argv);
return res;
}