From: lkcl Date: Sat, 4 Jun 2022 17:43:13 +0000 (+0100) Subject: (no commit message) X-Git-Tag: opf_rfc_ls005_v1~1977 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=cbe97f6f2da0ccca80cad78715495919a09097cf;p=libreriscv.git --- 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) = .... +``` +