On both boards install iperf: sudo apt-get install iperf
On one board (server):
# Script to build vec_add.cpp | |
open_project vec_add | |
set_top vec_add | |
add_files vec_add.cpp | |
open_solution "solution1" | |
set_part {xc7z020clg400-1} -tool vivado | |
create_clock -period 7 -name default | |
csynth_design | |
export_design -format ip_catalog -description "vec_add" -display_name "vec_add" | |
exit |
#include <iostream> | |
#include <hls_stream.h> | |
#include <ap_axi_sdata.h> | |
using namespace std; | |
typedef ap_axis <32,1,1,1> AXI_T; | |
typedef hls::stream<AXI_T> STREAM_T; | |
void vec_add(STREAM_T &A, STREAM_T &B, STREAM_T &C, int LEN){ |
# Script to build vec_add.cpp HLS IP | |
open_project vec_add | |
set_top vec_add | |
add_files vec_add.cpp | |
open_solution "solution1" | |
set_part {xc7z020clg400-1} -tool vivado | |
create_clock -period 7 -name default | |
csynth_design | |
export_design -format ip_catalog -description "vec_add" -display_name "vec_add" | |
exit |
If the board is connected to the internet, a Python package can be installed with pip: | |
pip install <github repo web address> | |
You can also download a zip of the repo to a computer (there is an option on the GitHub repo to download a zip). | |
Extract the repo and copy to the board. You can then run a local pip install: | |
pip install ./path_to_repo | |
If the board is connected to the internet, you can run: | |
sudo apt-get install <package> | |
If the board is not connected to the internet, apt-get will usually fail when trying to access the .deb file for the package. |