Skip to content

Commit

Permalink
Don't clear vcsr.vxsat
Browse files Browse the repository at this point in the history
Hardware should only set this bit. Clearing it is software's responsibility.

> then saturates the result to fit into SEW bits. If the result causes saturation, the vxsat bit is set.

Co-authored-by: Yui5427 <[email protected]>
  • Loading branch information
rez5427 and Yui5427 authored Oct 10, 2024
1 parent 87f8bb3 commit f7192a6
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions model/riscv_insts_vext_utils.sail
Original file line number Diff line number Diff line change
Expand Up @@ -418,7 +418,6 @@ function unsigned_saturation(len, elem) = {
vcsr[vxsat] = 0b1;
ones('m)
} else {
vcsr[vxsat] = 0b0;
elem['m - 1 .. 0]
}
}
Expand All @@ -433,7 +432,6 @@ function signed_saturation(len, elem) = {
vcsr[vxsat] = 0b1;
0b1 @ zeros('m - 1)
} else {
vcsr[vxsat] = 0b0;
elem['m - 1 .. 0]
};
}
Expand Down

0 comments on commit f7192a6

Please sign in to comment.