aboutsummaryrefslogtreecommitdiffstats
path: root/ice40/main.cc
diff options
context:
space:
mode:
authorDavid Shah <davey1576@gmail.com>2018-06-07 15:04:07 +0200
committerDavid Shah <davey1576@gmail.com>2018-06-07 15:04:07 +0200
commit1d39924c1417295c8c24598d362293f0eff2af89 (patch)
tree57b73c4b044cc5d24de682c58a20c632e1170916 /ice40/main.cc
parent547d4fe3ee192ca96280626cefdbe6d180d0ef75 (diff)
downloadnextpnr-1d39924c1417295c8c24598d362293f0eff2af89.tar.gz
nextpnr-1d39924c1417295c8c24598d362293f0eff2af89.tar.bz2
nextpnr-1d39924c1417295c8c24598d362293f0eff2af89.zip
ice40: More Python bindings and examples
Signed-off-by: David Shah <davey1576@gmail.com>
Diffstat (limited to 'ice40/main.cc')
-rw-r--r--ice40/main.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/ice40/main.cc b/ice40/main.cc
index d0becdd6..c65013eb 100644
--- a/ice40/main.cc
+++ b/ice40/main.cc
@@ -161,6 +161,7 @@ int main(int argc, char *argv[])
Design design(chipArgs);
init_python(argv[0]);
python_export_global("design", design);
+ python_export_global("chip", design.chip);
if (vm.count("test")) {
int bel_count = 0, wire_count = 0, pip_count = 0;