aboutsummaryrefslogtreecommitdiffstats
path: root/python
diff options
context:
space:
mode:
authorDavid Shah <dave@ds0.me>2020-02-14 21:08:58 +0000
committerDavid Shah <dave@ds0.me>2020-02-15 11:35:51 +0000
commitb6158f94f6e83e7fac67c678effd21ec932cd0c2 (patch)
tree4d79e9dcc6b476e8b88023ca3244ae23fea6ec5a /python
parente0b4f0ee63072f0e5aa86b4fa9ca1f488ae57790 (diff)
downloadnextpnr-b6158f94f6e83e7fac67c678effd21ec932cd0c2.tar.gz
nextpnr-b6158f94f6e83e7fac67c678effd21ec932cd0c2.tar.bz2
nextpnr-b6158f94f6e83e7fac67c678effd21ec932cd0c2.zip
svg: Basic SVG graphics rendering
Signed-off-by: David Shah <dave@ds0.me>
Diffstat (limited to 'python')
-rw-r--r--python/svg_placement.py1
-rw-r--r--python/svg_routing.py1
-rw-r--r--python/svg_routing_fast.py1
3 files changed, 3 insertions, 0 deletions
diff --git a/python/svg_placement.py b/python/svg_placement.py
new file mode 100644
index 00000000..6adf0afd
--- /dev/null
+++ b/python/svg_placement.py
@@ -0,0 +1 @@
+ctx.writeSVG(ctx.top_module + "_placed.svg", "scale=50 hide_routing")
diff --git a/python/svg_routing.py b/python/svg_routing.py
new file mode 100644
index 00000000..589b92b7
--- /dev/null
+++ b/python/svg_routing.py
@@ -0,0 +1 @@
+ctx.writeSVG(ctx.top_module + "_routed.svg", "scale=500")
diff --git a/python/svg_routing_fast.py b/python/svg_routing_fast.py
new file mode 100644
index 00000000..d30a9d66
--- /dev/null
+++ b/python/svg_routing_fast.py
@@ -0,0 +1 @@
+ctx.writeSVG(ctx.top_module + "_routed.svg", "scale=500 hide_inactive")