diff options
author | Clifford Wolf <clifford@clifford.at> | 2013-12-28 11:54:40 +0100 |
---|---|---|
committer | Clifford Wolf <clifford@clifford.at> | 2013-12-28 12:02:14 +0100 |
commit | c69c416d28015e496045d1b4529c465fbaad42e2 (patch) | |
tree | f70da346eabfcd5abfeee100a2470a4b50bea2ee /kernel/calc.cc | |
parent | 7f717875999f18065a69934db2075fd1508d3a7d (diff) |
Added $bu0 cell (for easy correct $eq/$ne mapping)
Diffstat (limited to 'kernel/calc.cc')
-rw-r--r-- | kernel/calc.cc | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/kernel/calc.cc b/kernel/calc.cc index fc978c11..a56db93a 100644 --- a/kernel/calc.cc +++ b/kernel/calc.cc @@ -543,6 +543,14 @@ RTLIL::Const RTLIL::const_pos(const RTLIL::Const &arg1, const RTLIL::Const&, boo return arg1_ext; } +RTLIL::Const RTLIL::const_bu0(const RTLIL::Const &arg1, const RTLIL::Const&, bool signed1, bool, int result_len) +{ + RTLIL::Const arg1_ext = arg1; + extend_u0(arg1_ext, result_len, signed1); + + return arg1_ext; +} + RTLIL::Const RTLIL::const_neg(const RTLIL::Const &arg1, const RTLIL::Const&, bool signed1, bool, int result_len) { RTLIL::Const arg1_ext = arg1; |