cl_peek and cl_poke usage
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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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