From: Luke Kenneth Casson Leighton Date: Wed, 18 Sep 2019 07:23:07 +0000 (+0100) Subject: add elwidth override on MV.X X-Git-Tag: convert-csv-opcode-to-binary~4033 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=7d0821744c2d9365d2d69ba933adc6fa6f26aa0a;p=libreriscv.git add elwidth override on MV.X --- diff --git a/simple_v_extension/specification/mv.x.rst b/simple_v_extension/specification/mv.x.rst index b5ad91830..b6abefc7f 100644 --- a/simple_v_extension/specification/mv.x.rst +++ b/simple_v_extension/specification/mv.x.rst @@ -29,7 +29,7 @@ swizzle (only active on SV or P48/P64 when SUBVL!=0): Pseudocode for element width part of MV.X: -.. code:: python +.. code:: def mv_x(rd, rs1, funct4): elwidth = (funct4>>2) & 0x3 bitwidth = {0:XLEN, 1:8, 2:16, 3:32}[elwidth] # get bits per el