add conversion from alliance vbe to vst using coriolis2 vasy
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Wed, 31 Mar 2021 17:22:46 +0000 (18:22 +0100)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Wed, 31 Mar 2021 17:22:46 +0000 (18:22 +0100)
ls180/vbe2vst.py [new file with mode: 0644]

diff --git a/ls180/vbe2vst.py b/ls180/vbe2vst.py
new file mode 100644 (file)
index 0000000..9cd7bac
--- /dev/null
@@ -0,0 +1,17 @@
+#!/usr/bin/env python3
+
+import os
+import sys
+
+VASY_CMD = "schroot -c coriolis -d /tmp -- ~/alliance/install/bin/vasy"
+NSXLIB = "../alliance-check-toolkit/cells/nsxlib"
+
+for fname in os.listdir(NSXLIB):
+    if not fname.endswith(".vbe"):
+        continue
+    print (fname)
+    prefix = fname[:-4] # strip ".vbe"
+    os.system("cp %s/%s /tmp" % (NSXLIB, fname))
+    os.system("rm -f /tmp/%s.vhd" % (prefix))
+    os.system("%s -s -I vbe %s %s" % (VASY_CMD, fname, prefix))
+    os.system("cp /tmp/%s.vhd ." % (prefix))