diff options
| author | Eddie Hung <eddie@fpgeh.com> | 2020-03-31 11:52:14 -0700 | 
|---|---|---|
| committer | Eddie Hung <eddie@fpgeh.com> | 2020-03-31 11:52:14 -0700 | 
| commit | 5132f4099b0a09b542cdb32c3bcdee24917ca5f1 (patch) | |
| tree | 14f911f2b7f70f9a7d08e3a0bf0715f700d6646b /frontends/ast | |
| parent | 3df66027e0de11913aac4b29d6b4ab79550bfb28 (diff) | |
| download | yosys-5132f4099b0a09b542cdb32c3bcdee24917ca5f1.tar.gz yosys-5132f4099b0a09b542cdb32c3bcdee24917ca5f1.tar.bz2 yosys-5132f4099b0a09b542cdb32c3bcdee24917ca5f1.zip | |
ast: simplify to fully populate dynamic slicing case transformation
Diffstat (limited to 'frontends/ast')
| -rw-r--r-- | frontends/ast/simplify.cc | 2 | 
1 files changed, 1 insertions, 1 deletions
| diff --git a/frontends/ast/simplify.cc b/frontends/ast/simplify.cc index 04c02d893..073b9cbbe 100644 --- a/frontends/ast/simplify.cc +++ b/frontends/ast/simplify.cc @@ -1727,7 +1727,7 @@ bool AstNode::simplify(bool const_fold, bool at_zero, bool in_lvalue, int stage,  		}  		did_something = true;  		newNode = new AstNode(AST_CASE, shift_expr); -		for (int i = 0; i <= source_width-result_width; i++) { +		for (int i = 0; i < source_width; i++) {  			int start_bit = children[0]->id2ast->range_right + i;  			AstNode *cond = new AstNode(AST_COND, mkconst_int(start_bit, true));  			AstNode *lvalue = children[0]->clone(); | 
