diff options
author | Tristan Gingold <tgingold@free.fr> | 2019-10-21 05:46:20 +0200 |
---|---|---|
committer | Tristan Gingold <tgingold@free.fr> | 2019-10-21 05:46:20 +0200 |
commit | 12c91fa8d3ff3a601d77f3eb22e826e4612e5be6 (patch) | |
tree | 1f0125c48d27dd7587a126c94fe59d68b6a35765 /src | |
parent | 744207aa4e60964af4f58293aae59f85d3eb01c7 (diff) | |
download | ghdl-12c91fa8d3ff3a601d77f3eb22e826e4612e5be6.tar.gz ghdl-12c91fa8d3ff3a601d77f3eb22e826e4612e5be6.tar.bz2 ghdl-12c91fa8d3ff3a601d77f3eb22e826e4612e5be6.zip |
nelists-memories: reject memories with reset.
Diffstat (limited to 'src')
-rw-r--r-- | src/synth/netlists-memories.adb | 5 |
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; |