Skip to content

Commit

Permalink
Adding dse.sh, top_build.sh, hls and misc sources
Browse files Browse the repository at this point in the history
  • Loading branch information
emanueledelsozzo committed Dec 1, 2020
1 parent 6ef25ec commit ba19bbf
Show file tree
Hide file tree
Showing 26 changed files with 6,141 additions and 0 deletions.
68 changes: 68 additions & 0 deletions dse.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
#!/bin/bash
#/******************************************
#*MIT License
#*
#*Copyright (c) [2020] [Davide Conficconi, Eleonora D'Arnese, Emanuele Del Sozzo, Donatella Sciuto, Marco Domenico Santambrogio]
#*
#*Permission is hereby granted, free of charge, to any person obtaining a copy
#*of this software and associated documentation files (the "Software"), to deal
#*in the Software without restriction, including without limitation the rights
#*to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
#*copies of the Software, and to permit persons to whom the Software is
#*furnished to do so, subject to the following conditions:
#*
#*The above copyright notice and this permission notice shall be included in all
#*copies or substantial portions of the Software.
#*
#*THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
#*IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
#*FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
#*AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
#*LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
#*OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
#*SOFTWARE.
#*/

PES=(8 16)
CORE_NRS=(2 1)
HTYPS=('float' 'fixed')
PE_ENTROP=(4 2)
CACHING=(true false)
URAM=(true)
FREQZ=200
#this value affect vivado design frequency in all platforms, not in HLS standalone
#change this value if using a zynq-based, use 200MHz / 250 MHz
#change this value if using an alveo-based, use 300MHz


#Change TRGT_PLATFORM=`pynqz2|ultra96_v2|zcu10|alveo_u200` to target different platforms

echo "************************"
echo "************************"
echo "************************"
echo "************************"
echo ""
echo "[WARNING] This script generates M*O^N designs where N is the variety of parameters"
echo " (i.e., for depth) and M the different possibilities of each parameter"
echo ""
echo "************************"
echo "************************"
echo "************************"
echo "************************"

for p in ${PES[@]}; do
for cn in ${CORE_NRS[@]}; do
for h in ${HTYPS[@]}; do
for pe in ${PE_ENTROP[@]}; do
for c in ${CACHING[@]}; do
for u in ${URAM[@]}; do
#make hw_gen PE=$p CORE_NR=$cn HT=$h TARGET=hw OPT_LVL=3 \
# CLK_FRQ=$FREQZ PE_ENTROP=$pe CACHING=$c URAM=$u TRGT_PLATFORM=alveo_u200;
make hw_gen PE=$p CORE_NR=$cn HT=$h FREQ_MHZ=$FREQZ PE_ENTROP=$pe \
CACHING=$c URAM=$u TRGT_PLATFORM=ultra96_v2;
done;
done;
done;
done;
done;
done;
Loading

0 comments on commit ba19bbf

Please sign in to comment.