From 68978a5a6bc78b9d71985648ae4976119d3c640c Mon Sep 17 00:00:00 2001 From: Tristan Gingold Date: Sun, 5 Jun 2022 09:08:27 +0200 Subject: synth-vhdl_expr: adjust max computation for memidx. Fix #2073 --- src/synth/netlists-gates.ads | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/synth/netlists-gates.ads') diff --git a/src/synth/netlists-gates.ads b/src/synth/netlists-gates.ads index 6e78054af..305bd5158 100644 --- a/src/synth/netlists-gates.ads +++ b/src/synth/netlists-gates.ads @@ -264,8 +264,8 @@ package Netlists.Gates is -- addidx. -- Inputs: 0: index -- Params: 0: step - -- 1: max - -- OUT := IN0 * STEP, IN0 < MAX + -- 1: max (maximum value for index, so length - 1). + -- OUT := IN0 * STEP, IN0 <= MAX Id_Memidx : constant Module_Id := 90; -- Combine (simply add) indexes for dynamic insert or extract. -- cgit v1.2.3