HLS随笔

add_files命令

add_files ORB_resize_fast/src/xf_orb_accel.cpp -cflags “-D__SDSVHLS__ -Ivision/L1/include -std=c++0x”
add_files -tb ORB_resize_fast/src/tb_orb.cpp -cflags "-Ivision/L1/include -D__SDSVHLS__ -std=c++0x "

将设计源文件添加到项目中。该工具在当前目录中搜索设计源文件中包含的任何头文件。
若要调用其他目录中的头文件,使用-cflags选项目录添加到搜索路径。

1 语法

add_files [OPTIONS] <src_files> 列出了带有设计说明的源文件。

2 选项

-tb
指定文件用作测试激励。这些文件没有被synthesized.。它们是在cosim_design命令执行综合后验证时使用的。
添加设计文件和测试工作台文件时,使用一个单独的add_files命令

-cflags <>
具有任何所需GCC编译选项的字符串。A string with any desired GCC compilation options.

-blackbox <file_name.json>
Specify the JSON file to be used for RTL blackbox

-csimflags
A string with any desired simulation compilation options. 此选项指定的flags仅适用于仿真编译,其中包括C仿真和RTL协同仿真,而不适用于综合编译。此选项不影响-cflags选项。

3 Examples

add_files top.cpp -cflags “-DUSE_RANDOM -I./lib_functions”
添加一个带有编译器标记的SystemC文件来启用宏USE_RANDOM,并为头文件指定一个额外的搜索路径子目录./lib_functions。

add_files -tb “a_test.cpp input_stimuli.dat out.gold.dat”
Use the-tb option to add test bench files to the project. This example adds multiple files with a
single command, including:
• The test bench a_test.cpp
• All data files read by the test bench: input_stimuli.dat, out.gold.dat

如果测试工作台数据文件存储在一个单独的目录中(例如test_data),则可以将该目录添加到项目中,以代替单独的数据文件。
add_files -tb a_test.cpp
add_files -tb test_data

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值