Skip to content

Commit

Permalink
Fix typo with fs3_sign
Browse files Browse the repository at this point in the history
Signed-off-by: aneels3 <b150023ec@nitsikkim.ac.in>
  • Loading branch information
aneels3 committed Sep 16, 2021
1 parent adfe6f7 commit 1be91de
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/isa/riscv_floating_point_instr.sv
Expand Up @@ -248,7 +248,7 @@ class riscv_floating_point_instr extends riscv_instr;
if (group inside {RV32F, RV64F}) begin
fs1_sign = get_fp_operand_sign(fs1_value, 31);
fs2_sign = get_fp_operand_sign(fs2_value, 31);
fs3_sign = get_fp_operand_sign(fs2_value, 31);
fs3_sign = get_fp_operand_sign(fs3_value, 31);
fd_sign = get_fp_operand_sign(fd_value, 31);
end else if (instr_name == FCVT_S_D) begin
fs1_sign = get_fp_operand_sign(fs1_value, 63);
Expand All @@ -259,7 +259,7 @@ class riscv_floating_point_instr extends riscv_instr;
end else begin
fs1_sign = get_fp_operand_sign(fs1_value, 63);
fs2_sign = get_fp_operand_sign(fs2_value, 63);
fs3_sign = get_fp_operand_sign(fs2_value, 63);
fs3_sign = get_fp_operand_sign(fs3_value, 63);
fd_sign = get_fp_operand_sign(fd_value, 63);
end
endfunction : pre_sample
Expand Down

0 comments on commit 1be91de

Please sign in to comment.