#!/usr/bin/env python3 import configparser import sys def print_help(): print("Unified FPGA synthesizer frontend\r\n(c) Joppe Blondel - 2022\r\n") print(f"Usage: {sys.argv[0]} [ OPTIONS ] action [ target ] ...") print("") print("Options:") print(" -h Show this help message") print(" -c Configuration file, defaults to project.cfg") print("") print("Actions:") print("ip Generate IP files from vendor provided libraries") print("syn Synthesize design for target") print("impl Route and place design for target") print("bit Generate output files and run analysis for target") print("all Generate IP, synthesize, route and place design for target") print("floorplan Run floorplan editor, currently only for local execution") print("sim Run simulation target") if __name__=="__main__": # Parse arguments i = 1 nextarg = None configpath = 'project.cfg' actions = [] while i