projects
/
yosys.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
577859f
)
cxxrtl: fix implementation of $sshr cell.
author
whitequark
<whitequark@whitequark.org>
Fri, 5 Jun 2020 01:31:53 +0000
(
01:31
+0000)
committer
whitequark
<whitequark@whitequark.org>
Fri, 5 Jun 2020 02:04:46 +0000
(
02:04
+0000)
Fixes #2111.
backends/cxxrtl/cxxrtl.h
patch
|
blob
|
history
diff --git
a/backends/cxxrtl/cxxrtl.h
b/backends/cxxrtl/cxxrtl.h
index 701510b7f6589ef9c58b6bcb414464659983ef4a..7b91742e01af9d3a6715aab7b078b7cf5891c103 100644
(file)
--- 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 s
s
hr(b).template scast<BitsY>();
}
template<size_t BitsY, size_t BitsA, size_t BitsB>