macc_v2: Relax and fix cell check
This commit is contained in:
@@ -231,7 +231,7 @@ struct Macc
|
||||
if (a_signed.empty())
|
||||
a_signed = {RTLIL::Sx};
|
||||
if (b_signed.empty())
|
||||
a_signed = {RTLIL::Sx};
|
||||
b_signed = {RTLIL::Sx};
|
||||
if (c_signed.empty())
|
||||
c_signed = {RTLIL::Sx};
|
||||
if (a_widths.empty())
|
||||
|
||||
@@ -1468,7 +1468,7 @@ namespace {
|
||||
}
|
||||
|
||||
if (cell->type == ID($macc_v2)) {
|
||||
if (param(ID::NPRODUCTS) <= 0)
|
||||
if (param(ID::NPRODUCTS) < 0)
|
||||
error(__LINE__);
|
||||
if (param(ID::NADDENDS) < 0)
|
||||
error(__LINE__);
|
||||
|
||||
Reference in New Issue
Block a user