AR# 51986

Vivado HLS 2014.1: How do I add compiler flags such as -std=c99 to a HLS project?​

描述

How do I add compiler flags such as -std=c99 to a HLS project?

解决方案

Select Project -> Project Settings -> Synthesis.

Then select a source file, and click Edit CFLAGS.

See the below examples:
Vivado_HLS_1.PNG



 
Vivado_HLS_2.PNG


The equivalent TCL command when scripting is :

add_files types_float_double.c -cflags "-std=c99"
AR# 51986
日期 07/10/2014
状态 Active
Type 综合文章
器件
Tools