Xilinx / Xilinx/XRT

Host Applications Control FPGA Without Using OpenCL/XRT API

Open
#7,613 8 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C++
Stars
686
Forks
549
Avg merge
2d 4h
Merged PRs (30d)
70

Description

To the best of my knowledge, XRT API is written in C++. Is there a way I can use pure C to allocate memory, launch the FPGA kernel​, and migrate data back and forth between host and device? In our scenario, we prefer using C. I just found a page down at the bottom that explains the execution flow: Execution Model Overview — XRT Master documentation (xilinx.github.io) I would like to know if there is a way to do memory allocation, data transfer, task launch without using OpenCL API or XRT API. I want to use some very low-level calls.

So may I know how can I directly use those ioctl calls to instruct FPGA? Any examples?

Thanks!

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the linked Execution Model Overview and the XRT interfaces related to memory allocation, data migration, kernel launch, and ioctl calls. Determine whether pure C or direct ioctl usage is supported and identify any existing examples or documentation; done means providing a documented path or clearly stating the supported limitation.

Written by the indexing model from the issue text.

Assessment

Tech stack
c, cpp, linux
Domain
embedded-iot, operating-systems
Issue type
Documentation
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.