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:
commit
8e6ac65dd8
4 changed files with 58 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue