aboutsummaryrefslogtreecommitdiffstats
path: root/ice40
diff options
context:
space:
mode:
authorDavid Shah <davey1576@gmail.com>2018-06-07 12:59:27 +0200
committerDavid Shah <davey1576@gmail.com>2018-06-07 12:59:27 +0200
commit66b36cdd45532f157d3800bd1ed8078fc5a43950 (patch)
tree3b22d71f433df04b1945a62109e1a9d1f6ef0653 /ice40
parent8bfeaeacedeb09133b8fb157c876fb90f41f5676 (diff)
parentb0e66d441cf584e7e48049d4f07afcc8e743309a (diff)
downloadnextpnr-66b36cdd45532f157d3800bd1ed8078fc5a43950.tar.gz
nextpnr-66b36cdd45532f157d3800bd1ed8078fc5a43950.tar.bz2
nextpnr-66b36cdd45532f157d3800bd1ed8078fc5a43950.zip
Merge branch 'python'
Signed-off-by: David Shah <davey1576@gmail.com>
Diffstat (limited to 'ice40')
-rw-r--r--ice40/main.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/ice40/main.cc b/ice40/main.cc
index ae5c59b2..445e81ba 100644
--- a/ice40/main.cc
+++ b/ice40/main.cc
@@ -151,6 +151,7 @@ int main(int argc, char *argv[])
Design design(chipArgs);
init_python(argv[0]);
+ python_export_global("design", design);
if (vm.count("test"))
{
@@ -232,7 +233,7 @@ int main(int argc, char *argv[])
parse_json_file(f, filename, &design);
}
-
+
if (vm.count("run"))
{
std::vector<std::string> files = vm["file"].as<std::vector<std::string>>();