3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2025-05-13 02:34:44 +00:00

Merge branch 'YosysHQ:main' into main

This commit is contained in:
Akash Levy 2024-10-13 10:59:19 -07:00 committed by GitHub
commit 8e6ac65dd8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 58 additions and 1 deletions

View file

@ -703,6 +703,14 @@ struct RTLIL::Const
return ret;
}
// find the MSB without redundant leading bits
size_t get_min_size(bool is_signed) const;
// compress representation to the minimum required bits
void compress(bool is_signed = false);
std::optional<int> as_int_compress(bool is_signed) const;
void extu(int width) {
bits.resize(width, RTLIL::State::S0);
}