3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2025-11-23 06:01:27 +00:00

celltypes: add builtin_ff and formal

This commit is contained in:
Krystine Sherwin 2025-11-22 15:53:56 +13:00
parent 33a49452d9
commit 8b6f18483b
No known key found for this signature in database

View file

@ -31,6 +31,8 @@ struct CellType
bool is_evaluable;
bool is_combinatorial;
bool is_synthesizable;
bool is_builtin_ff;
bool is_formal;
};
struct CellTypes
@ -58,9 +60,11 @@ struct CellTypes
setup_stdcells_mem();
}
void setup_type(RTLIL::IdString type, const pool<RTLIL::IdString> &inputs, const pool<RTLIL::IdString> &outputs, bool is_evaluable = false, bool is_combinatorial = false, bool is_synthesizable = false)
void setup_type(RTLIL::IdString type, const pool<RTLIL::IdString> &inputs, const pool<RTLIL::IdString> &outputs,
bool is_evaluable = false, bool is_combinatorial = false, bool is_synthesizable = false,
bool is_builtin_ff = false, bool is_formal = false)
{
CellType ct = {type, inputs, outputs, is_evaluable, is_combinatorial, is_synthesizable};
CellType ct = {type, inputs, outputs, is_evaluable, is_combinatorial, is_synthesizable, is_builtin_ff, is_formal};
cell_types[ct.type] = ct;
}