HANDLE_UNIOP("$not", "~")
HANDLE_UNIOP("$pos", "+")
+ HANDLE_UNIOP("$bu0", "+")
HANDLE_UNIOP("$neg", "-")
HANDLE_BINOP("$and", "&")
return true;
}
- if (cell->type == "$bu0")
- {
- f << stringf("%s" "assign ", indent.c_str());
- dump_sigspec(f, cell->getPort("\\Y"));
- if (cell->parameters["\\A_SIGNED"].as_bool()) {
- f << stringf(" = $signed(");
- dump_sigspec(f, cell->getPort("\\A"));
- f << stringf(");\n");
- } else {
- f << stringf(" = { 1'b0, ");
- dump_sigspec(f, cell->getPort("\\A"));
- f << stringf(" };\n");
- }
- return true;
- }
-
if (cell->type == "$concat")
{
f << stringf("%s" "assign ", indent.c_str());
RTLIL::Const RTLIL::const_pos(const RTLIL::Const &arg1, const RTLIL::Const&, bool signed1, bool, int result_len)
{
RTLIL::Const arg1_ext = arg1;
- extend(arg1_ext, result_len, signed1);
+ extend_u0(arg1_ext, result_len, signed1);
return arg1_ext;
}
{
std::vector<int> undef_a = importUndefSigSpec(cell->getPort("\\A"), timestep);
std::vector<int> undef_y = importUndefSigSpec(cell->getPort("\\Y"), timestep);
- extendSignalWidthUnary(undef_a, undef_y, cell, cell->type != "$bu0");
+ extendSignalWidthUnary(undef_a, undef_y, cell);
if (cell->type == "$pos" || cell->type == "$bu0") {
ez->assume(ez->vec_eq(undef_a, undef_y));