diff options
author | whitequark <whitequark@whitequark.org> | 2020-06-05 10:24:25 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-05 10:24:25 +0000 |
commit | bd2ecc2dd3d476d4b76aa2cb624e2a5a08abcf90 (patch) | |
tree | 821d893356e5ebdccc0c99303f66df6ca9f072bd | |
parent | 9669e0c7d50601263345d20fcbdb6a1b2001efc1 (diff) | |
parent | 025663adff3796c9163a768822c6708af7029713 (diff) | |
download | yosys-bd2ecc2dd3d476d4b76aa2cb624e2a5a08abcf90.tar.gz yosys-bd2ecc2dd3d476d4b76aa2cb624e2a5a08abcf90.tar.bz2 yosys-bd2ecc2dd3d476d4b76aa2cb624e2a5a08abcf90.zip |
Merge pull request #2113 from whitequark/cxxrtl-fix-sshr
cxxrtl: fix implementation of $sshr cell
-rw-r--r-- | backends/cxxrtl/cxxrtl.h | 2 |
1 files changed, 1 insertions, 1 deletions
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<BitsY> sshr_uu(const value<BitsA> &a, const value<BitsB> &b) { template<size_t BitsY, size_t BitsA, size_t BitsB> value<BitsY> sshr_su(const value<BitsA> &a, const value<BitsB> &b) { - return a.template shr(b).template scast<BitsY>(); + return a.template sshr(b).template scast<BitsY>(); } template<size_t BitsY, size_t BitsA, size_t BitsB> |