From: Luke Kenneth Casson Leighton Date: Tue, 13 Aug 2019 08:52:51 +0000 (+0100) Subject: add new swizzle table format X-Git-Tag: convert-csv-opcode-to-binary~4219 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=03b9b19914b76202f2fdef9d691e6cee78ee2d1a;p=libreriscv.git add new swizzle table format --- diff --git a/simple_v_extension/specification/mv.x.rst b/simple_v_extension/specification/mv.x.rst index 02f6d6a8c..1c81b7ca2 100644 --- a/simple_v_extension/specification/mv.x.rst +++ b/simple_v_extension/specification/mv.x.rst @@ -22,7 +22,7 @@ swizzle (only active on SV or P48/P64 when SUBVL!=0): +-----+-----+-----+-----+ | 7:6 | 5:4 | 3:2 | 1:0 | +-----+-----+-----+-----+ -| w | y | z | z | +| w | z | y | x | +-----+-----+-----+-----+ ---- diff --git a/simple_v_extension/swizzle_table_format.mdwn b/simple_v_extension/swizzle_table_format.mdwn new file mode 100644 index 000000000..d41521e7a --- /dev/null +++ b/simple_v_extension/swizzle_table_format.mdwn @@ -0,0 +1,14 @@ +Swizzle format: + +| 7:6 | 5:4 | 3:2 | 1:0 | +| --- | --- | --- | --- | +| w | z | y | x | + +16 bit format: + +| SwzCAM | (15..13) | (12..8) | (7..0)| +| ------ | - | - | ----- | +| 0 | rsvd0 | regidx0 | swiz0 | +| 1 | rsvd1 | regidx1 | swiz1 | +| 2 | rsvd2 | regidx2 | swiz2 | +| 3 | rsvd3 | regidx3 | swiz3 |