Skip to content

Latest commit

 

History

History
59 lines (56 loc) · 1.95 KB

compile_runtime.md

File metadata and controls

59 lines (56 loc) · 1.95 KB

Table of contents (steps)

1. Create an AWS account
2. Generate SSH keys
3. Create S3 credential
4. Request access to Amazon EC2 F1 instances
5. Create an AMI instance
6. Configure S3 bucket
7. Setup development environment
8. Simulate the design
9. Build the hardware design
10. Generate the AFI
11. Program the FPGA
12. Compile the runtime of the design
13. Bookkeping the AFI

12. Compile the runtime of the design

  1. Go to the aws-fpga folder cd <the-path-of-aws-fpga-folder>
  2. Setup the software environment source sdk_setup.sh
  3. Go to the hello-world example folder cd hdk/cl/examples/cl_hello_world
  4. Export environment variable for the design export CL_DIR=$PWD
  5. Go to the runtime folder cd software/runtime
  6. Run make all
  7. Run sudo ./test_hello_world
  8. Look for TEST PASSED in the output of the program
  9. This hello-world design uses a virtual dip switch that can be changed after programming the FPGA
    • The virtual dip switch can be changed by sudo fpga-set-virtual-dip-switch -S 0 -D 1111111111111111