3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2025-04-20 07:36:39 +00:00

celltypes: add builtin_ff and formal

This commit is contained in:
Krystine Sherwin 2025-02-21 16:05:53 +13:00
parent 0778195722
commit e6c3a7e87f
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;
}