aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwhitequark <whitequark@whitequark.org>2020-06-05 01:31:53 +0000
committerwhitequark <whitequark@whitequark.org>2020-06-05 02:04:46 +0000
commit025663adff3796c9163a768822c6708af7029713 (patch)
treedaecd60dbc3c52d7268db208881df17d57b3833d
parent577859fbdbefaabac4a3c61288264f2505261586 (diff)
downloadyosys-025663adff3796c9163a768822c6708af7029713.tar.gz
yosys-025663adff3796c9163a768822c6708af7029713.tar.bz2
yosys-025663adff3796c9163a768822c6708af7029713.zip
cxxrtl: fix implementation of $sshr cell.
Fixes #2111.
-rw-r--r--backends/cxxrtl/cxxrtl.h2
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>