Mixed usage of "downto" and "to" in indexing in AGWB VHDL code
wzab opened this issue · 1 comments
Current code of AGWB tends to use downto
when indexing bit vectors and to
for arrays.
In the code that we are using it is handled in different way. In GBT-FPGA they often use the "old" convention.
In general-cores there are different cases. Just take a look at:
and
(Both are from the same version!)
Now @m-kru suggests, that we shoud clean it up. So we are switching to using downto
, wherever possible,
OK. The indexing order is fixed. The "downto" is used wherever possible (even a few arrays of integers are indexed with "downto", which resulted in necessity to reverse tuples:
Line 496 in a1cdf1c
Line 1519 in a1cdf1c
or to reorganize loops:
Line 1487 in a1cdf1c
)
Anyway, it seems that now the code generation works correctly.
I close the issue.