From: lkcl Date: Sat, 4 Jun 2022 18:16:48 +0000 (+0100) Subject: (no commit message) X-Git-Tag: opf_rfc_ls005_v1~1974 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=11a71b3bb0977711cfbd9e8fc58f1d970dc2ee9c;p=libreriscv.git --- diff --git a/openpower/sv/shape_table_format.mdwn b/openpower/sv/shape_table_format.mdwn index 6e54cacff..dfa3ed970 100644 --- a/openpower/sv/shape_table_format.mdwn +++ b/openpower/sv/shape_table_format.mdwn @@ -120,7 +120,8 @@ Matrix-style reordering still applies to the indices, except limited to up to 2 Dimensions (X,Y). Ordering is therefore limited to (X,Y) or (Y,X). Only one dimension may optionally be skipped. Inversion of either X or Y or both is possible. Pseudocode for Indexed Mode (without elwidth -overrides) may be written in terms of Matrix Mode: +overrides) may be written in terms of Matrix Mode, specifically +purposed to ensure that the 3rd dimension (Z) has no effect: ``` def index_remap(ISHAPE, i): @@ -128,7 +129,7 @@ def index_remap(ISHAPE, i): MSHAPE.invxyz = 0b0 || ISHAPE.invxy MSHAPE.xdimsz = ISHAPE.xdimsz MSHAPE.ydimsz = ISHAPE.ydimsz - MSHAPE.zdimsz = 0 + MSHAPE.zdimsz = MAXVL-1 if ISHAPE.permute = 0b110 # 0,1 MSHAPE.permute = 0b000 # 0,1,2 if ISHAPE.permute = 0b111 # 1,0