afb485aa7b363570f38b47dddf6e08237d8e8922
3 """builds nsxlib and other VHD files into object files using ghdl
9 SRC
= [('nsxlib', 'vhd'),
13 # make and change to obj dir
14 os
.system("mkdir -p obj")
18 for srcdir
, suffix
in SRC
:
19 # run ghdl -a on every vhd / vst file
20 for fname
in os
.listdir("../%s" % srcdir
):
21 if not fname
.endswith(".%s" % suffix
):
24 prefix
= fname
[:-4] # strip ".vhd"
25 os
.system("ghdl -a -g --std=08 ../%s/%s" % (srcdir
, fname
))
28 os
.system("ghdl -a -g --std=08 ../chip_corona/chip_r.vhd")
29 os
.system("ghdl -a -g --std=08 ../chip_corona/corona_cts_r.vhd")
31 # back to original dir