diff options
author | Jannis Harder <me@jix.one> | 2023-01-29 13:54:02 +0100 |
---|---|---|
committer | Jannis Harder <me@jix.one> | 2023-01-29 14:02:25 +0100 |
commit | b08a8807044980b7906362848f62291ede50e696 (patch) | |
tree | daafa09056ad4efef3860a883b9f52843a91670c /backends | |
parent | 541fdffff243bccb410de13ae3ef91797060fcd4 (diff) | |
download | yosys-b08a8807044980b7906362848f62291ede50e696.tar.gz yosys-b08a8807044980b7906362848f62291ede50e696.tar.bz2 yosys-b08a8807044980b7906362848f62291ede50e696.zip |
backends/rtlil: Do not shorten a value with z bits to 'x
Diffstat (limited to 'backends')
-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--) { |