summaryrefslogtreecommitdiff
path: root/manual
diff options
context:
space:
mode:
authorClifford Wolf <clifford@clifford.at>2014-11-24 12:55:30 +0100
committerClifford Wolf <clifford@clifford.at>2014-11-24 12:55:30 +0100
commit751fb33688b06d8dab01b7f8334055d5cd227c94 (patch)
tree63aa396537358a3ffbb1ce9e9648bb912f1b341d /manual
parent263f672a3fc89ebc7e8ddf64f51c0285db056559 (diff)
Some fixes in stubnets example
Diffstat (limited to 'manual')
-rw-r--r--manual/CHAPTER_Prog/stubnets.cc8
1 files changed, 5 insertions, 3 deletions
diff --git a/manual/CHAPTER_Prog/stubnets.cc b/manual/CHAPTER_Prog/stubnets.cc
index 8880af5a..4849c6a7 100644
--- a/manual/CHAPTER_Prog/stubnets.cc
+++ b/manual/CHAPTER_Prog/stubnets.cc
@@ -5,15 +5,16 @@
// binary, for any purpose, commercial or non-commercial, and by any
// means.
-#include "kernel/rtlil.h"
-#include "kernel/register.h"
+#include "kernel/yosys.h"
#include "kernel/sigtools.h"
-#include "kernel/log.h"
#include <string>
#include <map>
#include <set>
+USING_YOSYS_NAMESPACE
+PRIVATE_NAMESPACE_BEGIN
+
// this function is called for each module in the design
static void find_stub_nets(RTLIL::Design *design, RTLIL::Module *module, bool report_bits)
{
@@ -126,3 +127,4 @@ struct StubnetsPass : public Pass {
}
} StubnetsPass;
+PRIVATE_NAMESPACE_END