diff options
author | Clifford Wolf <clifford@clifford.at> | 2013-03-10 14:20:03 +0100 |
---|---|---|
committer | Clifford Wolf <clifford@clifford.at> | 2013-03-10 14:20:03 +0100 |
commit | 55f927eecb2533f6325cdf52d08641e12ca5b2e8 (patch) | |
tree | a2967a38093ebdc9b48f92759810aa7d0d0ce622 /passes/opt | |
parent | eadf73c823cc290ca4dcd1433f59808b70a2fad2 (diff) | |
download | yosys-55f927eecb2533f6325cdf52d08641e12ca5b2e8.tar.gz yosys-55f927eecb2533f6325cdf52d08641e12ca5b2e8.tar.bz2 yosys-55f927eecb2533f6325cdf52d08641e12ca5b2e8.zip |
Fixed detection of public wires in opt_rmunused
Diffstat (limited to 'passes/opt')
-rw-r--r-- | passes/opt/opt_rmunused.cc | 6 |
1 files changed, 3 insertions, 3 deletions
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) |