diff options
author | Clifford Wolf <clifford@clifford.at> | 2015-05-29 20:08:00 +0200 |
---|---|---|
committer | Clifford Wolf <clifford@clifford.at> | 2015-05-29 20:08:00 +0200 |
commit | 99b8746d277522cba2516747666645adb8f81a68 (patch) | |
tree | 7ea379dc4c8ed7eaaac3be44a47a9aad938aa4ae | |
parent | c329233f0de691d818cc8b1aff3dd23cebf38949 (diff) | |
download | yosys-99b8746d277522cba2516747666645adb8f81a68.tar.gz yosys-99b8746d277522cba2516747666645adb8f81a68.tar.bz2 yosys-99b8746d277522cba2516747666645adb8f81a68.zip |
Fixed signedness of genvar expressions
-rw-r--r-- | frontends/ast/simplify.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/frontends/ast/simplify.cc b/frontends/ast/simplify.cc index a65d2dbb1..30b4f5139 100644 --- a/frontends/ast/simplify.cc +++ b/frontends/ast/simplify.cc @@ -825,7 +825,7 @@ bool AstNode::simplify(bool const_fold, bool at_zero, bool in_lvalue, int stage, // eval 1st expression AstNode *varbuf = init_ast->children[1]->clone(); - while (varbuf->simplify(true, false, false, stage, width_hint, sign_hint, false)) { } + while (varbuf->simplify(true, false, false, stage, 32, true, false)) { } if (varbuf->type != AST_CONSTANT) log_error("Right hand side of 1st expression of generate for-loop at %s:%d is not constant!\n", filename.c_str(), linenum); @@ -888,7 +888,7 @@ bool AstNode::simplify(bool const_fold, bool at_zero, bool in_lvalue, int stage, // eval 3rd expression buf = next_ast->children[1]->clone(); - while (buf->simplify(true, false, false, stage, width_hint, sign_hint, false)) { } + while (buf->simplify(true, false, false, stage, 32, true, false)) { } if (buf->type != AST_CONSTANT) log_error("Right hand side of 3rd expression of generate for-loop at %s:%d is not constant!\n", filename.c_str(), linenum); |