Visible to Intel only — GUID: oje1611798111535
Ixiasoft
Visible to Intel only — GUID: oje1611798111535
Ixiasoft
2.3.1. Compiling Your Testbench and Component Separately
In some cases, you might want to decouple your testbench development from your component development. For example, you might want to change your testbench code without recompiling your HLS component.
- Compile your testbench with the Intel® HLS Compiler and then compile your component code with the Intel® HLS Compiler.
- Compile your testbench with GCC or Microsoft Visual Studio, and then compile your component code with the Intel® HLS Compiler.
- Use the i++ -c command to compile your component code to an object file.
For example, i++ -c component.cpp -o component.o -march=<target_platform>
- Use any compiler supported by the Intel® HLS Compiler to compile your testbench to an object file (or files):
- Intel® HLS Compiler: i++ -c
- GCC: g++ -c
- MSVC: cl /c
For example, g++ -c testbench.cpp -o testbench.o
- Link the component and testbench object files with the i++.
For example, i++ testbench.o component.o -o prog -march=<target_platform> .
<quartus_installdir>/hls/examples/tutorials/usability/compiler_interoperability
Did you find the information on this page useful?
Feedback Message
Characters remaining: