aboutsummaryrefslogtreecommitdiffstats
path: root/src/synth
diff options
context:
space:
mode:
authorcderrien <65495526+cderrien@users.noreply.github.com>2022-11-07 23:14:22 +0100
committertgingold <tgingold@users.noreply.github.com>2022-12-16 18:26:46 +0100
commitb317a3a6c9f4f2f0eeb36ca4d124ef35567a897e (patch)
treed353930c8519c4484611d692d25928309a1b196d /src/synth
parenta7ee2a9a3c0593a16aab6795eec4d5bc569aebbd (diff)
downloadghdl-b317a3a6c9f4f2f0eeb36ca4d124ef35567a897e.tar.gz
ghdl-b317a3a6c9f4f2f0eeb36ca4d124ef35567a897e.tar.bz2
ghdl-b317a3a6c9f4f2f0eeb36ca4d124ef35567a897e.zip
Restore latch inference.
Diffstat (limited to 'src/synth')
-rw-r--r--src/synth/netlists-inference.adb6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/synth/netlists-inference.adb b/src/synth/netlists-inference.adb
index 5850ad204..35888b2d4 100644
--- a/src/synth/netlists-inference.adb
+++ b/src/synth/netlists-inference.adb
@@ -916,11 +916,7 @@ package body Netlists.Inference is
(Loc, "latch infered for net %n (use --latches)", (1 => +Name));
end if;
- if False then
- return Infere_Latch_Create (Ctxt, Val, Prev_Val, Last_Mux, Loc);
- else
- return Val;
- end if;
+ return Infere_Latch_Create (Ctxt, Val, Prev_Val, Last_Mux, Loc);
end Infere_Latch;
-- VAL is the value to be assigned to a wire at offset OFF.