Refactoring: Renamed RTLIL::Module::wires to wires_
authorClifford Wolf <clifford@clifford.at>
Sat, 26 Jul 2014 23:49:51 +0000 (01:49 +0200)
committerClifford Wolf <clifford@clifford.at>
Sat, 26 Jul 2014 23:49:51 +0000 (01:49 +0200)
50 files changed:
backends/autotest/autotest.cc
backends/blif/blif.cc
backends/btor/btor.cc
backends/edif/edif.cc
backends/ilang/ilang_backend.cc
backends/intersynth/intersynth.cc
backends/spice/spice.cc
backends/verilog/verilog_backend.cc
frontends/ast/genrtlil.cc
frontends/liberty/liberty.cc
kernel/celltypes.h
kernel/driver.cc
kernel/modwalker.h
kernel/rtlil.cc
kernel/rtlil.h
manual/CHAPTER_Prog/stubnets.cc
manual/PRESENTATION_Prog/my_cmd.cc
passes/abc/abc.cc
passes/abc/blifparse.cc
passes/cmds/add.cc
passes/cmds/delete.cc
passes/cmds/rename.cc
passes/cmds/scc.cc
passes/cmds/select.cc
passes/cmds/setattr.cc
passes/cmds/setundef.cc
passes/cmds/show.cc
passes/cmds/splice.cc
passes/cmds/splitnets.cc
passes/cmds/stat.cc
passes/fsm/fsm_detect.cc
passes/fsm/fsm_extract.cc
passes/hierarchy/hierarchy.cc
passes/hierarchy/submod.cc
passes/memory/memory_map.cc
passes/memory/memory_share.cc
passes/opt/opt_clean.cc
passes/opt/opt_const.cc
passes/opt/opt_muxtree.cc
passes/opt/opt_rmdff.cc
passes/opt/opt_share.cc
passes/proc/proc_arst.cc
passes/sat/eval.cc
passes/sat/expose.cc
passes/sat/freduce.cc
passes/sat/miter.cc
passes/sat/sat.cc
passes/techmap/extract.cc
passes/techmap/iopadmap.cc
passes/techmap/techmap.cc

index db49880ae6644561b2f480c0f87855d8637080d0..06b2c2a936752760ae57f92c4a83f2242d16438d 100644 (file)
@@ -105,7 +105,7 @@ static void autotest(FILE *f, RTLIL::Design *design)
 
                int count_ports = 0;
                log("Generating test bench for module `%s'.\n", it->first.c_str());
-               for (auto it2 = mod->wires.begin(); it2 != mod->wires.end(); it2++) {
+               for (auto it2 = mod->wires_.begin(); it2 != mod->wires_.end(); it2++) {
                        RTLIL::Wire *wire = it2->second;
                        if (wire->port_output) {
                                count_ports++;
@@ -134,7 +134,7 @@ static void autotest(FILE *f, RTLIL::Design *design)
                        }
                }
                fprintf(f, "%s %s(\n", id(mod->name).c_str(), idy("uut", mod->name).c_str());
-               for (auto it2 = mod->wires.begin(); it2 != mod->wires.end(); it2++) {
+               for (auto it2 = mod->wires_.begin(); it2 != mod->wires_.end(); it2++) {
                        RTLIL::Wire *wire = it2->second;
                        if (wire->port_output || wire->port_input)
                                fprintf(f, "\t.%s(%s)%s\n", id(wire->name).c_str(),
index cb40834b3359d2d2581906fa2c7242e24f238907..7ae9965d5cbf69e9ae4c17aff7b1a6d174c4c2ff 100644 (file)
@@ -103,7 +103,7 @@ struct BlifDumper
 
                std::map<int, RTLIL::Wire*> inputs, outputs;
 
-               for (auto &wire_it : module->wires) {
+               for (auto &wire_it : module->wires_) {
                        RTLIL::Wire *wire = wire_it.second;
                        if (wire->port_input)
                                inputs[wire->port_id] = wire;
index f731e17e216e0c970a4e133c9d9e6e0bb1969fff..f1e95ee1502d4fc8a195273e2338375b0710694f 100644 (file)
@@ -80,7 +80,7 @@ struct BtorDumper
        {
                line_num=0;
                str.clear();
-               for(auto it=module->wires.begin(); it!=module->wires.end(); ++it)
+               for(auto it=module->wires_.begin(); it!=module->wires_.end(); ++it)
                {
                        if(it->second->port_input)
                        {
@@ -880,7 +880,7 @@ struct BtorDumper
                std::map<int, RTLIL::Wire*> inputs, outputs;
                std::vector<RTLIL::Wire*> safety;
                
-               for (auto &wire_it : module->wires) {
+               for (auto &wire_it : module->wires_) {
                        RTLIL::Wire *wire = wire_it.second;
                        if (wire->port_input)
                                inputs[wire->port_id] = wire;
index fc2f4a7e452a200292de6b408eae0d96af0da9c9..e99d094f70f6382a84abae6b6b79355f264e251c 100644 (file)
@@ -255,7 +255,7 @@ struct EdifBackend : public Backend {
                        fprintf(f, "      (view VIEW_NETLIST\n");
                        fprintf(f, "        (viewType NETLIST)\n");
                        fprintf(f, "        (interface\n");
-                       for (auto &wire_it : module->wires) {
+                       for (auto &wire_it : module->wires_) {
                                RTLIL::Wire *wire = wire_it.second;
                                if (wire->port_id == 0)
                                        continue;
index 6678f19d269fbbc6c31f100e415b2ec6b41f1e09..c0b7dab9a8b7714fd836bc3f0c3f85c3861f73a2 100644 (file)
@@ -280,7 +280,7 @@ void ILANG_BACKEND::dump_module(FILE *f, std::string indent, const RTLIL::Module
 
        if (print_body)
        {
-               for (auto it = module->wires.begin(); it != module->wires.end(); it++)
+               for (auto it = module->wires_.begin(); it != module->wires_.end(); it++)
                        if (!only_selected || design->selected(module, it->second)) {
                                if (only_selected)
                                        fprintf(f, "\n");
index 8c08747c3c9cf76b52077cee2ca41f348324b955..4e8c321bb7ac6fb95873462e3f5a6b437f587a58 100644 (file)
@@ -147,7 +147,7 @@ struct IntersynthBackend : public Backend {
                        netlists_code += stringf("netlist %s\n", RTLIL::id2cstr(module->name));
 
                        // Module Ports: "std::set<string> celltypes_code" prevents duplicate top level ports
-                       for (auto wire_it : module->wires) {
+                       for (auto wire_it : module->wires_) {
                                RTLIL::Wire *wire = wire_it.second;
                                if (wire->port_input || wire->port_output) {
                                        celltypes_code.insert(stringf("celltype !%s b%d %sPORT\n" "%s %s %d %s PORT\n",
index 0773687718d5213c26f15dc87da0cff109ce932b..ef31e06a94c942b949b0bf6533a5ab5b588a4fa2 100644 (file)
@@ -68,7 +68,7 @@ static void print_spice_module(FILE *f, RTLIL::Module *module, RTLIL::Design *de
                        RTLIL::Module *mod = design->modules.at(cell->type);
 
                        std::vector<RTLIL::Wire*> ports;
-                       for (auto wire_it : mod->wires) {
+                       for (auto wire_it : mod->wires_) {
                                RTLIL::Wire *wire = wire_it.second;
                                if (wire->port_id == 0)
                                        continue;
@@ -195,7 +195,7 @@ struct SpiceBackend : public Backend {
                        }
 
                        std::vector<RTLIL::Wire*> ports;
-                       for (auto wire_it : module->wires) {
+                       for (auto wire_it : module->wires_) {
                                RTLIL::Wire *wire = wire_it.second;
                                if (wire->port_id == 0)
                                        continue;
index d9186c0435ac8d0db66b55e99f2e15a6a5496884..5e98a4c546d1b9041e3ec499b4ce891b1757e4ca 100644 (file)
@@ -76,7 +76,7 @@ void reset_auto_counter(RTLIL::Module *module)
 
        reset_auto_counter_id(module->name, false);
 
-       for (auto it = module->wires.begin(); it != module->wires.end(); it++)
+       for (auto it = module->wires_.begin(); it != module->wires_.end(); it++)
                reset_auto_counter_id(it->second->name, true);
 
        for (auto it = module->cells.begin(); it != module->cells.end(); it++) {
@@ -920,7 +920,7 @@ void dump_module(FILE *f, std::string indent, RTLIL::Module *module)
                                                reg_bits.insert(std::pair<RTLIL::Wire*,int>(chunk.wire, chunk.offset+i));
                        }
                }
-               for (auto &it : module->wires)
+               for (auto &it : module->wires_)
                {
                        RTLIL::Wire *wire = it.second;
                        for (int i = 0; i < wire->width; i++)
@@ -936,7 +936,7 @@ void dump_module(FILE *f, std::string indent, RTLIL::Module *module)
        bool keep_running = true;
        for (int port_id = 1; keep_running; port_id++) {
                keep_running = false;
-               for (auto it = module->wires.begin(); it != module->wires.end(); it++) {
+               for (auto it = module->wires_.begin(); it != module->wires_.end(); it++) {
                        RTLIL::Wire *wire = it->second;
                        if (wire->port_id == port_id) {
                                if (port_id != 1)
@@ -949,7 +949,7 @@ void dump_module(FILE *f, std::string indent, RTLIL::Module *module)
        }
        fprintf(f, ");\n");
 
-       for (auto it = module->wires.begin(); it != module->wires.end(); it++)
+       for (auto it = module->wires_.begin(); it != module->wires_.end(); it++)
                dump_wire(f, indent + "  ", it->second);
 
        for (auto it = module->memories.begin(); it != module->memories.end(); it++)
index 3bc9b06eec6ef48d918557228e0f0413f863afef..064aec93f370a1ae818f16daa4ad431ed75d2e3f 100644 (file)
@@ -296,7 +296,7 @@ struct AST_INTERNAL::ProcessGenerator
                                                chunk.wire->name.c_str(), chunk.width+chunk.offset-1, chunk.offset);;
                                if (chunk.wire->name.find('$') != std::string::npos)
                                        wire_name += stringf("$%d", RTLIL::autoidx++);
-                       } while (current_module->wires.count(wire_name) > 0);
+                       } while (current_module->wires_.count(wire_name) > 0);
 
                        RTLIL::Wire *wire = current_module->addWire(wire_name, chunk.width);
                        wire->attributes["\\src"] = stringf("%s:%d", always->filename.c_str(), always->linenum);
@@ -779,7 +779,7 @@ RTLIL::SigSpec AstNode::genRTLIL(int width_hint, bool sign_hint)
 
        // create an RTLIL::Wire for an AST_WIRE node
        case AST_WIRE: {
-                       if (current_module->wires.count(str) != 0)
+                       if (current_module->wires_.count(str) != 0)
                                log_error("Re-definition of signal `%s' at %s:%d!\n",
                                                str.c_str(), filename.c_str(), linenum);
                        if (!range_valid)
@@ -869,7 +869,7 @@ RTLIL::SigSpec AstNode::genRTLIL(int width_hint, bool sign_hint)
                        RTLIL::Wire *wire = NULL;
                        RTLIL::SigChunk chunk;
 
-                       if (id2ast && id2ast->type == AST_AUTOWIRE && current_module->wires.count(str) == 0) {
+                       if (id2ast && id2ast->type == AST_AUTOWIRE && current_module->wires_.count(str) == 0) {
                                RTLIL::Wire *wire = current_module->addWire(str);
                                wire->attributes["\\src"] = stringf("%s:%d", filename.c_str(), linenum);
                                wire->name = str;
@@ -886,7 +886,7 @@ RTLIL::SigSpec AstNode::genRTLIL(int width_hint, bool sign_hint)
                                goto use_const_chunk;
                        }
                        else if (!id2ast || (id2ast->type != AST_WIRE && id2ast->type != AST_AUTOWIRE &&
-                                       id2ast->type != AST_MEMORY) || current_module->wires.count(str) == 0)
+                                       id2ast->type != AST_MEMORY) || current_module->wires_.count(str) == 0)
                                log_error("Identifier `%s' doesn't map to any signal at %s:%d!\n",
                                                str.c_str(), filename.c_str(), linenum);
 
@@ -894,7 +894,7 @@ RTLIL::SigSpec AstNode::genRTLIL(int width_hint, bool sign_hint)
                                log_error("Identifier `%s' does map to an unexpanded memory at %s:%d!\n",
                                                str.c_str(), filename.c_str(), linenum);
 
-                       wire = current_module->wires[str];
+                       wire = current_module->wires_[str];
                        chunk.wire = wire;
                        chunk.width = wire->width;
                        chunk.offset = 0;
index d7068d468b7369d38475abb2ee7dfcfb1afca682..c476de87ad8d6506ed2ffc7238da096963275c1a 100644 (file)
@@ -45,11 +45,11 @@ static RTLIL::SigSpec parse_func_identifier(RTLIL::Module *module, const char *&
                return *(expr++) == '0' ? RTLIL::State::S0 : RTLIL::State::S1;
 
        std::string id = RTLIL::escape_id(std::string(expr, id_len));
-       if (!module->wires.count(id))
+       if (!module->wires_.count(id))
                log_error("Can't resolve wire name %s.\n", RTLIL::id2cstr(id));
 
        expr += id_len;
-       return module->wires.at(id);
+       return module->wires_.at(id);
 }
 
 static RTLIL::SigSpec create_inv_cell(RTLIL::Module *module, RTLIL::SigSpec A)
@@ -527,7 +527,7 @@ struct LibertyFrontend : public Frontend {
                                        if (flag_lib && dir->value == "internal")
                                                continue;
 
-                                       RTLIL::Wire *wire = module->wires.at(RTLIL::escape_id(node->args.at(0)));
+                                       RTLIL::Wire *wire = module->wires_.at(RTLIL::escape_id(node->args.at(0)));
 
                                        if (dir && dir->value == "inout") {
                                                wire->port_input = true;
index 769145838367af8ac283309af21d3b4301057579..d3c848f46add626f0c41bc199404e1c9649be1ba 100644 (file)
@@ -181,8 +181,8 @@ struct CellTypes
                if (cell_types.count(type) == 0) {
                        for (auto design : designs)
                                if (design->modules.count(type) > 0) {
-                                       if (design->modules.at(type)->wires.count(port))
-                                               return design->modules.at(type)->wires.at(port)->port_output;
+                                       if (design->modules.at(type)->wires_.count(port))
+                                               return design->modules.at(type)->wires_.at(port)->port_output;
                                        return false;
                                }
                        return false;
@@ -204,8 +204,8 @@ struct CellTypes
                if (cell_types.count(type) == 0) {
                        for (auto design : designs)
                                if (design->modules.count(type) > 0) {
-                                       if (design->modules.at(type)->wires.count(port))
-                                               return design->modules.at(type)->wires.at(port)->port_input;
+                                       if (design->modules.at(type)->wires_.count(port))
+                                               return design->modules.at(type)->wires_.at(port)->port_input;
                                        return false;
                                }
                        return false;
index 97910aa98156756f2210dd4c889e7a3fcc8133b5..3fbb96580b41df9117db2d75a69e4f4e475ff475 100644 (file)
@@ -243,7 +243,7 @@ static char *readline_obj_generator(const char *text, int state)
                {
                        RTLIL::Module *module = design->modules.at(design->selected_active_module);
 
-                       for (auto &it : module->wires)
+                       for (auto &it : module->wires_)
                                if (RTLIL::unescape_id(it.first).substr(0, len) == text)
                                        obj_names.push_back(strdup(RTLIL::id2cstr(it.first.c_str())));
 
index a3983a2c1a106791e4e79ea256cbd405ccd7507a..a90d739ebdbbda42f1cc386d77b8e2b71091b06e 100644 (file)
@@ -121,7 +121,7 @@ struct ModWalker
                signal_inputs.clear();
                signal_outputs.clear();
 
-               for (auto &it : module->wires)
+               for (auto &it : module->wires_)
                        add_wire(it.second);
                for (auto &it : module->cells)
                        if (filter_ct == NULL || filter_ct->cell_known(it.second->type))
index 240bbc6be530c7f603a55a614921c8657e8f002c..0cfcf018c68f63fa1c60b04776aaa51abd966688 100644 (file)
@@ -203,7 +203,7 @@ void RTLIL::Selection::optimize(RTLIL::Design *design)
        for (auto &it : selected_members)
                if (it.second.size() == 0)
                        del_list.push_back(it.first);
-               else if (it.second.size() == design->modules[it.first]->wires.size() + design->modules[it.first]->memories.size() +
+               else if (it.second.size() == design->modules[it.first]->wires_.size() + design->modules[it.first]->memories.size() +
                                design->modules[it.first]->cells.size() + design->modules[it.first]->processes.size())
                        add_list.push_back(it.first);
        for (auto mod_name : del_list)
@@ -276,7 +276,7 @@ bool RTLIL::Design::selected_member(RTLIL::IdString mod_name, RTLIL::IdString me
 
 RTLIL::Module::~Module()
 {
-       for (auto it = wires.begin(); it != wires.end(); it++)
+       for (auto it = wires_.begin(); it != wires_.end(); it++)
                delete it->second;
        for (auto it = memories.begin(); it != memories.end(); it++)
                delete it->second;
@@ -293,7 +293,7 @@ RTLIL::IdString RTLIL::Module::derive(RTLIL::Design*, std::map<RTLIL::IdString,
 
 size_t RTLIL::Module::count_id(RTLIL::IdString id)
 {
-       return wires.count(id) + memories.count(id) + cells.count(id) + processes.count(id);
+       return wires_.count(id) + memories.count(id) + cells.count(id) + processes.count(id);
 }
 
 #ifndef NDEBUG
@@ -710,7 +710,7 @@ namespace {
 void RTLIL::Module::check()
 {
 #ifndef NDEBUG
-       for (auto &it : wires) {
+       for (auto &it : wires_) {
                assert(it.first == it.second->name);
                assert(it.first.size() > 0 && (it.first[0] == '\\' || it.first[0] == '$'));
                assert(it.second->width >= 0);
@@ -776,7 +776,7 @@ void RTLIL::Module::cloneInto(RTLIL::Module *new_mod) const
        new_mod->connections_ = connections_;
        new_mod->attributes = attributes;
 
-       for (auto &it : wires)
+       for (auto &it : wires_)
                new_mod->addWire(it.first, it.second);
 
        for (auto &it : memories)
@@ -796,7 +796,7 @@ void RTLIL::Module::cloneInto(RTLIL::Module *new_mod) const
                        std::vector<RTLIL::SigChunk> chunks = sig.chunks();
                        for (auto &c : chunks)
                                if (c.wire != NULL)
-                                       c.wire = mod->wires.at(c.wire->name);
+                                       c.wire = mod->wires_.at(c.wire->name);
                        sig = chunks;
                }
        };
@@ -817,7 +817,7 @@ void RTLIL::Module::add(RTLIL::Wire *wire)
 {
        assert(!wire->name.empty());
        assert(count_id(wire->name) == 0);
-       wires[wire->name] = wire;
+       wires_[wire->name] = wire;
 }
 
 void RTLIL::Module::add(RTLIL::Cell *cell)
@@ -848,9 +848,9 @@ namespace {
 #if 0
 void RTLIL::Module::remove(RTLIL::Wire *wire)
 {
-       std::set<RTLIL::Wire*> wires;
-       wires.insert(wire);
-       remove(wires);
+       std::set<RTLIL::Wire*> wires_;
+       wires_.insert(wire);
+       remove(wires_);
 }
 #endif
 
@@ -862,7 +862,7 @@ void RTLIL::Module::remove(const std::set<RTLIL::Wire*> &wires)
        rewrite_sigspecs(delete_wire_worker);
 
        for (auto &it : wires) {
-               this->wires.erase(it->name);
+               this->wires_.erase(it->name);
                delete it;
        }
 }
@@ -876,8 +876,8 @@ void RTLIL::Module::remove(RTLIL::Cell *cell)
 
 void RTLIL::Module::rename(RTLIL::Wire *wire, RTLIL::IdString new_name)
 {
-       assert(wires[wire->name] == wire);
-       wires.erase(wire->name);
+       assert(wires_[wire->name] == wire);
+       wires_.erase(wire->name);
        wire->name = new_name;
        add(wire);
 }
@@ -893,8 +893,8 @@ void RTLIL::Module::rename(RTLIL::Cell *cell, RTLIL::IdString new_name)
 void RTLIL::Module::rename(RTLIL::IdString old_name, RTLIL::IdString new_name)
 {
        assert(count_id(old_name) != 0);
-       if (wires.count(old_name))
-               rename(wires.at(old_name), new_name);
+       if (wires_.count(old_name))
+               rename(wires_.at(old_name), new_name);
        else if (cells.count(old_name))
                rename(cells.at(old_name), new_name);
        else
@@ -932,7 +932,7 @@ void RTLIL::Module::fixup_ports()
 {
        std::vector<RTLIL::Wire*> all_ports;
 
-       for (auto &w : wires)
+       for (auto &w : wires_)
                if (w.second->port_input || w.second->port_output)
                        all_ports.push_back(w.second);
                else
@@ -2457,7 +2457,7 @@ bool RTLIL::SigSpec::parse(RTLIL::SigSpec &sig, RTLIL::Module *module, std::stri
                if (netname[0] != '$' && netname[0] != '\\')
                        netname = "\\" + netname;
 
-               if (module->wires.count(netname) == 0) {
+               if (module->wires_.count(netname) == 0) {
                        size_t indices_pos = netname.size()-1;
                        if (indices_pos > 2 && netname[indices_pos] == ']')
                        {
@@ -2474,10 +2474,10 @@ bool RTLIL::SigSpec::parse(RTLIL::SigSpec &sig, RTLIL::Module *module, std::stri
                        }
                }
 
-               if (module->wires.count(netname) == 0)
+               if (module->wires_.count(netname) == 0)
                        return false;
 
-               RTLIL::Wire *wire = module->wires.at(netname);
+               RTLIL::Wire *wire = module->wires_.at(netname);
                if (!indices.empty()) {
                        std::vector<std::string> index_tokens;
                        sigspec_parse_split(index_tokens, indices.substr(1, indices.size()-2), ':');
@@ -2514,7 +2514,7 @@ bool RTLIL::SigSpec::parse_sel(RTLIL::SigSpec &sig, RTLIL::Design *design, RTLIL
 
        sig = RTLIL::SigSpec();
        RTLIL::Selection &sel = design->selection_vars.at(str);
-       for (auto &it : module->wires)
+       for (auto &it : module->wires_)
                if (sel.selected_member(module->name, it.first))
                        sig.append(it.second);
 
index cbb612473e4aa75de1c2884077c7d4c5923c9207..1d040975bf977d9f52f61a88b52a0675c1d59174 100644 (file)
@@ -280,7 +280,7 @@ protected:
 public:
        RTLIL::IdString name;
        std::set<RTLIL::IdString> avail_parameters;
-       std::map<RTLIL::IdString, RTLIL::Wire*> wires;
+       std::map<RTLIL::IdString, RTLIL::Wire*> wires_;
        std::map<RTLIL::IdString, RTLIL::Memory*> memories;
        std::map<RTLIL::IdString, RTLIL::Cell*> cells;
        std::map<RTLIL::IdString, RTLIL::Process*> processes;
index f67ffe1e8f3ce2d1c95158f821087e8dd09b0416..9eacfbcb5830ef8fe6154b39503069906309f1ac 100644 (file)
@@ -43,7 +43,7 @@ static void find_stub_nets(RTLIL::Design *design, RTLIL::Module *module, bool re
        }
 
        // for each wire in the module
-       for (auto &wire_iter : module->wires)
+       for (auto &wire_iter : module->wires_)
        {
                RTLIL::Wire *wire = wire_iter.second;
 
index cf8a4add88dd8c96f562ea0c149601febc837311..0cd1da8082736768bcf7b561ab2c41ff432b8fec 100644 (file)
@@ -14,7 +14,7 @@ struct MyPass : public Pass {
         log("Modules in current design:\n");
         for (auto &mod : design->modules)
             log("  %s (%zd wires, %zd cells)\n", RTLIL::id2cstr(mod.first),
-                    mod.second->wires.size(), mod.second->cells.size());
+                    mod.second->wires_.size(), mod.second->cells.size());
     }
 } MyPass;
 
@@ -58,8 +58,8 @@ struct Test2Pass : public Pass {
 
         RTLIL::Module *module = design->modules.at("\\test");
 
-        RTLIL::SigSpec a(module->wires.at("\\a")), x(module->wires.at("\\x")),
-                                                   y(module->wires.at("\\y"));
+        RTLIL::SigSpec a(module->wires_.at("\\a")), x(module->wires_.at("\\x")),
+                                                   y(module->wires_.at("\\y"));
         log("%d %d %d\n", a == x, x == y, y == a); // will print "0 0 0"
 
         SigMap sigmap(module);
index 41cfe88f6f1d8b4d88ea5635a671ff770ab7192d..184f143a1f0ffe66397ac2c3ef32167be3a7665e 100644 (file)
@@ -453,8 +453,8 @@ static void abc_module(RTLIL::Design *design, RTLIL::Module *current_module, std
                        clk_polarity = false;
                        clk_str = clk_str.substr(1);
                }
-               if (module->wires.count(RTLIL::escape_id(clk_str)) != 0)
-                       clk_sig = assign_map(RTLIL::SigSpec(module->wires.at(RTLIL::escape_id(clk_str)), 0));
+               if (module->wires_.count(RTLIL::escape_id(clk_str)) != 0)
+                       clk_sig = assign_map(RTLIL::SigSpec(module->wires_.at(RTLIL::escape_id(clk_str)), 0));
        }
 
        if (dff_mode && clk_sig.size() == 0)
@@ -495,7 +495,7 @@ static void abc_module(RTLIL::Design *design, RTLIL::Module *current_module, std
        for (auto c : cells)
                extract_cell(c, keepff);
 
-       for (auto &wire_it : module->wires) {
+       for (auto &wire_it : module->wires_) {
                if (wire_it.second->port_id > 0 || wire_it.second->get_bool_attribute("\\keep"))
                        mark_port(RTLIL::SigSpec(wire_it.second));
        }
@@ -687,7 +687,7 @@ static void abc_module(RTLIL::Design *design, RTLIL::Module *current_module, std
                RTLIL::Module *mapped_mod = mapped_design->modules["\\netlist"];
                if (mapped_mod == NULL)
                        log_error("ABC output file does not contain a module `netlist'.\n");
-               for (auto &it : mapped_mod->wires) {
+               for (auto &it : mapped_mod->wires_) {
                        RTLIL::Wire *w = it.second;
                        RTLIL::Wire *wire = module->addWire(remap_name(w->name));
                        design->select(module, wire);
@@ -701,47 +701,47 @@ static void abc_module(RTLIL::Design *design, RTLIL::Module *current_module, std
                                cell_stats[RTLIL::unescape_id(c->type)]++;
                                if (c->type == "\\ZERO" || c->type == "\\ONE") {
                                        RTLIL::SigSig conn;
-                                       conn.first = RTLIL::SigSpec(module->wires[remap_name(c->get("\\Y").as_wire()->name)]);
+                                       conn.first = RTLIL::SigSpec(module->wires_[remap_name(c->get("\\Y").as_wire()->name)]);
                                        conn.second = RTLIL::SigSpec(c->type == "\\ZERO" ? 0 : 1, 1);
                                        module->connect(conn);
                                        continue;
                                }
                                if (c->type == "\\BUF") {
                                        RTLIL::SigSig conn;
-                                       conn.first = RTLIL::SigSpec(module->wires[remap_name(c->get("\\Y").as_wire()->name)]);
-                                       conn.second = RTLIL::SigSpec(module->wires[remap_name(c->get("\\A").as_wire()->name)]);
+                                       conn.first = RTLIL::SigSpec(module->wires_[remap_name(c->get("\\Y").as_wire()->name)]);
+                                       conn.second = RTLIL::SigSpec(module->wires_[remap_name(c->get("\\A").as_wire()->name)]);
                                        module->connect(conn);
                                        continue;
                                }
                                if (c->type == "\\INV") {
                                        RTLIL::Cell *cell = module->addCell(remap_name(c->name), "$_INV_");
-                                       cell->set("\\A", RTLIL::SigSpec(module->wires[remap_name(c->get("\\A").as_wire()->name)]));
-                                       cell->set("\\Y", RTLIL::SigSpec(module->wires[remap_name(c->get("\\Y").as_wire()->name)]));
+                                       cell->set("\\A", RTLIL::SigSpec(module->wires_[remap_name(c->get("\\A").as_wire()->name)]));
+                                       cell->set("\\Y", RTLIL::SigSpec(module->wires_[remap_name(c->get("\\Y").as_wire()->name)]));
                                        design->select(module, cell);
                                        continue;
                                }
                                if (c->type == "\\AND" || c->type == "\\OR" || c->type == "\\XOR") {
                                        RTLIL::Cell *cell = module->addCell(remap_name(c->name), "$_" + c->type.substr(1) + "_");
-                                       cell->set("\\A", RTLIL::SigSpec(module->wires[remap_name(c->get("\\A").as_wire()->name)]));
-                                       cell->set("\\B", RTLIL::SigSpec(module->wires[remap_name(c->get("\\B").as_wire()->name)]));
-                                       cell->set("\\Y", RTLIL::SigSpec(module->wires[remap_name(c->get("\\Y").as_wire()->name)]));
+                                       cell->set("\\A", RTLIL::SigSpec(module->wires_[remap_name(c->get("\\A").as_wire()->name)]));
+                                       cell->set("\\B", RTLIL::SigSpec(module->wires_[remap_name(c->get("\\B").as_wire()->name)]));
+                                       cell->set("\\Y", RTLIL::SigSpec(module->wires_[remap_name(c->get("\\Y").as_wire()->name)]));
                                        design->select(module, cell);
                                        continue;
                                }
                                if (c->type == "\\MUX") {
                                        RTLIL::Cell *cell = module->addCell(remap_name(c->name), "$_MUX_");
-                                       cell->set("\\A", RTLIL::SigSpec(module->wires[remap_name(c->get("\\A").as_wire()->name)]));
-                                       cell->set("\\B", RTLIL::SigSpec(module->wires[remap_name(c->get("\\B").as_wire()->name)]));
-                                       cell->set("\\S", RTLIL::SigSpec(module->wires[remap_name(c->get("\\S").as_wire()->name)]));
-                                       cell->set("\\Y", RTLIL::SigSpec(module->wires[remap_name(c->get("\\Y").as_wire()->name)]));
+                                       cell->set("\\A", RTLIL::SigSpec(module->wires_[remap_name(c->get("\\A").as_wire()->name)]));
+                                       cell->set("\\B", RTLIL::SigSpec(module->wires_[remap_name(c->get("\\B").as_wire()->name)]));
+                                       cell->set("\\S", RTLIL::SigSpec(module->wires_[remap_name(c->get("\\S").as_wire()->name)]));
+                                       cell->set("\\Y", RTLIL::SigSpec(module->wires_[remap_name(c->get("\\Y").as_wire()->name)]));
                                        design->select(module, cell);
                                        continue;
                                }
                                if (c->type == "\\DFF") {
                                        log_assert(clk_sig.size() == 1);
                                        RTLIL::Cell *cell = module->addCell(remap_name(c->name), clk_polarity ? "$_DFF_P_" : "$_DFF_N_");
-                                       cell->set("\\D", RTLIL::SigSpec(module->wires[remap_name(c->get("\\D").as_wire()->name)]));
-                                       cell->set("\\Q", RTLIL::SigSpec(module->wires[remap_name(c->get("\\Q").as_wire()->name)]));
+                                       cell->set("\\D", RTLIL::SigSpec(module->wires_[remap_name(c->get("\\D").as_wire()->name)]));
+                                       cell->set("\\Q", RTLIL::SigSpec(module->wires_[remap_name(c->get("\\Q").as_wire()->name)]));
                                        cell->set("\\C", clk_sig);
                                        design->select(module, cell);
                                        continue;
@@ -757,7 +757,7 @@ static void abc_module(RTLIL::Design *design, RTLIL::Module *current_module, std
                                cell_stats[RTLIL::unescape_id(c->type)]++;
                                if (c->type == "\\_const0_" || c->type == "\\_const1_") {
                                        RTLIL::SigSig conn;
-                                       conn.first = RTLIL::SigSpec(module->wires[remap_name(c->connections().begin()->second.as_wire()->name)]);
+                                       conn.first = RTLIL::SigSpec(module->wires_[remap_name(c->connections().begin()->second.as_wire()->name)]);
                                        conn.second = RTLIL::SigSpec(c->type == "\\_const0_" ? 0 : 1, 1);
                                        module->connect(conn);
                                        continue;
@@ -765,8 +765,8 @@ static void abc_module(RTLIL::Design *design, RTLIL::Module *current_module, std
                                if (c->type == "\\_dff_") {
                                        log_assert(clk_sig.size() == 1);
                                        RTLIL::Cell *cell = module->addCell(remap_name(c->name), clk_polarity ? "$_DFF_P_" : "$_DFF_N_");
-                                       cell->set("\\D", RTLIL::SigSpec(module->wires[remap_name(c->get("\\D").as_wire()->name)]));
-                                       cell->set("\\Q", RTLIL::SigSpec(module->wires[remap_name(c->get("\\Q").as_wire()->name)]));
+                                       cell->set("\\D", RTLIL::SigSpec(module->wires_[remap_name(c->get("\\D").as_wire()->name)]));
+                                       cell->set("\\Q", RTLIL::SigSpec(module->wires_[remap_name(c->get("\\Q").as_wire()->name)]));
                                        cell->set("\\C", clk_sig);
                                        design->select(module, cell);
                                        continue;
@@ -779,7 +779,7 @@ static void abc_module(RTLIL::Design *design, RTLIL::Module *current_module, std
                                                if (c.width == 0)
                                                        continue;
                                                assert(c.width == 1);
-                                               newsig.append(module->wires[remap_name(c.wire->name)]);
+                                               newsig.append(module->wires_[remap_name(c.wire->name)]);
                                        }
                                        cell->set(conn.first, newsig);
                                }
@@ -789,9 +789,9 @@ static void abc_module(RTLIL::Design *design, RTLIL::Module *current_module, std
 
                for (auto conn : mapped_mod->connections()) {
                        if (!conn.first.is_fully_const())
-                               conn.first = RTLIL::SigSpec(module->wires[remap_name(conn.first.as_wire()->name)]);
+                               conn.first = RTLIL::SigSpec(module->wires_[remap_name(conn.first.as_wire()->name)]);
                        if (!conn.second.is_fully_const())
-                               conn.second = RTLIL::SigSpec(module->wires[remap_name(conn.second.as_wire()->name)]);
+                               conn.second = RTLIL::SigSpec(module->wires_[remap_name(conn.second.as_wire()->name)]);
                        module->connect(conn);
                }
 
@@ -805,10 +805,10 @@ static void abc_module(RTLIL::Design *design, RTLIL::Module *current_module, std
                                RTLIL::SigSig conn;
                                if (si.type >= 0) {
                                        conn.first = si.bit;
-                                       conn.second = RTLIL::SigSpec(module->wires[remap_name(buffer)]);
+                                       conn.second = RTLIL::SigSpec(module->wires_[remap_name(buffer)]);
                                        out_wires++;
                                } else {
-                                       conn.first = RTLIL::SigSpec(module->wires[remap_name(buffer)]);
+                                       conn.first = RTLIL::SigSpec(module->wires_[remap_name(buffer)]);
                                        conn.second = si.bit;
                                        in_wires++;
                                }
index e86afa1b769e7515d9fb05094f3c580828d004c4..773bbe5d220504baacd1260d88a4769a078e89bb 100644 (file)
@@ -113,15 +113,15 @@ RTLIL::Design *abc_parse_blif(FILE *f, std::string dff_name)
                                char *d = strtok(NULL, " \t\r\n");
                                char *q = strtok(NULL, " \t\r\n");
 
-                               if (module->wires.count(RTLIL::escape_id(d)) == 0)
+                               if (module->wires_.count(RTLIL::escape_id(d)) == 0)
                                        module->addWire(RTLIL::escape_id(d));
 
-                               if (module->wires.count(RTLIL::escape_id(q)) == 0)
+                               if (module->wires_.count(RTLIL::escape_id(q)) == 0)
                                        module->addWire(RTLIL::escape_id(q));
 
                                RTLIL::Cell *cell = module->addCell(NEW_ID, dff_name);
-                               cell->set("\\D", module->wires.at(RTLIL::escape_id(d)));
-                               cell->set("\\Q", module->wires.at(RTLIL::escape_id(q)));
+                               cell->set("\\D", module->wires_.at(RTLIL::escape_id(d)));
+                               cell->set("\\Q", module->wires_.at(RTLIL::escape_id(q)));
                                continue;
                        }
 
@@ -138,9 +138,9 @@ RTLIL::Design *abc_parse_blif(FILE *f, std::string dff_name)
                                        if (q == NULL || !q[0] || !q[1])
                                                goto error;
                                        *(q++) = 0;
-                                       if (module->wires.count(RTLIL::escape_id(q)) == 0)
+                                       if (module->wires_.count(RTLIL::escape_id(q)) == 0)
                                                module->addWire(RTLIL::escape_id(q));
-                                       cell->set(RTLIL::escape_id(p), module->wires.at(RTLIL::escape_id(q)));
+                                       cell->set(RTLIL::escape_id(p), module->wires_.at(RTLIL::escape_id(q)));
                                }
                                continue;
                        }
@@ -151,8 +151,8 @@ RTLIL::Design *abc_parse_blif(FILE *f, std::string dff_name)
                                RTLIL::SigSpec input_sig, output_sig;
                                while ((p = strtok(NULL, " \t\r\n")) != NULL) {
                                        RTLIL::Wire *wire;
-                                       if (module->wires.count(stringf("\\%s", p)) > 0) {
-                                               wire = module->wires.at(stringf("\\%s", p));
+                                       if (module->wires_.count(stringf("\\%s", p)) > 0) {
+                                               wire = module->wires_.at(stringf("\\%s", p));
                                        } else {
                                                wire = module->addWire(stringf("\\%s", p));
                                        }
index 7e9ba97ec0de665929efed2a27e0836542882fcc..e97bf8fc1fcd42c295d9a2611ec44547c94fc80d 100644 (file)
@@ -28,8 +28,8 @@ static void add_wire(RTLIL::Design *design, RTLIL::Module *module, std::string n
 
        if (module->count_id(name) != 0)
        {
-               if (module->wires.count(name) > 0)
-                       wire = module->wires.at(name);
+               if (module->wires_.count(name) > 0)
+                       wire = module->wires_.at(name);
 
                if (wire != NULL && wire->width != width)
                        wire = NULL;
@@ -52,7 +52,7 @@ static void add_wire(RTLIL::Design *design, RTLIL::Module *module, std::string n
                wire->port_output = flag_output;
 
                if (flag_input || flag_output) {
-                       wire->port_id = module->wires.size();
+                       wire->port_id = module->wires_.size();
                        module->fixup_ports();
                }
 
index df5a3d4b97f77f084be880bbded3badfc93886a5..460dd96634adaa34530ad3bd6d42b5081ce7264b 100644 (file)
@@ -79,7 +79,7 @@ struct DeletePass : public Pass {
                        RTLIL::Module *module = mod_it.second;
 
                        if (flag_input || flag_output) {
-                               for (auto &it : module->wires)
+                               for (auto &it : module->wires_)
                                        if (design->selected(module, it.second)) {
                                                if (flag_input)
                                                        it.second->port_input = false;
@@ -95,7 +95,7 @@ struct DeletePass : public Pass {
                        std::set<std::string> delete_procs;
                        std::set<std::string> delete_mems;
 
-                       for (auto &it : module->wires)
+                       for (auto &it : module->wires_)
                                if (design->selected(module, it.second))
                                        delete_wires.insert(it.second);
 
index 721d5c987658ce346cbcdfdf9114e6375c2deefe..e163e72433dc99ed4bd72f6224ea646b4ff6b445 100644 (file)
@@ -29,7 +29,7 @@ static void rename_in_module(RTLIL::Module *module, std::string from_name, std::
        if (module->count_id(to_name))
                log_cmd_error("There is already an object `%s' in module `%s'.\n", to_name.c_str(), module->name.c_str());
 
-       for (auto &it : module->wires)
+       for (auto &it : module->wires_)
                if (it.first == from_name) {
                        log("Renaming wire %s to %s in module %s.\n", log_id(it.second), log_id(to_name), log_id(module));
                        module->rename(it.second, to_name);
@@ -105,13 +105,13 @@ struct RenamePass : public Pass {
                                        continue;
 
                                std::map<RTLIL::IdString, RTLIL::Wire*> new_wires;
-                               for (auto &it : module->wires) {
+                               for (auto &it : module->wires_) {
                                        if (it.first[0] == '$' && design->selected(module, it.second))
                                                do it.second->name = stringf("\\_%d_", counter++);
                                                while (module->count_id(it.second->name) > 0);
                                        new_wires[it.second->name] = it.second;
                                }
-                               module->wires.swap(new_wires);
+                               module->wires_.swap(new_wires);
 
                                std::map<RTLIL::IdString, RTLIL::Cell*> new_cells;
                                for (auto &it : module->cells) {
@@ -135,13 +135,13 @@ struct RenamePass : public Pass {
                                        continue;
 
                                std::map<RTLIL::IdString, RTLIL::Wire*> new_wires;
-                               for (auto &it : module->wires) {
+                               for (auto &it : module->wires_) {
                                        if (design->selected(module, it.second))
                                                if (it.first[0] == '\\' && it.second->port_id == 0)
                                                        it.second->name = NEW_ID;
                                        new_wires[it.second->name] = it.second;
                                }
-                               module->wires.swap(new_wires);
+                               module->wires_.swap(new_wires);
 
                                std::map<RTLIL::IdString, RTLIL::Cell*> new_cells;
                                for (auto &it : module->cells) {
index 3380a935a9095d99a30727193c70653f8de63ce4..7e2b2fc9fb350e6bf71c52afa582ad9e22da89ae 100644 (file)
@@ -114,7 +114,7 @@ struct SccWorker
                SigPool selectedSignals;
                SigSet<RTLIL::Cell*> sigToNextCells;
 
-               for (auto &it : module->wires)
+               for (auto &it : module->wires_)
                        if (design->selected(module, it.second))
                                selectedSignals.add(sigmap(RTLIL::SigSpec(it.second)));
 
index e0f1a6d6919a53e44f07c34482ba8666224efecc..0cabdc06bb999b3936bf64eae97f9e4c1cd85688 100644 (file)
@@ -161,7 +161,7 @@ static void select_op_neg(RTLIL::Design *design, RTLIL::Selection &lhs)
                }
 
                RTLIL::Module *mod = mod_it.second;
-               for (auto &it : mod->wires)
+               for (auto &it : mod->wires_)
                        if (!lhs.selected_member(mod_it.first, it.first))
                                new_sel.selected_members[mod->name].insert(it.first);
                for (auto &it : mod->memories)
@@ -215,11 +215,11 @@ static void select_op_alias(RTLIL::Design *design, RTLIL::Selection &lhs)
                SigMap sigmap(mod_it.second);
                SigPool selected_bits;
 
-               for (auto &it : mod_it.second->wires)
+               for (auto &it : mod_it.second->wires_)
                        if (lhs.selected_member(mod_it.first, it.first))
                                selected_bits.add(sigmap(it.second));
 
-               for (auto &it : mod_it.second->wires)
+               for (auto &it : mod_it.second->wires_)
                        if (!lhs.selected_member(mod_it.first, it.first) && selected_bits.check_any(sigmap(it.second)))
                                lhs.selected_members[mod_it.first].insert(it.first);
        }
@@ -278,7 +278,7 @@ static void select_op_diff(RTLIL::Design *design, RTLIL::Selection &lhs, const R
 
                if (lhs.selected_modules.count(mod->name) > 0)
                {
-                       for (auto &it : mod->wires)
+                       for (auto &it : mod->wires_)
                                lhs.selected_members[mod->name].insert(it.first);
                        for (auto &it : mod->memories)
                                lhs.selected_members[mod->name].insert(it.first);
@@ -376,7 +376,7 @@ static int select_op_expand(RTLIL::Design *design, RTLIL::Selection &lhs, std::v
                RTLIL::Module *mod = mod_it.second;
                std::set<RTLIL::Wire*> selected_wires;
 
-               for (auto &it : mod->wires)
+               for (auto &it : mod->wires_)
                        if (lhs.selected_member(mod_it.first, it.first) && limits.count(it.first) == 0)
                                selected_wires.insert(it.second);
 
@@ -700,22 +700,22 @@ static void select_stmt(RTLIL::Design *design, std::string arg)
 
                RTLIL::Module *mod = mod_it.second;
                if (arg_memb.substr(0, 2) == "w:") {
-                       for (auto &it : mod->wires)
+                       for (auto &it : mod->wires_)
                                if (match_ids(it.first, arg_memb.substr(2)))
                                        sel.selected_members[mod->name].insert(it.first);
                } else
                if (arg_memb.substr(0, 2) == "i:") {
-                       for (auto &it : mod->wires)
+                       for (auto &it : mod->wires_)
                                if (it.second->port_input && match_ids(it.first, arg_memb.substr(2)))
                                        sel.selected_members[mod->name].insert(it.first);
                } else
                if (arg_memb.substr(0, 2) == "o:") {
-                       for (auto &it : mod->wires)
+                       for (auto &it : mod->wires_)
                                if (it.second->port_output && match_ids(it.first, arg_memb.substr(2)))
                                        sel.selected_members[mod->name].insert(it.first);
                } else
                if (arg_memb.substr(0, 2) == "x:") {
-                       for (auto &it : mod->wires)
+                       for (auto &it : mod->wires_)
                                if ((it.second->port_input || it.second->port_output) && match_ids(it.first, arg_memb.substr(2)))
                                        sel.selected_members[mod->name].insert(it.first);
                } else
@@ -723,7 +723,7 @@ static void select_stmt(RTLIL::Design *design, std::string arg)
                        size_t delim = arg_memb.substr(2).find(':');
                        if (delim == std::string::npos) {
                                int width = atoi(arg_memb.substr(2).c_str());
-                               for (auto &it : mod->wires)
+                               for (auto &it : mod->wires_)
                                        if (it.second->width == width)
                                                sel.selected_members[mod->name].insert(it.first);
                        } else {
@@ -731,7 +731,7 @@ static void select_stmt(RTLIL::Design *design, std::string arg)
                                std::string max_str = arg_memb.substr(2+delim+1);
                                int min_width = min_str.empty() ? 0 : atoi(min_str.c_str());
                                int max_width = max_str.empty() ? -1 : atoi(max_str.c_str());
-                               for (auto &it : mod->wires)
+                               for (auto &it : mod->wires_)
                                        if (min_width <= it.second->width && (it.second->width <= max_width || max_width == -1))
                                                sel.selected_members[mod->name].insert(it.first);
                        }
@@ -757,7 +757,7 @@ static void select_stmt(RTLIL::Design *design, std::string arg)
                                        sel.selected_members[mod->name].insert(it.first);
                } else
                if (arg_memb.substr(0, 2) == "a:") {
-                       for (auto &it : mod->wires)
+                       for (auto &it : mod->wires_)
                                if (match_attr(it.second->attributes, arg_memb.substr(2)))
                                        sel.selected_members[mod->name].insert(it.first);
                        for (auto &it : mod->memories)
@@ -777,7 +777,7 @@ static void select_stmt(RTLIL::Design *design, std::string arg)
                } else {
                        if (arg_memb.substr(0, 2) == "n:")
                                arg_memb = arg_memb.substr(2);
-                       for (auto &it : mod->wires)
+                       for (auto &it : mod->wires_)
                                if (match_ids(it.first, arg_memb))
                                        sel.selected_members[mod->name].insert(it.first);
                        for (auto &it : mod->memories)
@@ -1152,7 +1152,7 @@ struct SelectPass : public Pass {
                                if (sel->selected_whole_module(mod_it.first) && list_mode)
                                        log("%s\n", id2cstr(mod_it.first));
                                if (sel->selected_module(mod_it.first)) {
-                                       for (auto &it : mod_it.second->wires)
+                                       for (auto &it : mod_it.second->wires_)
                                                if (sel->selected_member(mod_it.first, it.first))
                                                        LOG_OBJECT("%s/%s\n", id2cstr(mod_it.first), id2cstr(it.first));
                                        for (auto &it : mod_it.second->memories)
@@ -1219,7 +1219,7 @@ struct SelectPass : public Pass {
                        sel->optimize(design);
                        for (auto mod_it : design->modules)
                                if (sel->selected_module(mod_it.first)) {
-                                       for (auto &it : mod_it.second->wires)
+                                       for (auto &it : mod_it.second->wires_)
                                                if (sel->selected_member(mod_it.first, it.first))
                                                        total_count++;
                                        for (auto &it : mod_it.second->memories)
@@ -1374,7 +1374,7 @@ struct LsPass : public Pass {
                if (design->modules.count(design->selected_active_module) > 0)
                {
                        RTLIL::Module *module = design->modules.at(design->selected_active_module);
-                       counter += log_matches("wires", pattern, module->wires);
+                       counter += log_matches("wires", pattern, module->wires_);
                        counter += log_matches("memories", pattern, module->memories);
                        counter += log_matches("cells", pattern, module->cells);
                        counter += log_matches("processes", pattern, module->processes);
index 8d98df719be76c8cdcaba5dc07902b3cf4dec5eb..0b4f2a8a2741249db69ebe23434a47d2b1ab09a8 100644 (file)
@@ -111,7 +111,7 @@ struct SetattrPass : public Pass {
                        if (!design->selected(module))
                                continue;
 
-                       for (auto &it : module->wires)
+                       for (auto &it : module->wires_)
                                if (design->selected(module, it.second))
                                        do_setunset(it.second->attributes, setunset_list);
 
index e26106103a903ad087471f34dde36ce251c440a1..82dc1d999f9261ffa922fad67d06f062b12e4165 100644 (file)
@@ -129,7 +129,7 @@ struct SetundefPass : public Pass {
                                SigMap sigmap(module);
                                SigPool undriven_signals;
 
-                               for (auto &it : module->wires)
+                               for (auto &it : module->wires_)
                                        if (!it.second->port_input)
                                                undriven_signals.add(sigmap(it.second));
 
index d63d989722442bb8544c66375f0a517ed22acb70..1feb90afbf6ede3365572a38fe8a4dcff96b23fe 100644 (file)
@@ -305,7 +305,7 @@ struct ShowWorker
                std::set<std::string> all_sources, all_sinks;
 
                std::map<std::string, std::string> wires_on_demand;
-               for (auto &it : module->wires) {
+               for (auto &it : module->wires_) {
                        if (!design->selected_member(module->name, it.first))
                                continue;
                        const char *shape = "diamond";
index 61de440660bda8135db2b4783a4e527e0dde0104..691d972cfe1d150a2c932a3e3a4c7e82903bfe2a 100644 (file)
@@ -149,7 +149,7 @@ struct SpliceWorker
                driven_bits.push_back(RTLIL::State::Sm);
                driven_bits.push_back(RTLIL::State::Sm);
 
-               for (auto &it : module->wires)
+               for (auto &it : module->wires_)
                        if (it.second->port_input) {
                                RTLIL::SigSpec sig = sigmap(it.second);
                                driven_chunks.insert(sig);
@@ -175,7 +175,7 @@ struct SpliceWorker
 
                SigPool selected_bits;
                if (!sel_by_cell)
-                       for (auto &it : module->wires)
+                       for (auto &it : module->wires_)
                                if (design->selected(module, it.second))
                                        selected_bits.add(sigmap(it.second));
 
@@ -203,7 +203,7 @@ struct SpliceWorker
 
                std::vector<std::pair<RTLIL::Wire*, RTLIL::SigSpec>> rework_wires;
 
-               for (auto &it : module->wires)
+               for (auto &it : module->wires_)
                        if (!no_outputs && it.second->port_output) {
                                if (!design->selected(module, it.second))
                                        continue;
index 6bffba622409a49cdd74057f799420b2038f0957..accb178ba98fd17b46d25ac57bc6295a90b03390 100644 (file)
@@ -163,7 +163,7 @@ struct SplitnetsPass : public Pass {
                        }
                        else
                        {
-                               for (auto &w : module->wires) {
+                               for (auto &w : module->wires_) {
                                        RTLIL::Wire *wire = w.second;
                                        if (wire->width > 1 && (wire->port_id == 0 || flag_ports) && design->selected(module, w.second))
                                                worker.splitmap[wire] = std::vector<RTLIL::SigBit>();
index 8347700710c96cb7a171ca47ce05977307464551..fabf1a73f787c593ab0c3bdd3a24e8c0ddde671b 100644 (file)
@@ -69,7 +69,7 @@ namespace
                        STAT_INT_MEMBERS
                #undef X
 
-                       for (auto &it : mod->wires)
+                       for (auto &it : mod->wires_)
                        {
                                if (!design->selected(mod, it.second))
                                        continue;
index 55fe336f423ba119955560120070673ce5b9804f..cb420f90a7af6f8fda8ba7de7ff03efc1f62e571 100644 (file)
@@ -173,11 +173,11 @@ struct FsmDetectPass : public Pass {
                                        }
                                }
 
-                       for (auto &wire_it : module->wires)
+                       for (auto &wire_it : module->wires_)
                                if (wire_it.second->port_id != 0)
                                        sig_at_port.add(assign_map(RTLIL::SigSpec(wire_it.second)));
 
-                       for (auto &wire_it : module->wires)
+                       for (auto &wire_it : module->wires_)
                                if (design->selected(module, wire_it.second))
                                        detect_fsm(wire_it.second);
                }
index 51a4a75e7882bea841496bbbd3047806ce56c42d..85ff4af2a2cbbf277ba83ea12459ac9a6fae4ca3 100644 (file)
@@ -283,10 +283,10 @@ static void extract_fsm(RTLIL::Wire *wire)
 
        // rename original state wire
 
-       module->wires.erase(wire->name);
+       module->wires_.erase(wire->name);
        wire->attributes.erase("\\fsm_encoding");
        wire->name = stringf("$fsm$oldstate%s", wire->name.c_str());
-       module->wires[wire->name] = wire;
+       module->wires_[wire->name] = wire;
 
        // unconnect control outputs from old drivers
 
@@ -356,7 +356,7 @@ struct FsmExtractPass : public Pass {
                                }
 
                        std::vector<RTLIL::Wire*> wire_list;
-                       for (auto &wire_it : module->wires)
+                       for (auto &wire_it : module->wires_)
                                if (wire_it.second->attributes.count("\\fsm_encoding") > 0 && wire_it.second->attributes["\\fsm_encoding"].decode_string() != "none")
                                        if (design->selected(module, wire_it.second))
                                                wire_list.push_back(wire_it.second);
index 8c09d2eaaaa127980f7d45609a96e331fd6dbde9..a266c3445d6ff387d4875efbe72a8cf9da74dd68 100644 (file)
@@ -221,15 +221,15 @@ static bool expand_module(RTLIL::Design *design, RTLIL::Module *module, bool fla
                        std::string portname = conn.first;
                        if (portname.substr(0, 1) == "$") {
                                int port_id = atoi(portname.substr(1).c_str());
-                               for (auto &wire_it : mod->wires)
+                               for (auto &wire_it : mod->wires_)
                                        if (wire_it.second->port_id == port_id) {
                                                portname = wire_it.first;
                                                break;
                                        }
                        }
-                       if (mod->wires.count(portname) == 0)
+                       if (mod->wires_.count(portname) == 0)
                                log_error("Array cell `%s.%s' connects to unkown port `%s'.\n", RTLIL::id2cstr(module->name), RTLIL::id2cstr(cell->name), RTLIL::id2cstr(conn.first));
-                       int port_size = mod->wires.at(portname)->width;
+                       int port_size = mod->wires_.at(portname)->width;
                        if (conn_size == port_size)
                                continue;
                        if (conn_size != port_size*num)
@@ -492,7 +492,7 @@ struct HierarchyPass : public Pass {
                        }
 
                        for (auto module : pos_mods)
-                       for (auto &wire_it : module->wires) {
+                       for (auto &wire_it : module->wires_) {
                                RTLIL::Wire *wire = wire_it.second;
                                if (wire->port_id > 0)
                                        pos_map[std::pair<RTLIL::Module*,int>(module, wire->port_id)] = wire->name;
index e39f96ca818fa21a74bc0774e83a5b4f1d466ef0..774aabae123388a0eb8a1d1f4311036f5722e0ec 100644 (file)
@@ -212,7 +212,7 @@ struct SubmodWorker
 
                if (opt_name.empty())
                {
-                       for (auto &it : module->wires)
+                       for (auto &it : module->wires_)
                                it.second->attributes.erase("\\submod");
 
                        for (auto &it : module->cells)
index 32c7e63a08f6ca06ae0fb37d4848c9562b371dd8..4f166653326020b7c43e80bc4b7aae7d0e82f6a4 100644 (file)
@@ -131,7 +131,7 @@ static void handle_cell(RTLIL::Module *module, RTLIL::Cell *cell)
                        c->set("\\D", data_reg_in.back());
 
                        std::string w_out_name = stringf("%s[%d]", cell->parameters["\\MEMID"].decode_string().c_str(), i);
-                       if (module->wires.count(w_out_name) > 0)
+                       if (module->wires_.count(w_out_name) > 0)
                                w_out_name = genid(cell->name, "", i, "$q");
 
                        RTLIL::Wire *w_out = module->addWire(w_out_name, mem_width);
index df1a2697a1ee03ca1873c98e66e9941023e71e09..35a28d17d14e3822e566e8c4907b6764161b8666 100644 (file)
@@ -137,7 +137,7 @@ struct MemoryShareWorker
                std::map<RTLIL::SigBit, std::set<RTLIL::SigBit>> muxtree_upstream_map;
                std::set<RTLIL::SigBit> non_feedback_nets;
 
-               for (auto wire_it : module->wires)
+               for (auto wire_it : module->wires_)
                        if (wire_it.second->port_output) {
                                std::vector<RTLIL::SigBit> bits = RTLIL::SigSpec(wire_it.second);
                                non_feedback_nets.insert(bits.begin(), bits.end());
index 63d03b20515a1428dbc93653684a974ff5e21e80..9542e10df8433916e2ce10120e94253d60eeb4fe 100644 (file)
@@ -52,7 +52,7 @@ static void rmunused_module_cells(RTLIL::Module *module, bool verbose)
                unused.insert(cell);
        }
 
-       for (auto &it : module->wires) {
+       for (auto &it : module->wires_) {
                RTLIL::Wire *wire = it.second;
                if (wire->port_output || wire->get_bool_attribute("\\keep")) {
                        std::set<RTLIL::Cell*> cell_list;
@@ -175,12 +175,12 @@ static void rmunused_module_signals(RTLIL::Module *module, bool purge_mode, bool
                                if (ct_all.cell_output(cell->type, it2.first))
                                        direct_sigs.insert(assign_map(it2.second));
        }
-       for (auto &it : module->wires) {
+       for (auto &it : module->wires_) {
                if (direct_sigs.count(assign_map(it.second)) || it.second->port_input)
                        direct_wires.insert(it.second);
        }
 
-       for (auto &it : module->wires) {
+       for (auto &it : module->wires_) {
                RTLIL::Wire *wire = it.second;
                for (int i = 0; i < wire->width; i++) {
                        RTLIL::SigBit s1 = RTLIL::SigBit(wire, i), s2 = assign_map(s1);
@@ -202,7 +202,7 @@ static void rmunused_module_signals(RTLIL::Module *module, bool purge_mode, bool
                                used_signals_nodrivers.add(it2.second);
                }
        }
-       for (auto &it : module->wires) {
+       for (auto &it : module->wires_) {
                RTLIL::Wire *wire = it.second;
                if (wire->port_id > 0) {
                        RTLIL::SigSpec sig = RTLIL::SigSpec(wire);
@@ -219,7 +219,7 @@ static void rmunused_module_signals(RTLIL::Module *module, bool purge_mode, bool
        }
 
        std::vector<RTLIL::Wire*> maybe_del_wires;
-       for (auto &it : module->wires) {
+       for (auto &it : module->wires_) {
                RTLIL::Wire *wire = it.second;
                if ((!purge_mode && check_public_name(wire->name)) || wire->port_id != 0 || wire->get_bool_attribute("\\keep")) {
                        RTLIL::SigSpec s1 = RTLIL::SigSpec(wire), s2 = s1;
index 672186006e16f1732249a016104bdd20b8833673..290d4ffd9c3a7af6cf650f8bb437929955ab5c5e 100644 (file)
@@ -45,7 +45,7 @@ static void replace_undriven(RTLIL::Design *design, RTLIL::Module *module)
                        used_signals.add(sigmap(conn.second));
        }
 
-       for (auto &it : module->wires) {
+       for (auto &it : module->wires_) {
                if (it.second->port_input)
                        driven_signals.add(sigmap(it.second));
                if (it.second->port_output)
index 8487152ff845590a7abfc58db12cf11e4ee32003..16dedef5833fd1369f4fadaf4ede38bf9bc5a23a 100644 (file)
@@ -136,7 +136,7 @@ struct OptMuxtreeWorker
                                }
                        }
                }
-               for (auto &it : module->wires) {
+               for (auto &it : module->wires_) {
                        if (it.second->port_output)
                                for (int idx : sig2bits(RTLIL::SigSpec(it.second)))
                                        bit2info[idx].seen_non_mux = true;
index 8c09f5414ac8cfd2921d631fac631860e74a8062..b26e8b37e263b081c1ed8b8357d2a882a0c3d785 100644 (file)
@@ -173,7 +173,7 @@ struct OptRmdffPass : public Pass {
 
                        assign_map.set(mod_it.second);
                        dff_init_map.set(mod_it.second);
-                       for (auto &it : mod_it.second->wires)
+                       for (auto &it : mod_it.second->wires_)
                                if (it.second->attributes.count("\\init") != 0)
                                        dff_init_map.add(it.second, it.second->attributes.at("\\init"));
                        mux_drivers.clear();
index 4f733a37369734d1fba12f4a4c4942ebda5071fc..c91f037d491e9ccfd5a9cd47382b32644bca748c 100644 (file)
@@ -237,7 +237,7 @@ struct OptShareWorker
                assign_map.set(module);
 
                dff_init_map.set(module);
-               for (auto &it : module->wires)
+               for (auto &it : module->wires_)
                        if (it.second->attributes.count("\\init") != 0)
                                dff_init_map.add(it.second, it.second->attributes.at("\\init"));
 
index 114f2567e8bfcb1150f60b9c81a7e870cb893d6e..565d86a7238d573eebcf9e92fac8853389c31741 100644 (file)
@@ -243,7 +243,7 @@ struct ProcArstPass : public Pass {
                                        if (!design->selected(mod_it.second, proc_it.second))
                                                continue;
                                        proc_arst(mod_it.second, proc_it.second, assign_map);
-                                       if (global_arst.empty() || mod_it.second->wires.count(global_arst) == 0)
+                                       if (global_arst.empty() || mod_it.second->wires_.count(global_arst) == 0)
                                                continue;
                                        std::vector<RTLIL::SigSig> arst_actions;
                                        for (auto sync : proc_it.second->syncs)
@@ -266,7 +266,7 @@ struct ProcArstPass : public Pass {
                                        if (!arst_actions.empty()) {
                                                RTLIL::SyncRule *sync = new RTLIL::SyncRule;
                                                sync->type = global_arst_neg ? RTLIL::SyncType::ST0 : RTLIL::SyncType::ST1;
-                                               sync->signal = mod_it.second->wires.at(global_arst);
+                                               sync->signal = mod_it.second->wires_.at(global_arst);
                                                sync->actions = arst_actions;
                                                proc_it.second->syncs.push_back(sync);
                                        }
index 6949b76db8ab4bd505feef3c3f8d57c12b7c6109..d4ff2a86c48a9c7f54f7c4c19fe912f72bb850ac 100644 (file)
@@ -87,16 +87,16 @@ struct BruteForceEquivChecker
                        mod1(mod1), mod2(mod2), counter(0), errors(0), ignore_x_mod1(ignore_x_mod1)
        {
                log("Checking for equivialence (brute-force): %s vs %s\n", mod1->name.c_str(), mod2->name.c_str());
-               for (auto &w : mod1->wires)
+               for (auto &w : mod1->wires_)
                {
                        RTLIL::Wire *wire1 = w.second;
                        if (wire1->port_id == 0)
                                continue;
 
-                       if (mod2->wires.count(wire1->name) == 0)
+                       if (mod2->wires_.count(wire1->name) == 0)
                                log_cmd_error("Port %s in module 1 has no counterpart in module 2!\n", wire1->name.c_str());
 
-                       RTLIL::Wire *wire2 = mod2->wires.at(wire1->name);
+                       RTLIL::Wire *wire2 = mod2->wires_.at(wire1->name);
                        if (wire1->width != wire2->width || wire1->port_input != wire2->port_input || wire1->port_output != wire2->port_output)
                                log_cmd_error("Port %s in module 1 does not match its counterpart in module 2!\n", wire1->name.c_str());
 
@@ -153,11 +153,11 @@ struct VlogHammerReporter
 
                ez.assume(satgen.signals_eq(recorded_set_vars, recorded_set_vals));
 
-               std::vector<int> y_vec = satgen.importDefSigSpec(module->wires.at("\\y"));
+               std::vector<int> y_vec = satgen.importDefSigSpec(module->wires_.at("\\y"));
                std::vector<bool> y_values;
 
                if (model_undef) {
-                       std::vector<int> y_undef_vec = satgen.importUndefSigSpec(module->wires.at("\\y"));
+                       std::vector<int> y_undef_vec = satgen.importUndefSigSpec(module->wires_.at("\\y"));
                        y_vec.insert(y_vec.end(), y_undef_vec.begin(), y_undef_vec.end());
                }
 
@@ -252,7 +252,7 @@ struct VlogHammerReporter
 
                                std::vector<RTLIL::State> bits(patterns[idx].bits.begin(), patterns[idx].bits.begin() + total_input_width);
                                for (int i = 0; i < int(inputs.size()); i++) {
-                                       RTLIL::Wire *wire = module->wires.at(inputs[i]);
+                                       RTLIL::Wire *wire = module->wires_.at(inputs[i]);
                                        for (int j = input_widths[i]-1; j >= 0; j--) {
                                                ce.set(RTLIL::SigSpec(wire, j), bits.back());
                                                recorded_set_vars.append(RTLIL::SigSpec(wire, j));
@@ -268,10 +268,10 @@ struct VlogHammerReporter
                                        }
                                }
 
-                               if (module->wires.count("\\y") == 0)
+                               if (module->wires_.count("\\y") == 0)
                                        log_error("No output wire (y) found in module %s!\n", RTLIL::id2cstr(module->name));
 
-                               RTLIL::SigSpec sig(module->wires.at("\\y"));
+                               RTLIL::SigSpec sig(module->wires_.at("\\y"));
                                RTLIL::SigSpec undef;
 
                                while (!ce.eval(sig, undef)) {
@@ -318,9 +318,9 @@ struct VlogHammerReporter
                        int width = -1;
                        RTLIL::IdString esc_name = RTLIL::escape_id(name);
                        for (auto mod : modules) {
-                               if (mod->wires.count(esc_name) == 0)
+                               if (mod->wires_.count(esc_name) == 0)
                                        log_error("Can't find input %s in module %s!\n", name.c_str(), RTLIL::id2cstr(mod->name));
-                               RTLIL::Wire *port = mod->wires.at(esc_name);
+                               RTLIL::Wire *port = mod->wires_.at(esc_name);
                                if (!port->port_input || port->port_output)
                                        log_error("Wire %s in module %s is not an input!\n", name.c_str(), RTLIL::id2cstr(mod->name));
                                if (width >= 0 && width != port->width)
@@ -469,7 +469,7 @@ struct EvalPass : public Pass {
                }
 
                if (shows.size() == 0) {
-                       for (auto &it : module->wires)
+                       for (auto &it : module->wires_)
                                if (it.second->port_output)
                                        shows.push_back(it.second->name);
                }
index 21af63a362983911d54056de9f270cc6a5a186e4..c30e6e0c8209260cfb390ab16f74dc46928ba766 100644 (file)
@@ -87,7 +87,7 @@ static void find_dff_wires(std::set<std::string> &dff_wires, RTLIL::Module *modu
                        dffsignals.add(sigmap(it.second->get("\\Q")));
        }
 
-       for (auto &it : module->wires) {
+       for (auto &it : module->wires_) {
                if (dffsignals.check_any(it.second))
                        dff_wires.insert(it.first);
        }
@@ -161,7 +161,7 @@ static void create_dff_dq_map(std::map<std::string, dff_map_info_t> &map, RTLIL:
        }
 
        std::map<std::string, dff_map_info_t> empty_dq_map;
-       for (auto &it : module->wires)
+       for (auto &it : module->wires_)
        {
                if (!consider_wire(it.second, empty_dq_map))
                        continue;
@@ -321,7 +321,7 @@ struct ExposePass : public Pass {
                                        for (auto &it : shared_dff_wires) {
                                                if (!dff_dq_maps[mod_it.second].count(it))
                                                        continue;
-                                               if (!compare_wires(first_module->wires.at(it), mod_it.second->wires.at(it)))
+                                               if (!compare_wires(first_module->wires_.at(it), mod_it.second->wires_.at(it)))
                                                        continue;
                                                new_shared_dff_wires.insert(it);
                                        }
@@ -365,7 +365,7 @@ struct ExposePass : public Pass {
 
                                if (first_module == NULL)
                                {
-                                       for (auto &it : module->wires)
+                                       for (auto &it : module->wires_)
                                                if (design->selected(module, it.second) && consider_wire(it.second, dff_dq_maps[module]))
                                                        if (!flag_dff || dff_wires.count(it.first))
                                                                shared_wires.insert(it.first);
@@ -385,16 +385,16 @@ struct ExposePass : public Pass {
                                        {
                                                RTLIL::Wire *wire;
 
-                                               if (module->wires.count(it) == 0)
+                                               if (module->wires_.count(it) == 0)
                                                        goto delete_shared_wire;
 
-                                               wire = module->wires.at(it);
+                                               wire = module->wires_.at(it);
 
                                                if (!design->selected(module, wire))
                                                        goto delete_shared_wire;
                                                if (!consider_wire(wire, dff_dq_maps[module]))
                                                        goto delete_shared_wire;
-                                               if (!compare_wires(first_module->wires.at(it), wire))
+                                               if (!compare_wires(first_module->wires_.at(it), wire))
                                                        goto delete_shared_wire;
                                                if (flag_dff && !dff_wires.count(it))
                                                        goto delete_shared_wire;
@@ -449,7 +449,7 @@ struct ExposePass : public Pass {
 
                        SigMap out_to_in_map;
 
-                       for (auto &it : module->wires)
+                       for (auto &it : module->wires_)
                        {
                                if (flag_shared) {
                                        if (shared_wires.count(it.first) == 0)
@@ -491,10 +491,10 @@ struct ExposePass : public Pass {
 
                        for (auto &dq : dff_dq_maps[module])
                        {
-                               if (!module->wires.count(dq.first))
+                               if (!module->wires_.count(dq.first))
                                        continue;
 
-                               RTLIL::Wire *wire = module->wires.at(dq.first);
+                               RTLIL::Wire *wire = module->wires_.at(dq.first);
                                std::set<RTLIL::SigBit> wire_bits_set = sigmap(wire).to_sigbit_set();
                                std::vector<RTLIL::SigBit> wire_bits_vec = sigmap(wire).to_sigbit_vector();
 
@@ -587,7 +587,7 @@ struct ExposePass : public Pass {
                                        {
                                                RTLIL::Module *mod = design->modules.at(cell->type);
 
-                                               for (auto &it : mod->wires)
+                                               for (auto &it : mod->wires_)
                                                {
                                                        RTLIL::Wire *p = it.second;
                                                        if (!p->port_input && !p->port_output)
index d5336ca01d7a0ba021f78bb794f114cff9a1be06..5d23318cea8668e756edc7971156898a23f43ffa 100644 (file)
@@ -602,7 +602,7 @@ struct FreduceWorker
 
                int bits_full_total = 0;
                std::vector<std::set<RTLIL::SigBit>> batches;
-               for (auto &it : module->wires)
+               for (auto &it : module->wires_)
                        if (it.second->port_input) {
                                batches.push_back(sigmap(it.second).to_sigbit_set());
                                bits_full_total += it.second->width;
index 0c5989b10a15df5556d82cfd52a0ea9959c6ad32..248f934c50fbd0719afb0b8bb681694ecb626d12 100644 (file)
@@ -73,13 +73,13 @@ static void create_miter_equiv(struct Pass *that, std::vector<std::string> args,
        RTLIL::Module *gold_module = design->modules.at(gold_name);
        RTLIL::Module *gate_module = design->modules.at(gate_name);
 
-       for (auto &it : gold_module->wires) {
+       for (auto &it : gold_module->wires_) {
                RTLIL::Wire *w1 = it.second, *w2;
                if (w1->port_id == 0)
                        continue;
-               if (gate_module->wires.count(it.second->name) == 0)
+               if (gate_module->wires_.count(it.second->name) == 0)
                        goto match_gold_port_error;
-               w2 = gate_module->wires.at(it.second->name);
+               w2 = gate_module->wires_.at(it.second->name);
                if (w1->port_input != w2->port_input)
                        goto match_gold_port_error;
                if (w1->port_output != w2->port_output)
@@ -91,13 +91,13 @@ static void create_miter_equiv(struct Pass *that, std::vector<std::string> args,
                log_cmd_error("No matching port in gate module was found for %s!\n", it.second->name.c_str());
        }
 
-       for (auto &it : gate_module->wires) {
+       for (auto &it : gate_module->wires_) {
                RTLIL::Wire *w1 = it.second, *w2;
                if (w1->port_id == 0)
                        continue;
-               if (gold_module->wires.count(it.second->name) == 0)
+               if (gold_module->wires_.count(it.second->name) == 0)
                        goto match_gate_port_error;
-               w2 = gold_module->wires.at(it.second->name);
+               w2 = gold_module->wires_.at(it.second->name);
                if (w1->port_input != w2->port_input)
                        goto match_gate_port_error;
                if (w1->port_output != w2->port_output)
@@ -120,7 +120,7 @@ static void create_miter_equiv(struct Pass *that, std::vector<std::string> args,
 
        RTLIL::SigSpec all_conditions;
 
-       for (auto &it : gold_module->wires)
+       for (auto &it : gold_module->wires_)
        {
                RTLIL::Wire *w1 = it.second;
 
index 71eba2f7f1ddac445f4516c1192e0cbe664ab57e..90c671165c1a6d85cb48cbfcb38baac323ae5d37 100644 (file)
@@ -94,7 +94,7 @@ struct SatHelper
 
                RTLIL::SigSpec big_lhs, big_rhs;
 
-               for (auto &it : module->wires)
+               for (auto &it : module->wires_)
                {
                        if (it.second->attributes.count("\\init") == 0)
                                continue;
@@ -1158,19 +1158,19 @@ struct SatPass : public Pass {
                        log_cmd_error("The options -set-init-undef, -set-init-def, and -set-init-zero are exclusive!\n");
 
                if (set_def_inputs) {
-                       for (auto &it : module->wires)
+                       for (auto &it : module->wires_)
                                if (it.second->port_input)
                                        sets_def.push_back(it.second->name);
                }
 
                if (show_inputs) {
-                       for (auto &it : module->wires)
+                       for (auto &it : module->wires_)
                                if (it.second->port_input)
                                        shows.push_back(it.second->name);
                }
 
                if (show_outputs) {
-                       for (auto &it : module->wires)
+                       for (auto &it : module->wires_)
                                if (it.second->port_output)
                                        shows.push_back(it.second->name);
                }
index 92bcafc0023bc24e0d551d8088004068740012dd..813e0e3e1b7c8d38e6ef00cdbd66ffbc678ee947 100644 (file)
@@ -271,7 +271,7 @@ namespace
                }
 
                // mark external signals (used in module ports)
-               for (auto &wire_it : mod->wires)
+               for (auto &wire_it : mod->wires_)
                {
                        RTLIL::Wire *wire = wire_it.second;
                        if (wire->port_id > 0)
@@ -300,7 +300,7 @@ namespace
                RTLIL::Cell *cell = haystack->addCell(stringf("$extract$%s$%d", needle->name.c_str(), RTLIL::autoidx++), needle->name);
 
                // create cell ports
-               for (auto &it : needle->wires) {
+               for (auto &it : needle->wires_) {
                        RTLIL::Wire *wire = it.second;
                        if (wire->port_id > 0) {
                                for (int i = 0; i < wire->width; i++)
@@ -742,7 +742,7 @@ struct ExtractPass : public Pass {
                                                std::vector<RTLIL::SigChunk> chunks = sigmap(conn.second);
                                                for (auto &chunk : chunks)
                                                        if (chunk.wire != NULL)
-                                                               chunk.wire = newMod->wires.at(chunk.wire->name);
+                                                               chunk.wire = newMod->wires_.at(chunk.wire->name);
                                                newCell->set(conn.first, chunks);
                                        }
                                }
index ab3bb3ed0bd2df18eec08fb1ee884230cd8116b2..6f7427f034bad8ee6c2f01422cfb6417b77312e1 100644 (file)
@@ -118,7 +118,7 @@ struct IopadmapPass : public Pass {
                        if (!design->selected(module) || module->get_bool_attribute("\\blackbox"))
                                continue;
 
-                       for (auto &it2 : module->wires)
+                       for (auto &it2 : module->wires_)
                        {
                                RTLIL::Wire *wire = it2.second;
 
index bee1df406565eb40e3685c2995af65dd5d8f2afc..03aac6693cd7cc869f388438d58a965147f1080f 100644 (file)
@@ -46,8 +46,8 @@ static void apply_prefix(std::string prefix, RTLIL::SigSpec &sig, RTLIL::Module
                if (chunk.wire != NULL) {
                        std::string wire_name = chunk.wire->name;
                        apply_prefix(prefix, wire_name);
-                       assert(module->wires.count(wire_name) > 0);
-                       chunk.wire = module->wires[wire_name];
+                       assert(module->wires_.count(wire_name) > 0);
+                       chunk.wire = module->wires_[wire_name];
                }
        sig = chunks;
 }
@@ -72,7 +72,7 @@ struct TechmapWorker
                if (module == NULL)
                        return result;
 
-               for (auto &it : module->wires) {
+               for (auto &it : module->wires_) {
                        const char *p = it.first.c_str();
                        if (*p == '$')
                                continue;
@@ -125,7 +125,7 @@ struct TechmapWorker
 
                std::map<RTLIL::IdString, RTLIL::IdString> positional_ports;
 
-               for (auto &it : tpl->wires) {
+               for (auto &it : tpl->wires_) {
                        if (it.second->port_id > 0)
                                positional_ports[stringf("$%d", it.second->port_id)] = it.first;
                        std::string w_name = it.second->name;
@@ -145,12 +145,12 @@ struct TechmapWorker
                        RTLIL::IdString portname = it.first;
                        if (positional_ports.count(portname) > 0)
                                portname = positional_ports.at(portname);
-                       if (tpl->wires.count(portname) == 0 || tpl->wires.at(portname)->port_id == 0) {
+                       if (tpl->wires_.count(portname) == 0 || tpl->wires_.at(portname)->port_id == 0) {
                                if (portname.substr(0, 1) == "$")
                                        log_error("Can't map port `%s' of cell `%s' to template `%s'!\n", portname.c_str(), cell->name.c_str(), tpl->name.c_str());
                                continue;
                        }
-                       RTLIL::Wire *w = tpl->wires.at(portname);
+                       RTLIL::Wire *w = tpl->wires_.at(portname);
                        RTLIL::SigSig c;
                        if (w->port_output) {
                                c.first = it.second;
@@ -265,7 +265,7 @@ struct TechmapWorker
                                        for (auto conn : cell->connections()) {
                                                if (conn.first.substr(0, 1) == "$")
                                                        continue;
-                                               if (tpl->wires.count(conn.first) > 0 && tpl->wires.at(conn.first)->port_id > 0)
+                                               if (tpl->wires_.count(conn.first) > 0 && tpl->wires_.at(conn.first)->port_id > 0)
                                                        continue;
                                                if (!conn.second.is_fully_const() || parameters.count(conn.first) > 0 || tpl->avail_parameters.count(conn.first) == 0)
                                                        goto next_tpl;
@@ -388,7 +388,7 @@ struct TechmapWorker
 
                                                        assert(!strncmp(q, "_TECHMAP_DO_", 12));
                                                        std::string new_name = data.wire->name.substr(0, q-p) + "_TECHMAP_DONE_" + data.wire->name.substr(q-p+12);
-                                                       while (tpl->wires.count(new_name))
+                                                       while (tpl->wires_.count(new_name))
                                                                new_name += "_";
                                                        tpl->rename(data.wire, new_name);