hdlsetuphlstoolpath - Set up system environment to access High-Level Synthesis (HLS) software - MATLAB (original) (raw)

Set up system environment to access High-Level Synthesis (HLS) software

Since R2022a

Syntax

Description

hdlsetuphlstoolpath("ToolName","Cadence Stratus HLS","ToolPath",[synthesisToolPath](#mw%5F41f44ed6-7341-4949-aad3-0e3fbb5e5186%5Fsep%5Fburmn3j-1-TOOLPATH),"SimulationToolPath",[simulationToolPath](#mw%5F3e605210-d354-443f-9870-6e0edd7ffee3)) adds Cadence Stratus HLS as a third-party HLS tool to your system path. It sets up the system environment variables for the synthesis tool. To configure one or more supported third-party HLS tools to use with HDL Coder™, use the hdlsetuphlstoolpath function. You cannot set up third-party HLS tools in Simulink® Online™.

Before opening the HDL Workflow Advisor, add the tool to your system path. If you already have the HDL Workflow Advisor open, see Add Synthesis Tool for Current HDL Workflow Advisor Session. HDL Workflow Advisor is not available in Simulink Online.

For Cadence Stratus HLS, the supported target language isSystemC.

example

hdlsetuphlstoolpath("ToolName","Xilinx Vitis HLS","ToolPath",[synthesisToolPath](#mw%5F41f44ed6-7341-4949-aad3-0e3fbb5e5186%5Fsep%5Fburmn3j-1-TOOLPATH)) adds Xilinx Vitis HLS as a third-party HLS tool to your system path. It sets up the system environment variables for the synthesis tool. To configure one or more supported third-party HLS tools to use with HDL Coder, use the hdlsetuphlstoolpath function. You cannot set up third-party HLS tools in Simulink Online.

For Xilinx Vitis HLS, the supported target language isSynthesizableC++.

example

hdlsetuphlstoolpath("ToolName","SystemC","SystemCIncludePath",[systemCIncludePath](#mw%5F89390425-f025-4522-84ae-7476e0ad0cf8),"SystemCLibraryPath",[systemCLibraryPath](#mw%5Fb204bf14-344e-48c7-bd60-03ec558e2aed)) creates system environmental variables to set up the SystemC™ library. MATLAB® uses these environmental variables to simulate the generated HLS code.

example

Examples

collapse all

The following command sets the synthesis tool path to point to an installed Cadence® Stratus HLS executable file. You must have already installed Cadence Stratus version 23.2 or above.

hdlsetuphlstoolpath("ToolName","Cadence Stratus HLS","ToolPath","/usr/cadence/stratus/bin/",... "SimulationToolPath","/usr/cadence/xcel/tools/bin");

To check your Cadence Stratus HLS synthesis tool set up in MATLAB, launch the tool by using this command:

The following command sets the synthesis tool path to point to an installed Xilinx Vitis HLS executable file. You must have already installed Xilinx Vitis HLS version 2024.1.

hdlsetuphlstoolpath("ToolName","Xilinx Vitis HLS","ToolPath","C:\Xilinx\Vitis_HLS\2024.1\bin");

To check your Vitis HLS synthesis tool set up in MATLAB, launch the tool by using this command:

You must have SystemC 2.3.3 installed.

To setup SystemC library in your Linux® platform, use this command in the MATLAB Command Window.

hdlsetuphlstoolpath("ToolName","SystemC","SystemCIncludePath",... "/usr/local/systemc-2.3.3/include","SystemCLibraryPath","/usr/local/systemc-2.3.3/lib-linux64");

Use this command to set up the SystemC library in the Windows® platform.

hdlsetuphlstoolpath("ToolName","SystemC","SystemCIncludePath","C:\systemc-2.3.3\include",... "SystemCLibraryPath","C:\systemc-2.3.3\lib\win64\Release");

Input Arguments

collapse all

Full path to the simulation tool executable, specified as a character vector.

Example: '/usr/cadence/xcelium/tools/bin'

Note

For Cadence Stratus HLS supported simulation tool is Xcelium™.

Full path to the SystemC include file, specified as a character vector. Thesystemc.h header file must be present in the specified SystemC include directory.

Example: '/usr/local/systemc-2.3.3/include'

Full path to the SystemC library file, specified as a character vector. Thelibsystemc.a in Linux or systemc.lib in Windows header file must be present in the specified SystemC library directory.

Example: "/usr/local/systemc-2.3.3/lib-linux64" (Linux)

Example: "C:\systemc-2.3.3\lib\win64\Release" (Windows)

Note

You can change the include and library file paths as per your installed location.

Tips

Version History

Introduced in R2022a

expand all

In MATLAB to HLS code generation, the third-party HLS tool Cadence Stratus is renamed to Cadence Stratus HLS.

Starting R2024b, HDL Coder supports AMD Vitis HLS 2023.1 as the synthesis tool for HLS code generation.

Starting R2024a, you can configure your tool path for SystemC.