mirror of
https://github.com/YosysHQ/yosys
synced 2025-06-20 04:43:40 +00:00
const: represent string constants as string, assert not accessed as bits
This commit is contained in:
parent
960bca0196
commit
498e0498c5
81 changed files with 764 additions and 690 deletions
|
@ -750,7 +750,7 @@ std::ostream &operator<<(std::ostream &os, const value<Bits> &val) {
|
|||
auto old_flags = os.flags(std::ios::right);
|
||||
auto old_width = os.width(0);
|
||||
auto old_fill = os.fill('0');
|
||||
os << val.bits << '\'' << std::hex;
|
||||
os << val.bits() << '\'' << std::hex;
|
||||
for (size_t n = val.chunks - 1; n != (size_t)-1; n--) {
|
||||
if (n == val.chunks - 1 && Bits % value<Bits>::chunk::bits != 0)
|
||||
os.width((Bits % value<Bits>::chunk::bits + 3) / 4);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue