Fixed detection of public wires in opt_rmunused
authorClifford Wolf <clifford@clifford.at>
Sun, 10 Mar 2013 13:20:03 +0000 (14:20 +0100)
committerClifford Wolf <clifford@clifford.at>
Sun, 10 Mar 2013 13:20:03 +0000 (14:20 +0100)
passes/opt/opt_rmunused.cc

index 3276ad6264b74a2beeb43b03c84377404b72c5a3..c72a45876e3de2926b8cfd70a83e77d098bf1274 100644 (file)
@@ -123,10 +123,10 @@ static bool check_public_name(RTLIL::IdString id)
        if (id[0] == '$')
                return false;
 #if 0
-       if (id.find(".$") == std::string::npos)
-               return true;
+       if (id.find(".$") != std::string::npos)
+               return false;
 #endif
-       return false;
+       return true;
 }
 
 static void rmunused_module_signals(RTLIL::Module *module)