summaryrefslogtreecommitdiff
path: root/kernel/register.h
diff options
context:
space:
mode:
authorClifford Wolf <clifford@clifford.at>2013-03-28 12:26:17 +0100
committerClifford Wolf <clifford@clifford.at>2013-03-28 12:26:17 +0100
commit73fba5164ffce53c766cc82dc0825f23baf996d3 (patch)
treed437845c3ff88ecbc1a13c18fc6bbbe501678c01 /kernel/register.h
parentb9870a364e35d8159a8bcc8c535a2aa971e78af9 (diff)
Implemented TCL support (only via -c option at the moment)
Diffstat (limited to 'kernel/register.h')
-rw-r--r--kernel/register.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/kernel/register.h b/kernel/register.h
index a817d8c6..4e3cc5c1 100644
--- a/kernel/register.h
+++ b/kernel/register.h
@@ -26,6 +26,12 @@
#include <vector>
#include <map>
+#ifdef YOSYS_ENABLE_TCL
+#include <tcl.h>
+extern Tcl_Interp *yosys_tcl;
+extern RTLIL::Design *yosys_tcl_design;
+#endif
+
struct Pass
{
std::string pass_name, short_help;
@@ -44,6 +50,7 @@ struct Pass
static void init_register();
static void done_register();
+ void register_tcl();
};
struct Frontend : Pass