std::map<RTLIL::SigBit, dff_map_bit_info_t> bit_info;
SigMap sigmap(module);
- for (auto cell : module->cells())
+ for (auto cell : module->selected_cells())
{
- if (!design->selected(module, cell))
- continue;
-
dff_map_bit_info_t info;
info.bit_d = RTLIL::State::Sm;
info.bit_clk = RTLIL::State::Sm;
RTLIL::Module *first_module = NULL;
std::set<RTLIL::IdString> shared_dff_wires;
- for (auto mod : design->modules())
+ for (auto mod : design->selected_modules())
{
- if (!design->selected(mod))
- continue;
-
create_dff_dq_map(dff_dq_maps[mod], design, mod);
if (!flag_shared)
{
RTLIL::Module *first_module = NULL;
- for (auto module : design->modules())
+ for (auto module : design->selected_modules())
{
- if (!design->selected(module))
- continue;
-
std::set<RTLIL::IdString> dff_wires;
if (flag_dff)
find_dff_wires(dff_wires, module);
}
}
- for (auto module : design->modules())
+ for (auto module : design->selected_modules())
{
- if (!design->selected(module))
- continue;
-
std::set<RTLIL::IdString> dff_wires;
if (flag_dff && !flag_shared)
find_dff_wires(dff_wires, module);