diff options
author | Clifford Wolf <clifford@clifford.at> | 2019-02-21 17:55:33 +0100 |
---|---|---|
committer | Clifford Wolf <clifford@clifford.at> | 2019-02-21 17:55:33 +0100 |
commit | 974927adcf916fc953ae4b756fd1806cfa423655 (patch) | |
tree | 020fd5f448cc6bc67bc3e4a6e6c35d4eb939fdac /frontends | |
parent | 28fba903c595710c401a6c7d49e7bfd3f8c64efc (diff) | |
download | yosys-974927adcf916fc953ae4b756fd1806cfa423655.tar.gz yosys-974927adcf916fc953ae4b756fd1806cfa423655.tar.bz2 yosys-974927adcf916fc953ae4b756fd1806cfa423655.zip |
Fix handling of expression width in $past, fixes #810
Signed-off-by: Clifford Wolf <clifford@clifford.at>
Diffstat (limited to 'frontends')
-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 83714f897..6ae62ead8 100644 --- a/frontends/ast/simplify.cc +++ b/frontends/ast/simplify.cc @@ -1778,7 +1778,7 @@ skip_dynamic_range_lvalue_expansion:; if (str == "\\$past") { - if (width_hint <= 0) + if (width_hint < 0) goto replace_fcall_later; int num_steps = 1; |