3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2026-01-06 11:02:47 +00:00

consteval: use newcelltypes

This commit is contained in:
Emil J. Tywoniak 2025-11-25 23:47:56 +01:00
parent 9877d189ce
commit ce3c23f969
2 changed files with 5 additions and 3 deletions

View file

@ -24,6 +24,7 @@
#include "kernel/sigtools.h"
#include "kernel/celltypes.h"
#include "kernel/macc.h"
#include "kernel/newcelltypes.h"
YOSYS_NAMESPACE_BEGIN
@ -40,9 +41,8 @@ struct ConstEval
ConstEval(RTLIL::Module *module, RTLIL::State defaultval = RTLIL::State::Sm) : module(module), assign_map(module), defaultval(defaultval)
{
CellTypes ct;
ct.setup_internals();
ct.setup_stdcells();
auto ct = NewCellTypes();
ct.static_cell_types = StaticCellTypes::Compat::stdcells_nomem_noff;
for (auto &it : module->cells_) {
if (!ct.cell_known(it.second->type))