From 1716e755e14aaaccc60a1bb9fd1e2949c6600c6c Mon Sep 17 00:00:00 2001 From: Tristan Gingold Date: Tue, 3 Dec 2019 21:33:05 +0100 Subject: Fix init input for iadff. For #76 --- src/ghdl.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/ghdl.cc') 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: -- cgit v1.2.3