projects
/
yosys.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d3be61b
)
Fix for issue 594.
author
Tom Verbeure
<hombre+github@gmail.com>
Tue, 2 Oct 2018 07:44:23 +0000
(07:44 +0000)
committer
Jim Lawson
<ucbjrl@berkeley.edu>
Mon, 8 Oct 2018 18:38:10 +0000
(11:38 -0700)
frontends/ast/genrtlil.cc
patch
|
blob
|
history
diff --git
a/frontends/ast/genrtlil.cc
b/frontends/ast/genrtlil.cc
index 0f7e910f35a57f041739e866fe085c4bc81437e2..c9345ff081a2a74efcf9e2598e5068d324108642 100644
(file)
--- 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) {