mirror of
https://github.com/YosysHQ/yosys
synced 2025-04-24 01:25:33 +00:00
Ensure signed constants are correctly parsed, represented, and exported in RTLIL. Add a test to check parsing and exporting
This commit is contained in:
parent
4cddc19994
commit
91e3773b51
4 changed files with 29 additions and 2 deletions
|
@ -51,6 +51,9 @@ void RTLIL_BACKEND::dump_const(std::ostream &f, const RTLIL::Const &data, int wi
|
|||
}
|
||||
}
|
||||
f << stringf("%d'", width);
|
||||
if (data.flags & RTLIL::CONST_FLAG_SIGNED) {
|
||||
f << stringf("s");
|
||||
}
|
||||
if (data.is_fully_undef_x_only()) {
|
||||
f << "x";
|
||||
} else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue