diff options
author | David Shah <dave@ds0.me> | 2019-11-11 09:42:22 +0000 |
---|---|---|
committer | David Shah <dave@ds0.me> | 2019-11-11 09:42:22 +0000 |
commit | 0cbc25f74aab1c08463e3bdbc5eb62fc4767a802 (patch) | |
tree | e88d548a90d0f102a3bec036ac5f258045e731ec /python/interactive.py | |
parent | 6a335411da6eb54f0960eb514c5384e4ae60c3a7 (diff) | |
download | nextpnr-0cbc25f74aab1c08463e3bdbc5eb62fc4767a802.tar.gz nextpnr-0cbc25f74aab1c08463e3bdbc5eb62fc4767a802.tar.bz2 nextpnr-0cbc25f74aab1c08463e3bdbc5eb62fc4767a802.zip |
python: Add interactive.py for a REPL during PnR
Signed-off-by: David Shah <dave@ds0.me>
Diffstat (limited to 'python/interactive.py')
-rw-r--r-- | python/interactive.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/python/interactive.py b/python/interactive.py new file mode 100644 index 00000000..c8c359f0 --- /dev/null +++ b/python/interactive.py @@ -0,0 +1,6 @@ +# Pass this file to one of the Python script arguments (e.g. --pre-place interactive.py) +# to drop to an command-line interactive Python session in the middle of place and route + +import code +print("Press Ctrl+D to finish interactive session") +code.interact(local=locals()) |