UPGRADE YOUR BROWSER

We have detected your current browser version is not the latest one. Xilinx.com uses the latest web technologies to bring you the best online experience possible. Please upgrade to a Xilinx.com supported browser:Chrome, Firefox, Internet Explorer 11, Safari. Thank you!

AR# 51986

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

Description

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
创建日期 09/25/2012
Last Updated 07/10/2014
状态 Active
Type 综合文章
器件
  • Kintex-7
Tools
  • Vivado Design Suite - 2012.2
  • Vivado Design Suite - 2014.2
  • Vivado Design Suite - 2014.1