aboutsummaryrefslogtreecommitdiffstats
path: root/src/synth/netlists-gates.ads
diff options
context:
space:
mode:
authorTristan Gingold <tgingold@free.fr>2022-06-05 09:08:27 +0200
committerTristan Gingold <tgingold@free.fr>2022-06-05 09:08:27 +0200
commit68978a5a6bc78b9d71985648ae4976119d3c640c (patch)
treea189dc1aa8b1af40288bde38801da5e935252d8a /src/synth/netlists-gates.ads
parent58fce267c29f44ccec558ef23b499f1b2917861b (diff)
downloadghdl-68978a5a6bc78b9d71985648ae4976119d3c640c.tar.gz
ghdl-68978a5a6bc78b9d71985648ae4976119d3c640c.tar.bz2
ghdl-68978a5a6bc78b9d71985648ae4976119d3c640c.zip
synth-vhdl_expr: adjust max computation for memidx. Fix #2073
Diffstat (limited to 'src/synth/netlists-gates.ads')
-rw-r--r--src/synth/netlists-gates.ads4
1 files changed, 2 insertions, 2 deletions
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.