# Following check is ugly and error prone, since it inspects Vivado log. Change to check command return code instead using something like 'subprocess.check_call'
# Extract return code out of make? or avoid using Makefiles and call directly Vivado etc.
if("Generating bitstream of project succeed"notinstatus)and("Now we would call Vivado"notinstatus):
panic('Bitfile synthesis failed in "%s"'%os.getcwd())
if("Generating bitstream of project succeed"notinstatus)and("Now we would call vivado"notinstatus):
panic('ZynQSynthesis: Bitfile synthesis failed in "%s"'%os.getcwd())