aws / aws/aws-fpga

cl_peek and cl_poke usage

Open
#755 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
SystemVerilog
Stars
1.7k
Forks
538
PR merge metrics
No merged PRs in 30d

Description

Hi,

Are there any examples of cl_peek and cl_poke usage in a C test simulation that communicates to the SV test functions?

It seems like the previous fpga_pci_poke/peek functions (example in a custom CL) provided the functionality of the new cl_peek/poke functions. However, when the fpga_pci functions are replaced with cl_peek/poke, there is a linker error. Any examples of usage and which header files to include would be greatly appreciated, thank you!

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 RTL Simulation Guide's C Test API Reference and the linked hdk/cl/developer_designs/cl_firesim/software/runtime/test_firesim.c; compare the fpga_pci_peek/poke usage with cl_peek/poke and inspect the headers used by the simulation build. Done means the documentation includes a working C-to-SV usage example and identifies the required headers without the reported linker error.

Written by the indexing model from the issue text.

Assessment

Tech stack
aws, c
Domain
documentation, testing
Issue type
Documentation
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.