aboutsummaryrefslogtreecommitdiffstats
path: root/src/ghdl.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/ghdl.cc')
-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: