From: Luke Kenneth Casson Leighton Date: Wed, 31 Mar 2021 17:22:46 +0000 (+0100) Subject: add conversion from alliance vbe to vst using coriolis2 vasy X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=71cb165aeebd0fcca63985fa75695945bdd33504;p=soc-cocotb-sim.git add conversion from alliance vbe to vst using coriolis2 vasy --- 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))