From: Clifford Wolf Date: Sun, 10 Mar 2013 13:20:03 +0000 (+0100) Subject: Fixed detection of public wires in opt_rmunused X-Git-Tag: yosys-0.2.0~727 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=55f927eecb2533f6325cdf52d08641e12ca5b2e8;p=yosys.git Fixed detection of public wires in opt_rmunused --- diff --git a/passes/opt/opt_rmunused.cc b/passes/opt/opt_rmunused.cc index 3276ad626..c72a45876 100644 --- a/passes/opt/opt_rmunused.cc +++ b/passes/opt/opt_rmunused.cc @@ -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)