celltypes.h: Add extra properties

This commit is contained in:
Krystine Sherwin 2024-05-16 12:15:57 +12:00
parent 21747c468c
commit 4c9c4c1419
No known key found for this signature in database
1 changed files with 4 additions and 2 deletions

View File

@ -29,6 +29,8 @@ struct CellType
RTLIL::IdString type; RTLIL::IdString type;
pool<RTLIL::IdString> inputs, outputs; pool<RTLIL::IdString> inputs, outputs;
bool is_evaluable; bool is_evaluable;
bool is_combinatorial;
bool is_synthesizable;
}; };
struct CellTypes struct CellTypes
@ -56,9 +58,9 @@ struct CellTypes
setup_stdcells_mem(); setup_stdcells_mem();
} }
void setup_type(RTLIL::IdString type, const pool<RTLIL::IdString> &inputs, const pool<RTLIL::IdString> &outputs, bool is_evaluable = 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)
{ {
CellType ct = {type, inputs, outputs, is_evaluable}; CellType ct = {type, inputs, outputs, is_evaluable, is_combinatorial, is_synthesizable};
cell_types[ct.type] = ct; cell_types[ct.type] = ct;
} }