mirror of
https://github.com/YosysHQ/yosys
synced 2025-04-24 01:25:33 +00:00
backends/rtlil: Do not shorten a value with z bits to 'x
This commit is contained in:
parent
541fdffff2
commit
b08a880704
4 changed files with 22 additions and 1 deletions
|
@ -51,7 +51,7 @@ void RTLIL_BACKEND::dump_const(std::ostream &f, const RTLIL::Const &data, int wi
|
|||
}
|
||||
}
|
||||
f << stringf("%d'", width);
|
||||
if (data.is_fully_undef()) {
|
||||
if (data.is_fully_undef_x_only()) {
|
||||
f << "x";
|
||||
} else {
|
||||
for (int i = offset+width-1; i >= offset; i--) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue