mirror of
https://github.com/YosysHQ/yosys
synced 2025-06-06 22:23:23 +00:00
celltypes: add builtin_ff and formal
This commit is contained in:
parent
0778195722
commit
e6c3a7e87f
1 changed files with 6 additions and 2 deletions
|
@ -31,6 +31,8 @@ struct CellType
|
||||||
bool is_evaluable;
|
bool is_evaluable;
|
||||||
bool is_combinatorial;
|
bool is_combinatorial;
|
||||||
bool is_synthesizable;
|
bool is_synthesizable;
|
||||||
|
bool is_builtin_ff;
|
||||||
|
bool is_formal;
|
||||||
};
|
};
|
||||||
|
|
||||||
struct CellTypes
|
struct CellTypes
|
||||||
|
@ -58,9 +60,11 @@ 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, 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;
|
cell_types[ct.type] = ct;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue