blob: e0b4875147875420328c004bb9987aab3715d4ef [file] [log] [blame]
"""
Python wrapper for `diamond.sh`
"""
from os import path
import subprocess
import database
def run(device, source):
"""
Run diamond.sh with a given device name and source Verilog file
"""
dsh_path = path.join(database.get_trellis_root(), "diamond.sh")
return subprocess.run(["bash",dsh_path,device,source])