Skip to content

Commit

Permalink
Testing uart works with pipeline.
Browse files Browse the repository at this point in the history
  • Loading branch information
marianabuhazi committed Apr 28, 2024
1 parent 9f25f57 commit 2fcb8bb
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 29 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/regression-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,14 @@ jobs:
regression:
runs-on: self-hosted
steps:
- name: Discover modified accelerators
run: |
cd $HOME/esp/utils/scripts/actions-pipeline
./get_modified_accelerators.sh
- name: Run HLS
run: |
cd $HOME/esp/utils/scripts/actions-pipeline
./run_sims.sh
# - name: Discover modified accelerators
# run: |
# cd $HOME/esp/utils/scripts/actions-pipeline
# ./get_modified_accelerators.sh
# - name: Run HLS
# run: |
# cd $HOME/esp/utils/scripts/actions-pipeline
# ./run_sims.sh
- name: Generate bitstream and program FPGA
run: |
cd $HOME/esp/utils/scripts/actions-pipeline
Expand Down
42 changes: 21 additions & 21 deletions utils/scripts/actions-pipeline/run_esp-config.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ for accelerator in "${!latest_versions[@]}"; do
accelerator_upper=$(echo "$accelerator" | tr '[:lower:]' '[:upper:]')
esp_config="$HOME/esp/socs/xilinx-vc707-xc7vx485t/socgen/esp/.esp_config"
vivado_syn="$HOME/esp/utils/scripts/actions-pipeline/vivado_syn_$accelerator.log"
minicom="$HOME/esp/utils/scripts/actions-pipeline/minicom_$accelerator.log"
cp "$defconfig" "$esp_config"

sed -i "s/CONFIG_DSU_IP = C0A80107/CONGIG_DSU_IP = C0A8011C/" "$esp_config"
Expand All @@ -16,30 +17,29 @@ for accelerator in "${!latest_versions[@]}"; do
sed -i "s/POWER_1_0 = empty 0 0 0 0 0 0 0 0 0 0 0 0/POWER_1_0 = $accelerator_upper 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0/" "$esp_config"

cd "$HOME/esp/socs/xilinx-vc707-xc7vx485t"
rm top.bit
rm -r vivado
make clean
cat $esp_config
make esp-config
make vivado-syn &> "$vivado_syn"
# rm top.bit
# rm -r vivado
# make clean
# make esp-config
# make vivado-syn &> "$vivado_syn"
echo "make vivado-syn"
if [ -s "top.bit" ]; then
make soft
make fpga-program &> "$fpga_program"
if grep -q ERROR "$fpga_program"; then
echo "FPGA PROGRAM FAILED: $accelerator"
else
echo "FPGA PROGRAM SUCCESS: $accelerator"
# make soft
# make fpga-program &> "$fpga_program"
# if grep -q ERROR "$fpga_program"; then
# echo "FPGA PROGRAM FAILED: $accelerator"
# else
# echo "FPGA PROGRAM SUCCESS: $accelerator"

fi
rm "$fpga_program"
# fi
echo "make soft and fpga-program"
# rm "$fpga_program"
make uart &
uart_pid=$!
make fpga-run
kill -9 "$uart_pid"
mv minicom.log "$minicom"
else
echo "Bitstream generation failed: $accelerator"
fi
# Clean up
# fi
# delete vivado folder and bit file
# make clean
# if (top.bit exists, make vivado-syn)
# make fpga-program
# make uart
done

0 comments on commit 2fcb8bb

Please sign in to comment.