diff options
| author | Clifford Wolf <clifford@clifford.at> | 2014-09-27 16:17:53 +0200 | 
|---|---|---|
| committer | Clifford Wolf <clifford@clifford.at> | 2014-09-27 16:17:53 +0200 | 
| commit | f9a307a50b5ce67b67d2b53e8c1334ea23ffd997 (patch) | |
| tree | 5a591d0d03c9623abc02aaa3773458193f67ffa1 /techlibs | |
| parent | bcd2625a8247ddbcf4a8a819eadcb03846537223 (diff) | |
| download | yosys-f9a307a50b5ce67b67d2b53e8c1334ea23ffd997.tar.gz yosys-f9a307a50b5ce67b67d2b53e8c1334ea23ffd997.tar.bz2 yosys-f9a307a50b5ce67b67d2b53e8c1334ea23ffd997.zip | |
namespace Yosys
Diffstat (limited to 'techlibs')
| -rw-r--r-- | techlibs/common/synth.cc | 6 | ||||
| -rw-r--r-- | techlibs/xilinx/synth_xilinx.cc | 6 | 
2 files changed, 10 insertions, 2 deletions
| diff --git a/techlibs/common/synth.cc b/techlibs/common/synth.cc index 4ccacd30b..8b41a003d 100644 --- a/techlibs/common/synth.cc +++ b/techlibs/common/synth.cc @@ -22,7 +22,10 @@  #include "kernel/rtlil.h"  #include "kernel/log.h" -static bool check_label(bool &active, std::string run_from, std::string run_to, std::string label) +USING_YOSYS_NAMESPACE +PRIVATE_NAMESPACE_BEGIN + +bool check_label(bool &active, std::string run_from, std::string run_to, std::string label)  {  	if (!run_from.empty() && run_from == run_to) {  		active = (label == run_from); @@ -154,3 +157,4 @@ struct SynthPass : public Pass {  	}  } SynthPass; +PRIVATE_NAMESPACE_END diff --git a/techlibs/xilinx/synth_xilinx.cc b/techlibs/xilinx/synth_xilinx.cc index ff906db8f..8df5c4e42 100644 --- a/techlibs/xilinx/synth_xilinx.cc +++ b/techlibs/xilinx/synth_xilinx.cc @@ -22,7 +22,10 @@  #include "kernel/rtlil.h"  #include "kernel/log.h" -static bool check_label(bool &active, std::string run_from, std::string run_to, std::string label) +USING_YOSYS_NAMESPACE +PRIVATE_NAMESPACE_BEGIN + +bool check_label(bool &active, std::string run_from, std::string run_to, std::string label)  {  	if (label == run_from)  		active = true; @@ -208,3 +211,4 @@ struct SynthXilinxPass : public Pass {  	}  } SynthXilinxPass; +PRIVATE_NAMESPACE_END | 
