aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorTristan Gingold <tgingold@free.fr>2019-12-03 21:33:05 +0100
committerTristan Gingold <tgingold@free.fr>2019-12-03 21:33:31 +0100
commit1716e755e14aaaccc60a1bb9fd1e2949c6600c6c (patch)
tree7fc3f25f7479af3fc6050be6a8c91c93581bc410 /src
parentde1a576d22c27df2e6e66335fce81e35b56f3d67 (diff)
downloadghdl-yosys-plugin-1716e755e14aaaccc60a1bb9fd1e2949c6600c6c.tar.gz
ghdl-yosys-plugin-1716e755e14aaaccc60a1bb9fd1e2949c6600c6c.tar.bz2
ghdl-yosys-plugin-1716e755e14aaaccc60a1bb9fd1e2949c6600c6c.zip
Fix init input for iadff. For #76
Diffstat (limited to 'src')
-rw-r--r--src/ghdl.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ghdl.cc b/src/ghdl.cc
index 2a06c53..f34602f 100644
--- a/src/ghdl.cc
+++ b/src/ghdl.cc
@@ -694,7 +694,7 @@ static void import_module(RTLIL::Design *design, GhdlSynth::Module m)
// For iadff, the initial value is set on the output
// wire.
if (id == Id_Iadff) {
- net_map[get_output(inst, 0).id]->attributes["\\init"] = IN(2).as_const();
+ net_map[get_output(inst, 0).id]->attributes["\\init"] = IN(4).as_const();
}
break;
case Id_Mux4: