nmigen-learning/fpga/__init__.py

22 lines
478 B
Python

__version__ = '0.1.0'
# YOWASP:
def populate_environ():
import os, shutil
for env_name, program in [
("YOSYS", "yowasp-yosys"),
("NEXTPNR_ICE40", "yowasp-nextpnr-ice40"),
("NEXTPNR_ECP5", "yowasp-nextpnr-ecp5"),
]:
if shutil.which(program):
os.environ[env_name] = program
populate_environ()
del populate_environ
# dogelang: Slow. Stupid. Absolutely adorable.
import dg # install import hook