mirror of
https://github.com/YosysHQ/yosys
synced 2025-04-26 18:45:34 +00:00
Added $macc cell type
This commit is contained in:
parent
76f8128123
commit
b847ec8a0b
4 changed files with 242 additions and 9 deletions
|
@ -20,12 +20,9 @@
|
|||
#ifndef CELLTYPES_H
|
||||
#define CELLTYPES_H
|
||||
|
||||
#include <set>
|
||||
#include <string>
|
||||
#include <stdlib.h>
|
||||
#include <kernel/yosys.h>
|
||||
|
||||
#include <kernel/rtlil.h>
|
||||
#include <kernel/log.h>
|
||||
YOSYS_NAMESPACE_BEGIN
|
||||
|
||||
struct CellType
|
||||
{
|
||||
|
@ -96,7 +93,7 @@ struct CellTypes
|
|||
"$shl", "$shr", "$sshl", "$sshr", "$shift", "$shiftx",
|
||||
"$lt", "$le", "$eq", "$ne", "$eqx", "$nex", "$ge", "$gt",
|
||||
"$add", "$sub", "$mul", "$div", "$mod", "$pow",
|
||||
"$logic_and", "$logic_or", "$concat"
|
||||
"$logic_and", "$logic_or", "$concat", "$macc"
|
||||
};
|
||||
|
||||
for (auto type : unary_ops)
|
||||
|
@ -361,5 +358,7 @@ struct CellTypes
|
|||
}
|
||||
};
|
||||
|
||||
YOSYS_NAMESPACE_END
|
||||
|
||||
#endif
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue