mirror of
https://github.com/lowRISC/ibex.git
synced 2025-04-22 04:47:25 -04:00
Fix comparison bug in ALU
This commit is contained in:
parent
b957c6f682
commit
9f5beb527f
1 changed files with 2 additions and 2 deletions
4
alu.sv
4
alu.sv
|
@ -167,9 +167,9 @@ module riscv_alu
|
|||
end
|
||||
|
||||
assign is_equal = (operand_a_i == operand_b_i);
|
||||
assign is_greater = $signed({operand_a_i[31] & cmp_signed, operand_a_i[30:0]})
|
||||
assign is_greater = $signed({operand_a_i[31] & cmp_signed, operand_a_i[31:0]})
|
||||
>
|
||||
$signed({operand_b_i[31] & cmp_signed, operand_b_i[30:0]});
|
||||
$signed({operand_b_i[31] & cmp_signed, operand_b_i[31:0]});
|
||||
|
||||
// generate comparison result
|
||||
always_comb
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue