aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorClifford Wolf <clifford@clifford.at>2018-10-02 09:51:44 +0200
committerGitHub <noreply@github.com>2018-10-02 09:51:44 +0200
commit0a7751a11bab536dbdc1534fc8c98033d4998bcb (patch)
treeab0aeeea5b359d51e5215b5706d77386e766705b
parent62424ef3de67dc8077a0ca03b302966f0284730f (diff)
parentcb214fc01d95ed9df7de10ccffa3471a1dc91659 (diff)
downloadyosys-0a7751a11bab536dbdc1534fc8c98033d4998bcb.tar.gz
yosys-0a7751a11bab536dbdc1534fc8c98033d4998bcb.tar.bz2
yosys-0a7751a11bab536dbdc1534fc8c98033d4998bcb.zip
Merge pull request #646 from tomverbeure/issue594
Fix for issue 594.
-rw-r--r--frontends/ast/genrtlil.cc3
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) {