7
mirror of https://github.com/EEVengers/ThunderScope.git synced 2025-04-03 05:16:33 +00:00

Added script to build and flash ts litex gateware

This commit is contained in:
Aleksa Bjelogrlic 2024-10-18 20:22:30 -04:00
parent fb012a3355
commit 3e6256963d
3 changed files with 14 additions and 2 deletions

2
.gitignore vendored
View File

@ -34,3 +34,5 @@ Gateware/openFPGALoader
Gateware/prebuilt_bitstreams/
Gateware/LiteX/
Gateware/thunderscope_litex

View File

@ -0,0 +1,11 @@
git clone https://github.com/EEVengers/thunderscope_litex.git
cd thunderscope_litex
if [ "$1" == "a50t" ]; then
./thunderscope.py --variant=a50t --build --load
elif [ "$1" == "a100t" ]; then
./thunderscope.py --variant=a100t --build --load
elif [ "$1" == "a200t" ]; then
./thunderscope.py --variant=a200t --build --load
else
echo "Valid arguments are: a50t a100t a200t"
fi

View File

@ -3,12 +3,11 @@ cd prebuilt_bitstreams
wget https://github.com/EEVengers/thunderscope_litex/releases/download/beta_2-0fd27d5b/thunderscope_a100t.bin -O thunderscope_a100t.bin
wget https://github.com/EEVengers/thunderscope_litex/releases/download/beta_2-0fd27d5b/thunderscope_a200t.bin -O thunderscope_a200t.bin
wget https://github.com/EEVengers/thunderscope_litex/releases/download/beta_2-0fd27d5b/thunderscope_a50t.bin -O thunderscope_a50t.bin
if [ "$1" == "a50t" ]; then
openFPGALoader --fpga-part xc7a50tcsg324 -f -c digilent_hs2 thunderscope_a50.bin
elif [ "$1" == "a100t" ]; then
openFPGALoader --fpga-part xc7a100tfgg484 -f -c digilent_hs2 thunderscope_a100.bin
elif [ "$1" == "a100t" ]; then
elif [ "$1" == "a200t" ]; then
openFPGALoader --fpga-part xc7a200tfbg484 -f -c digilent_hs2 thunderscope_a200.bin
else
echo "Valid arguments are: a50t a100t a200t"