Skip to content

Fpga compile add include path #1423

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 13, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -145,37 +145,37 @@ int main() {
```

### Compiler Options
This section includes a helpful list of commands and options to compile this design for the FPGA emulator, generate the FPGA early image optimization reports, and compile for FPGA hardware.\
This section includes a helpful list of commands and options to compile this design for the FPGA emulator, generate the FPGA early image optimization reports, and compile for FPGA hardware.
>**Note**: In this sample, the compiler is refered to as `icpx`. On Windows, you should use `icx-cl`.

FPGA Emulator

```bash
# FPGA emulator image
icpx -fsycl -fintelfpga -DFPGA_EMULATOR fpga_design.cpp -o fpga_design.fpga_emu
icpx -fsycl -fintelfpga -DFPGA_EMULATOR -I../../../../include vector_add.cpp -o vector_add.fpga_emu
```

Optimization Report

```bash
# FPGA early image (with optimization report):
icpx -fsycl -fintelfpga -DFPGA_HARDWARE fpga_design.cpp -Xshardware -fsycl-link=early -Xstarget=Agilex -o fpga_design_report.a
icpx -fsycl -fintelfpga -DFPGA_HARDWARE -I../../../../include vector_add.cpp -Xshardware -fsycl-link=early -Xstarget=Agilex -o vector_add_report.a
```
Use the`-Xstarget` flag to target a supported board, a device family, or a specific FPGA part number.

Simulator

```bash
# FPGA simulator image:
icpx -fsycl -fintelfpga -DFPGA_SIMULATOR fpga_design.cpp -Xssimulation -Xstarget=Agilex -Xsghdl -o fpga_design_sim.a
icpx -fsycl -fintelfpga -DFPGA_SIMULATOR -I../../../../include vector_add.cpp -Xssimulation -Xstarget=Agilex -Xsghdl -o vector_add_sim.a
```
Through `-Xstarget`, you can target an explicit board, a device family or a FPGA part number.

Hardware

```bash
# FPGA hardware image:
icpx -fsycl -fintelfpga -DFPGA_HARDWARE fpga_design.cpp -Xshardware -Xstarget=Agilex -o fpga_design.fpga
icpx -fsycl -fintelfpga -DFPGA_HARDWARE -I../../../../include vector_add.cpp -Xshardware -Xstarget=Agilex -o vector_add.fpga
```
Through `-Xstarget`, you can target an explicit board, a device family or a FPGA part number.

Expand Down