3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2025-04-24 01:25:33 +00:00

namespace Yosys

This commit is contained in:
Clifford Wolf 2014-09-27 16:17:53 +02:00
parent bcd2625a82
commit f9a307a50b
96 changed files with 878 additions and 585 deletions

View file

@ -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

View file

@ -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