diff options
author | Tristan Gingold <tgingold@free.fr> | 2021-06-20 07:53:11 +0200 |
---|---|---|
committer | Tristan Gingold <tgingold@free.fr> | 2021-06-21 08:02:32 +0200 |
commit | 512457352b96a5ac272269aebf283cecc0b8500f (patch) | |
tree | 85e982aa5c22abd83ef12642c4a7b5c9627f1897 | |
parent | 37920daab7a1cdcdb7f6b54c2799d73b58634524 (diff) | |
download | ghdl-512457352b96a5ac272269aebf283cecc0b8500f.tar.gz ghdl-512457352b96a5ac272269aebf283cecc0b8500f.tar.bz2 ghdl-512457352b96a5ac272269aebf283cecc0b8500f.zip |
synth-vhdl_expr: adjust width of memidx for indexed names.
In general the width of memidx is ignored, but it's better to correctly set it
-rw-r--r-- | src/synth/synth-vhdl_expr.adb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/synth/synth-vhdl_expr.adb b/src/synth/synth-vhdl_expr.adb index 9b2072865..72f3103af 100644 --- a/src/synth/synth-vhdl_expr.adb +++ b/src/synth/synth-vhdl_expr.adb @@ -1231,7 +1231,7 @@ package body Synth.Vhdl_Expr is Ivoff := Build_Memidx (Get_Build (Syn_Inst), Ivoff, El_Typ.W * Stride, Bnd.Len - 1, - Width (Clog2 (Uns64 (Stride * Bnd.Len)))); + Width (Clog2 (Uns64 (El_Typ.W * Stride * Bnd.Len)))); Set_Location (Ivoff, Idx_Expr); if Voff = No_Net then |