diff options
author | Tom Verbeure <hombre+github@gmail.com> | 2018-10-02 07:44:23 +0000 |
---|---|---|
committer | Jim Lawson <ucbjrl@berkeley.edu> | 2018-10-08 11:38:10 -0700 |
commit | b8950bd603aec17c1a0355f1e8d03c0ddecfbe80 (patch) | |
tree | 8c89ec0a22d7571530a96901f9a2f2ecf374c254 | |
parent | d3be61b9dc12f5eb084ae7b5cfaefb8fc8a04de1 (diff) | |
download | yosys-b8950bd603aec17c1a0355f1e8d03c0ddecfbe80.tar.gz yosys-b8950bd603aec17c1a0355f1e8d03c0ddecfbe80.tar.bz2 yosys-b8950bd603aec17c1a0355f1e8d03c0ddecfbe80.zip |
Fix for issue 594.
-rw-r--r-- | frontends/ast/genrtlil.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/frontends/ast/genrtlil.cc b/frontends/ast/genrtlil.cc index 0f7e910f3..c9345ff08 100644 --- a/frontends/ast/genrtlil.cc +++ b/frontends/ast/genrtlil.cc @@ -985,7 +985,8 @@ RTLIL::SigSpec AstNode::genRTLIL(int width_hint, bool sign_hint) use_const_chunk: if (children.size() != 0) { - log_assert(children[0]->type == AST_RANGE); + if (children[0]->type != AST_RANGE) + log_file_error(filename, linenum, "Single range expected.\n"); int source_width = id2ast->range_left - id2ast->range_right + 1; int source_offset = id2ast->range_right; if (!children[0]->range_valid) { |