From c69c416d28015e496045d1b4529c465fbaad42e2 Mon Sep 17 00:00:00 2001 From: Clifford Wolf Date: Sat, 28 Dec 2013 11:54:40 +0100 Subject: Added $bu0 cell (for easy correct $eq/$ne mapping) --- kernel/calc.cc | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'kernel/calc.cc') 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; -- cgit v1.2.3