diff options
-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 |