diff options
author | Clifford Wolf <clifford@clifford.at> | 2014-07-28 15:19:34 +0200 |
---|---|---|
committer | Clifford Wolf <clifford@clifford.at> | 2014-07-28 15:19:34 +0200 |
commit | 0598bc8708d942a0e533ddeba6a4f7b5effe7f39 (patch) | |
tree | d068e2ad8bf373fa2e845b65994de864cb6f1999 /frontends | |
parent | 27a872d1e7041be4894bc643a420587ff5894125 (diff) | |
download | yosys-0598bc8708d942a0e533ddeba6a4f7b5effe7f39.tar.gz yosys-0598bc8708d942a0e533ddeba6a4f7b5effe7f39.tar.bz2 yosys-0598bc8708d942a0e533ddeba6a4f7b5effe7f39.zip |
Fixed width detection for part selects
Diffstat (limited to 'frontends')
-rw-r--r-- | frontends/ast/genrtlil.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/frontends/ast/genrtlil.cc b/frontends/ast/genrtlil.cc index 5545fc169..9e1866832 100644 --- a/frontends/ast/genrtlil.cc +++ b/frontends/ast/genrtlil.cc @@ -599,8 +599,8 @@ void AstNode::detectSignWidthWorker(int &width_hint, bool &sign_hint, bool *foun } else this_width = range->range_left - range->range_right + 1; sign_hint = false; - } else - width_hint = std::max(width_hint, this_width); + } + width_hint = std::max(width_hint, this_width); if (!id_ast->is_signed) sign_hint = false; break; |