From 1fdec9bb2d9c572d41a707e0abb4e19ad659bd68 Mon Sep 17 00:00:00 2001 From: Aqib Hussain Shah <57953597+aaqibhs76@users.noreply.github.com> Date: Fri, 2 Dec 2022 15:25:59 +0500 Subject: [PATCH] Corected_SRA_Check.svi The check for "Srai "and "Srli" is reversed. 5: mn = opcode[30] ? "srli": "srai" // As per "https://stackoverflow.com/questions/39489318/risc-v-implementing-slli-srli-and-srai"s --- testbench/{dasm.svi => Corected_SRA_Check.svi} | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) rename testbench/{dasm.svi => Corected_SRA_Check.svi} (99%) diff --git a/testbench/dasm.svi b/testbench/Corected_SRA_Check.svi similarity index 99% rename from testbench/dasm.svi rename to testbench/Corected_SRA_Check.svi index aef232c..1c03aea 100644 --- a/testbench/dasm.svi +++ b/testbench/Corected_SRA_Check.svi @@ -305,7 +305,7 @@ string mn; imm = opcode[24:20]; case(opcode[14:12]) 1: mn = "slli"; - 5: mn = opcode[30] ? "srli": "srai"; + 5: mn = opcode[30] ? "srai": "srli"; endcase return $sformatf("%s %s,%s,%0d", mn, abi_reg[opcode[11:7]], abi_reg[opcode[19:15]], imm);