From: Luke Kenneth Casson Leighton Date: Wed, 19 Apr 2023 07:03:12 +0000 (+0100) Subject: remove bracket syntax error X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=fab00f5429684078445a08ed967ec7c58870a6fc;p=libreriscv.git remove bracket syntax error --- diff --git a/openpower/sv/rfc/ls005.mdwn b/openpower/sv/rfc/ls005.mdwn index 2d82beac7..323a05f32 100644 --- a/openpower/sv/rfc/ls005.mdwn +++ b/openpower/sv/rfc/ls005.mdwn @@ -290,10 +290,10 @@ The RTL for `extsb` becomes: ``` in <- (RA)[XLEN-8:XLEN-1] # extract first byte - if XLEN = 8 then RT <- in[7]] * 8 # 1->8 - if XLEN = 16 then RT <- in[6]] * 15 || in[7] # 2->16 - if XLEN = 32 then RT <- in[4]] * 29 || in[5:7] # 4->32 - if XLEN = 64 then RT <- in[0]] * 56 || in[1:7] # 8->64 + if XLEN = 8 then RT <- in[7] * 8 # 1->8 + if XLEN = 16 then RT <- in[6] * 15 || in[7] # 2->16 + if XLEN = 32 then RT <- in[4] * 29 || in[5:7] # 4->32 + if XLEN = 64 then RT <- in[0] * 56 || in[1:7] # 8->64 ``` And `extsh` and `extsw` follow similar logic. Interestingly there is