diff options
author | Jannis Harder <me@jix.one> | 2023-01-30 16:14:24 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-01-30 16:14:24 +0100 |
commit | c235802f4acf85b04c175a6b643aed17dd4c6f8c (patch) | |
tree | fdef94bb6219fec593acaf4b4ec2b75edc291805 /backends/rtlil/rtlil_backend.cc | |
parent | 419f91a2b99fbd1b61b09682947dbb782c19a97d (diff) | |
parent | b08a8807044980b7906362848f62291ede50e696 (diff) | |
download | yosys-c235802f4acf85b04c175a6b643aed17dd4c6f8c.tar.gz yosys-c235802f4acf85b04c175a6b643aed17dd4c6f8c.tar.bz2 yosys-c235802f4acf85b04c175a6b643aed17dd4c6f8c.zip |
Merge pull request #3650 from jix/rtlil_roundtrip_z_bits
backends/rtlil: Do not shorten a value with z bits to 'x
Diffstat (limited to 'backends/rtlil/rtlil_backend.cc')
-rw-r--r-- | backends/rtlil/rtlil_backend.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/backends/rtlil/rtlil_backend.cc b/backends/rtlil/rtlil_backend.cc index 7c7e26a93..574eb3aaa 100644 --- a/backends/rtlil/rtlil_backend.cc +++ b/backends/rtlil/rtlil_backend.cc @@ -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--) { |