From 71cb165aeebd0fcca63985fa75695945bdd33504 Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Wed, 31 Mar 2021 18:22:46 +0100 Subject: [PATCH] add conversion from alliance vbe to vst using coriolis2 vasy --- ls180/vbe2vst.py | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 ls180/vbe2vst.py diff --git a/ls180/vbe2vst.py b/ls180/vbe2vst.py new file mode 100644 index 0000000..9cd7bac --- /dev/null +++ b/ls180/vbe2vst.py @@ -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)) -- 2.30.2