diff options
author | Benedikt Tutzer <e1225461@student.tuwien.ac.at> | 2018-08-16 16:00:11 +0200 |
---|---|---|
committer | Benedikt Tutzer <e1225461@student.tuwien.ac.at> | 2018-08-16 16:00:11 +0200 |
commit | d79a2808cf2446fa21d91a6141f6fbe2318c03ec (patch) | |
tree | e0c630f1dd8ccab3c5d04ddf8a6fa06376d1f5e7 /kernel/yosys.h | |
parent | bf7b73acfc2b5e46206e5688b8a6e8d9b0d60d8f (diff) | |
download | yosys-d79a2808cf2446fa21d91a6141f6fbe2318c03ec.tar.gz yosys-d79a2808cf2446fa21d91a6141f6fbe2318c03ec.tar.bz2 yosys-d79a2808cf2446fa21d91a6141f6fbe2318c03ec.zip |
Python Passes can now be added with the -m option or with the plugin command. There are still issues when run in shell mode, but they can be used just fine in a python script
Diffstat (limited to 'kernel/yosys.h')
-rw-r--r-- | kernel/yosys.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/kernel/yosys.h b/kernel/yosys.h index 14cbcd610..4380a5b69 100644 --- a/kernel/yosys.h +++ b/kernel/yosys.h @@ -66,6 +66,8 @@ #include <stdio.h> #include <limits.h> +#include <Python.h> + #ifndef _YOSYS_ # error It looks like you are trying to build Yosys without the config defines set. \ When building Yosys with a custom make system, make sure you set all the \ @@ -317,6 +319,9 @@ extern std::vector<RTLIL::Design*> pushed_designs; // from passes/cmds/pluginc.cc extern std::map<std::string, void*> loaded_plugins; +#ifdef WITH_PYTHON +extern std::map<std::string, void*> loaded_python_plugins; +#endif extern std::map<std::string, std::string> loaded_plugin_aliases; void load_plugin(std::string filename, std::vector<std::string> aliases); |