Skip to content

Commit

Permalink
minor edits
Browse files Browse the repository at this point in the history
  • Loading branch information
sylefeb committed Nov 13, 2023
1 parent d3f5040 commit 075e667
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions projects/ice-v/CPUs/ice-v-swirl.si
Original file line number Diff line number Diff line change
Expand Up @@ -637,9 +637,9 @@ $$if ICEV_MULDIV then
uint1 mulhsu = op[0,2] == 2b10;
uint1 signa = xa[31,1];
uint1 signb = xb[31,1]; // vvvvvvvvvv keep the sign?
int33 ma = {signa & (mulh | mulhsu),xa};
int33 mb = {signb & mulh, xb};
int64 mul = ma * mb; // multiply
int33 ma = {signa & (mulh | mulhsu),xa};
int33 mb = {signb & mulh, xb};
int64 mul = ma * mb; // multiply
uint1 signdiv = ~ op[0,1];
if (muldiv) {
//__display("[cycle %d] dividing:%b working:%b isdone(div):%b",cycle,dividing,working,isdone(div));
Expand Down

0 comments on commit 075e667

Please sign in to comment.