From a3e535323c9e061fcb2cff9eb97fa39b24b9dacb Mon Sep 17 00:00:00 2001 From: Nico Schottelius Date: Mon, 3 Jun 2019 21:31:58 +0200 Subject: [PATCH] add script to do all steps --- netpfga/do-all-steps.sh | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 netpfga/do-all-steps.sh diff --git a/netpfga/do-all-steps.sh b/netpfga/do-all-steps.sh new file mode 100644 index 0000000..7fb44de --- /dev/null +++ b/netpfga/do-all-steps.sh @@ -0,0 +1,37 @@ +#!/bin/sh + +set -e +set -x + +# Step 1..3: create code +# Step 4 +cd $P4_PROJECT_DIR && make + +# Step 5 +cd $P4_PROJECT_DIR/nf_sume_sdnet_ip/SimpleSumeSwitch && ./vivado_sim.bash + +# Step 6 +cd $P4_PROJECT_DIR && make config_writes + +# Step 7 +cd $P4_PROJECT_DIR && make uninstall_sdnet && make install_sdnet + +# Step 8 +cd $NF_DESIGN_DIR/test/sim_switch_default && make + +# Step 9 +cd $SUME_FOLDER && ./tools/scripts/nf_test.py sim --major switch --minor default + +# Step 10 +cd $NF_DESIGN_DIR && make + +# Step 11: - + +# Step 12: +cd $NF_DESIGN_DIR/bitfiles +mv simple_sume_switch.bit ${P4_PROJECT_NAME}.bit +cp $P4_PROJECT_DIR/testdata/config_writes.sh ./ + +# Step 13: +cd $NF_DESIGN_DIR/bitfiles/ +sudo ./program_switch.sh