From fab00f5429684078445a08ed967ec7c58870a6fc Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Wed, 19 Apr 2023 08:03:12 +0100 Subject: [PATCH] remove bracket syntax error --- openpower/sv/rfc/ls005.mdwn | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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 -- 2.30.2