From cbe97f6f2da0ccca80cad78715495919a09097cf Mon Sep 17 00:00:00 2001 From: lkcl Date: Sat, 4 Jun 2022 18:43:13 +0100 Subject: [PATCH] --- openpower/sv/shape_table_format.mdwn | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/openpower/sv/shape_table_format.mdwn b/openpower/sv/shape_table_format.mdwn index 04374e61c..9def0fc8a 100644 --- a/openpower/sv/shape_table_format.mdwn +++ b/openpower/sv/shape_table_format.mdwn @@ -100,3 +100,19 @@ In other words, the "permute" option changes the order in which nested for-loops over the array would be done. See executable python reference code for further details. +*Note: permute=0b110 and permute=0b111 enable Indexed REMAP Mode, +described below* + +## Indexed Mode + +Indexed Mode activates reading of the element indices from the GPR. +In its simplest form (without elwidth overrides): + +``` +def index_remap(i): + return GPR(SVSHAPE.SVGPR+i) + +for i in 0..VL-1: + GPR(RT + indexed_remap(i) + SVSHAPE.offset) = .... +``` + -- 2.30.2