aboutsummaryrefslogtreecommitdiffstats
path: root/src/synth/netlists-inference.adb
diff options
context:
space:
mode:
authorTristan Gingold <tgingold@free.fr>2020-07-25 08:14:01 +0200
committerTristan Gingold <tgingold@free.fr>2020-07-25 11:28:49 +0200
commitd36c8df337d2d4fc35db8247d7ca920caabc089e (patch)
tree13c2f7ddccfdd0ff3b1eec79388a8fafc616ceb6 /src/synth/netlists-inference.adb
parent04cd83fb46bee1e7a7b37be95bee73449af9c8b8 (diff)
downloadghdl-d36c8df337d2d4fc35db8247d7ca920caabc089e.tar.gz
ghdl-d36c8df337d2d4fc35db8247d7ca920caabc089e.tar.bz2
ghdl-d36c8df337d2d4fc35db8247d7ca920caabc089e.zip
netlists-inference: do not infere a memory in case of reset.
Fix ghdl/ghdl-yosys-plugin#128
Diffstat (limited to 'src/synth/netlists-inference.adb')
-rw-r--r--src/synth/netlists-inference.adb1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/synth/netlists-inference.adb b/src/synth/netlists-inference.adb
index d2a749968..ecd90bb22 100644
--- a/src/synth/netlists-inference.adb
+++ b/src/synth/netlists-inference.adb
@@ -336,6 +336,7 @@ package body Netlists.Inference is
Res : Net;
begin
if Off = 0
+ and then Rst = No_Net
and then not Synth.Flags.Flag_Debug_Nomemory1
and then Can_Infere_RAM (Data, Prev_Val)
then