mirror of
https://github.com/YosysHQ/yosys
synced 2026-05-03 08:55:15 +00:00
newcelltypes: TurboCellTypes -> StaticCellTypes
This commit is contained in:
parent
6adc08b0e5
commit
35ccaa60d7
3 changed files with 6 additions and 6 deletions
|
|
@ -5,7 +5,7 @@
|
||||||
|
|
||||||
YOSYS_NAMESPACE_BEGIN
|
YOSYS_NAMESPACE_BEGIN
|
||||||
|
|
||||||
namespace TurboCellTypes {
|
namespace StaticCellTypes {
|
||||||
|
|
||||||
constexpr int MAX_CELLS = 300;
|
constexpr int MAX_CELLS = 300;
|
||||||
constexpr int MAX_PORTS = 10;
|
constexpr int MAX_PORTS = 10;
|
||||||
|
|
|
||||||
|
|
@ -102,9 +102,9 @@ struct keep_cache_t
|
||||||
};
|
};
|
||||||
|
|
||||||
keep_cache_t keep_cache;
|
keep_cache_t keep_cache;
|
||||||
static constexpr auto ct_reg = TurboCellTypes::Categories::join(
|
static constexpr auto ct_reg = StaticCellTypes::Categories::join(
|
||||||
TurboCellTypes::Compat::internals_mem_ff,
|
StaticCellTypes::Compat::mem_ff,
|
||||||
TurboCellTypes::categories.is_anyinit);
|
StaticCellTypes::categories.is_anyinit);
|
||||||
CellTypes ct_all;
|
CellTypes ct_all;
|
||||||
int count_rm_cells, count_rm_wires;
|
int count_rm_cells, count_rm_wires;
|
||||||
|
|
||||||
|
|
@ -526,7 +526,7 @@ bool rmunused_module_init(RTLIL::Module *module, bool verbose)
|
||||||
dict<SigBit, State> qbits;
|
dict<SigBit, State> qbits;
|
||||||
|
|
||||||
for (auto cell : module->cells())
|
for (auto cell : module->cells())
|
||||||
if (TurboCellTypes::Compat::internals_mem_ff(cell->type) && cell->hasPort(ID::Q))
|
if (StaticCellTypes::Compat::internals_mem_ff(cell->type) && cell->hasPort(ID::Q))
|
||||||
{
|
{
|
||||||
SigSpec sig = cell->getPort(ID::Q);
|
SigSpec sig = cell->getPort(ID::Q);
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -431,7 +431,7 @@ void replace_const_cells(RTLIL::Design *design, RTLIL::Module *module, bool cons
|
||||||
if (cell->type.in(ID($dffe), ID($adffe), ID($aldffe), ID($sdffe), ID($sdffce), ID($dffsre), ID($dlatch), ID($adlatch), ID($dlatchsr)))
|
if (cell->type.in(ID($dffe), ID($adffe), ID($aldffe), ID($sdffe), ID($sdffce), ID($dffsre), ID($dlatch), ID($adlatch), ID($dlatchsr)))
|
||||||
handle_polarity_inv(cell, ID::EN, ID::EN_POLARITY, assign_map, invert_map);
|
handle_polarity_inv(cell, ID::EN, ID::EN_POLARITY, assign_map, invert_map);
|
||||||
|
|
||||||
if (!TurboCellTypes::Compat::stdcells_mem(cell->type))
|
if (!StaticCellTypes::Compat::stdcells_mem(cell->type))
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
handle_clkpol_celltype_swap(cell, "$_SR_N?_", "$_SR_P?_", ID::S, assign_map, invert_map);
|
handle_clkpol_celltype_swap(cell, "$_SR_N?_", "$_SR_P?_", ID::S, assign_map, invert_map);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue