mirror of
https://github.com/YosysHQ/yosys
synced 2025-06-19 20:33:39 +00:00
macc_v2: Fix checks and parameter padding
This commit is contained in:
parent
3184b335da
commit
aabb4ea1df
2 changed files with 18 additions and 1 deletions
|
@ -1470,7 +1470,7 @@ namespace {
|
|||
if (cell->type == ID($macc_v2)) {
|
||||
if (param(ID::NPRODUCTS) <= 0)
|
||||
error(__LINE__);
|
||||
if (param(ID::NADDENDS) <= 0)
|
||||
if (param(ID::NADDENDS) < 0)
|
||||
error(__LINE__);
|
||||
param_bits(ID::PRODUCT_NEGATED, max(param(ID::NPRODUCTS), 1));
|
||||
param_bits(ID::ADDEND_NEGATED, max(param(ID::NADDENDS), 1));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue