Some fixes in stubnets example
authorClifford Wolf <clifford@clifford.at>
Mon, 24 Nov 2014 11:55:30 +0000 (12:55 +0100)
committerClifford Wolf <clifford@clifford.at>
Mon, 24 Nov 2014 11:55:30 +0000 (12:55 +0100)
manual/CHAPTER_Prog/stubnets.cc

index 8880af5a6c005e8d305d0cfdcaaaee5c38ab93fb..4849c6a7b7ccfcaff23fd84ce8c3092d3fb526fc 100644 (file)
@@ -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