-
Notifications
You must be signed in to change notification settings - Fork 519
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
Unable to setup a custom CL on F2 instance FPGA and run it through my host script #685
Comments
Have you fully verified the CL in simulation to ensure the it works as expected? Please refer to this doc for details of running RTL simulation. If the design has passed the simulations, I will recommend check and ensure the correct AFI is loaded to the instance. Before passing large chunk of data, start with something basic, like accessing a CL register to ensure the shell interfaces are functional. |
EDIT : Got past previous issues. Now I'm getting this error : |
Refer to one of HDK examples for CL top module I/O connection: https://github.com/aws/aws-fpga/blob/f2/hdk/cl/examples/cl_sde/design/cl_sde.sv#L23-L27. The CL-Shell interfaces are already defined and fixed here, they cannot be modified. |
So, to clarify, these are the interfaces I use to connect my host to my CL design right? |
For reference, this is my host code, does it look about right : #define APP_PF_BAR0 0 void send_instruction(pci_bar_handle_t bar0, const char* line) {
} int main() {
} |
Correct, the Shell and CL are connected through these interfaces. For the host code, you can refer to the runtime example code provided in the CL examples. |
I don't see any code in the link you have provided. Can you provide a link to a file corresponding to the same example you sent? It has no host code in this repo |
I strongly recommend reviewing the document above and going through all the CL examples to get familiar with the HDK development environment first. That will help you quickly find out the files needed in the repo as well as build your own example. The code examples can be found in the |
There are no examples here that have runtime code for SH to CL communication. Can you point me to one? All that's there is a null example |
Also, how do I resolve such synthesis errors : |
You can comment out these two lines in your example directory. It will stop the source encryption so that you can see the true errors. |
Is there any basic example that actually completely works (and doesn't have caveats like XDMA not supported etc etc) for Host->FPGA PCIE communication? |
Okay, so I'm getting this error right now (some protocol_checker error): This is my top-level module :
); And this is my testbench : module cl_gpu_base_test(); initial begin
end What's going on? Why is such a simple testbench not working? |
So I'm also getting this error when I try to push my design through the RTL->AFI flow : add_files ${AWS_DCP_DIR}/cl_bb_routed.${SHELL_MODE}.dcpadd_files ${checkpoints_dir}/${CL}.${TAG}.post_synth.dcpset_property SCOPED_TO_CELLS {WRAPPER/CL} \[get_files ${checkpoints_dir}/${CL}.${TAG}.post_synth.dcp]link_design -mode default \-reconfig_partitions {WRAPPER/CL} \-top topCommand: link_design -mode default -reconfig_partitions WRAPPER/CL -top top
"source ${scripts_dir}/build_level_1_cl.tcl" "ImplCL" { d..." Any idea what I could be doing wrong? |
I am trying to send data through the PCIE interface to my custom logic, but I'm not able to get anything to work. I would appreciate some support on the same since the documentation you have provided has not been helpful.
The text was updated successfully, but these errors were encountered: