From: Luke Kenneth Casson Leighton Date: Tue, 16 Oct 2018 00:40:20 +0000 (+0100) Subject: add reshaping section X-Git-Tag: convert-csv-opcode-to-binary~4930 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=2df7d811ef300c3d1e36d0ee3488fcd98c57eb02;p=libreriscv.git add reshaping section --- diff --git a/simple_v_extension/specification.mdwn b/simple_v_extension/specification.mdwn index 22c22febb..894a62f9b 100644 --- a/simple_v_extension/specification.mdwn +++ b/simple_v_extension/specification.mdwn @@ -457,12 +457,12 @@ below shows how the permutation dimensionality order works: | permute | order | array format | | ------- | ----- | ------------------------ | -| 000 | 0,1,2 | (xdim+1){ydim+1)(zdim+1) | -| 001 | 0,2,1 | (xdim+1){zdim+1)(ydim+1) | -| 010 | 1,0,2 | (ydim+1){xdim+1)(zdim+1) | -| 011 | 1,2,0 | (ydim+1){zdim+1)(xdim+1) | -| 100 | 2,0,1 | (zdim+1){xdim+1)(ydim+1) | -| 101 | 2,1,0 | (zdim+1){ydim+1)(xdim+1) | +| 000 | 0,1,2 | (xdim+1)(ydim+1)(zdim+1) | +| 001 | 0,2,1 | (xdim+1)(zdim+1)(ydim+1) | +| 010 | 1,0,2 | (ydim+1)(xdim+1)(zdim+1) | +| 011 | 1,2,0 | (ydim+1)(zdim+1)(xdim+1) | +| 100 | 2,0,1 | (zdim+1)(xdim+1)(ydim+1) | +| 101 | 2,1,0 | (zdim+1)(ydim+1)(xdim+1) | In other words, the "permute" option changes the order in which nested for-loops over the array would be done. The algorithm below