aboutsummaryrefslogtreecommitdiffstats
path: root/src/synth/synth-expr.adb
diff options
context:
space:
mode:
authorTristan Gingold <tgingold@free.fr>2020-05-21 21:43:37 +0200
committerTristan Gingold <tgingold@free.fr>2020-05-21 21:43:37 +0200
commitb96e9b2d90f9c586b50c442b7fd1e4bb9972ac0d (patch)
tree5542b9ac3ec676e1df558f3ce0bb8070d56ff30b /src/synth/synth-expr.adb
parentbaca4659950b461dcbfec08046ad6360362bcf8b (diff)
downloadghdl-b96e9b2d90f9c586b50c442b7fd1e4bb9972ac0d.tar.gz
ghdl-b96e9b2d90f9c586b50c442b7fd1e4bb9972ac0d.tar.bz2
ghdl-b96e9b2d90f9c586b50c442b7fd1e4bb9972ac0d.zip
netlists-memories: set location on utrunc. Fix #1332
Diffstat (limited to 'src/synth/synth-expr.adb')
-rw-r--r--src/synth/synth-expr.adb1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/synth/synth-expr.adb b/src/synth/synth-expr.adb
index ccdbecd97..123cbd06d 100644
--- a/src/synth/synth-expr.adb
+++ b/src/synth/synth-expr.adb
@@ -1520,6 +1520,7 @@ package body Synth.Expr is
Inp := Build_Memidx
(Ctxt, Inp, Step * El_Typ.W, Max,
Inp_W + Width (Clog2 (Uns64 (Step * El_Typ.W))));
+ Set_Location (Inp, Name);
end if;
end Synth_Slice_Suffix;