Use ID()
authorEddie Hung <eddie@fpgeh.com>
Fri, 16 Aug 2019 23:38:49 +0000 (16:38 -0700)
committerEddie Hung <eddie@fpgeh.com>
Fri, 16 Aug 2019 23:38:49 +0000 (16:38 -0700)
passes/techmap/abc9.cc

index 8e25d3404fc5135ba055dd5ac8a3b773f62a91b9..4cdd392b5aa72abd4ceb07e4c955c052ee24d304 100644 (file)
@@ -1086,16 +1086,16 @@ struct Abc9Pass : public Pass {
                                auto w = m->wire(p);
                                log_assert(w);
                                if (w->port_input) {
-                                       if (w->attributes.count("\\abc_scc_break"))
+                                       if (w->attributes.count(ID(abc_scc_break)))
                                                scc_break_inputs[m->name].insert(p);
-                                       if (w->attributes.count("\\abc_carry_in")) {
+                                       if (w->attributes.count(ID(abc_carry_in))) {
                                                if (carry_in)
                                                        log_error("Module '%s' contains more than one 'abc_carry_in' port.\n", log_id(m));
                                                carry_in = w;
                                        }
                                }
                                if (w->port_output) {
-                                       if (w->attributes.count("\\abc_carry_out")) {
+                                       if (w->attributes.count(ID(abc_carry_out))) {
                                                if (carry_out)
                                                        log_error("Module '%s' contains more than one 'abc_carry_out' port.\n", log_id(m));
                                                carry_out = w;