mirror of
https://github.com/YosysHQ/yosys
synced 2025-06-06 14:13:23 +00:00
cxxrtl: WIP: adjust comb display cells to only fire on change
Naming and use of statics to be possibly revised.
This commit is contained in:
parent
7f7c61c9f0
commit
843ad9331b
8 changed files with 95 additions and 16 deletions
|
@ -850,7 +850,7 @@ std::ostream &operator<<(std::ostream &os, const value_formatted<Bits> &vf)
|
|||
while (!val.is_zero()) {
|
||||
value<Bits> quotient;
|
||||
val.divideWithRemainder(value<Bits>{10u}, quotient);
|
||||
buf += '0' + val.template slice<3, 0>().val().template get<uint8_t>();
|
||||
buf += '0' + val.template trunc<(Bits > 4 ? 4 : Bits)>().val().template get<uint8_t>();
|
||||
val = quotient;
|
||||
}
|
||||
if (negative || vf.plus)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue