3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2025-04-24 01:25:33 +00:00

cxxrtl: Fix value::shl

This commit is contained in:
Merry 2023-12-13 12:02:30 +00:00
parent 1c8e58a736
commit ff53f3d2b6
5 changed files with 30 additions and 0 deletions

View file

@ -419,6 +419,7 @@ struct value : public expr_base<value<Bits>> {
carry = (shift_bits == 0) ? 0
: data[n] >> (chunk::bits - shift_bits);
}
result.data[result.chunks - 1] &= result.msb_mask;
return result;
}