cxxrtl: fix typo.
[yosys.git] / backends / edif / edif.cc
index 7e24468c03d8fb1d2f07b1024954a3e9e6dffff0..e0013238c8321b320de162fc86df6a397f6b03f3 100644 (file)
@@ -90,7 +90,7 @@ struct EdifNames
 
 struct EdifBackend : public Backend {
        EdifBackend() : Backend("edif", "write design to EDIF netlist file") { }
-       void help() YS_OVERRIDE
+       void help() override
        {
                //   |---v---|---v---|---v---|---v---|---v---|---v---|---v---|---v---|---v---|---v---|
                log("\n");
@@ -126,7 +126,7 @@ struct EdifBackend : public Backend {
                log("is targeted.\n");
                log("\n");
        }
-       void execute(std::ostream *&f, std::string filename, std::vector<std::string> args, RTLIL::Design *design) YS_OVERRIDE
+       void execute(std::ostream *&f, std::string filename, std::vector<std::string> args, RTLIL::Design *design) override
        {
                log_header(design, "Executing EDIF backend.\n");
                std::string top_module_name;
@@ -330,7 +330,7 @@ struct EdifBackend : public Backend {
                                }
                                *f << stringf("\n            (property %s (string \"%d'h%s\"))", EDIF_DEF(name), GetSize(val.bits), hex_string.c_str());
                        }
-               };              
+               };
                for (auto module : sorted_modules)
                {
                        if (module->get_blackbox_attribute())
@@ -373,8 +373,8 @@ struct EdifBackend : public Backend {
                                        }
 
                                        {
-                                               int c1 = w1->name[0] == '\\';
-                                               int c2 = w2->name[0] == '\\';
+                                               int c1 = w1->name.isPublic();
+                                               int c2 = w2->name.isPublic();
 
                                                if (c1 > c2) goto promote;
                                                if (c1 < c2) goto nopromote;
@@ -524,7 +524,7 @@ struct EdifBackend : public Backend {
                                                *f << stringf("            (portRef %c (instanceRef GND))\n", gndvccy ? 'Y' : 'G');
                                        if (sig == RTLIL::State::S1)
                                                *f << stringf("            (portRef %c (instanceRef VCC))\n", gndvccy ? 'Y' : 'P');
-                               }                               
+                               }
                                *f << stringf("            )");
                                if (attr_properties && sig.wire != NULL)
                                        for (auto &p : sig.wire->attributes)