From: whitequark Date: Fri, 5 Jun 2020 01:31:53 +0000 (+0000) Subject: cxxrtl: fix implementation of $sshr cell. X-Git-Tag: working-ls180~501^2 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=025663adff3796c9163a768822c6708af7029713;p=yosys.git cxxrtl: fix implementation of $sshr cell. Fixes #2111. --- diff --git a/backends/cxxrtl/cxxrtl.h b/backends/cxxrtl/cxxrtl.h index 701510b7f..7b91742e0 100644 --- a/backends/cxxrtl/cxxrtl.h +++ b/backends/cxxrtl/cxxrtl.h @@ -921,7 +921,7 @@ value sshr_uu(const value &a, const value &b) { template value sshr_su(const value &a, const value &b) { - return a.template shr(b).template scast(); + return a.template sshr(b).template scast(); } template