aboutsummaryrefslogtreecommitdiffstats
path: root/src/synth
diff options
context:
space:
mode:
authorTristan Gingold <tgingold@free.fr>2019-10-21 05:46:20 +0200
committerTristan Gingold <tgingold@free.fr>2019-10-21 05:46:20 +0200
commit12c91fa8d3ff3a601d77f3eb22e826e4612e5be6 (patch)
tree1f0125c48d27dd7587a126c94fe59d68b6a35765 /src/synth
parent744207aa4e60964af4f58293aae59f85d3eb01c7 (diff)
downloadghdl-12c91fa8d3ff3a601d77f3eb22e826e4612e5be6.tar.gz
ghdl-12c91fa8d3ff3a601d77f3eb22e826e4612e5be6.tar.bz2
ghdl-12c91fa8d3ff3a601d77f3eb22e826e4612e5be6.zip
nelists-memories: reject memories with reset.
Diffstat (limited to 'src/synth')
-rw-r--r--src/synth/netlists-memories.adb5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/synth/netlists-memories.adb b/src/synth/netlists-memories.adb
index dde9ee690..e56990c03 100644
--- a/src/synth/netlists-memories.adb
+++ b/src/synth/netlists-memories.adb
@@ -162,7 +162,10 @@ package body Netlists.Memories is
elsif Get_Driver (I1_Inp) = Orig_Net then
Data := Get_Driver (I0_Inp);
else
- raise Internal_Error;
+ Info_Msg_Synth
+ (+Data_Inst, "write to a non memory %n", (1 => +Orig));
+ Data_W := 0;
+ return;
end if;
Data_Inst := Get_Net_Parent (Data);
end;