You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
fpga-cruft/scripts/forksand-trellis-vexriscv

43 lines
1.1 KiB

#!/bin/bash
FPGADIR=/home/jebba/devel/FPGA
# Directory of scripts
FPGASCRIPTS=$FPGADIR/muh
# Timestamp
FPGANOW=`date +%Y%m%d-%H%M%S`
# Log script
exec > >(tee $FPGADIR/log/trellis-vexriscv-$FPGANOW) 2>>$FPGADIR/log/trellis-vexriscv-$FPGANOW
set -x
cd $FPGADIR/litex/litex-boards/litex_boards/partner/targets
rm -rf soc_ethernetsoc_trellisboard
./trellisboard.py \
--with-ethernet \
--sys-clk-freq=75e6 \
--gateware-toolchain=trellis \
--gateware-toolchain-path=/usr/local \
--cpu-type=vexriscv \
--cpu-variant=linux+no-dsp \
--csr-csv=./csr_trellisboard.csv
cd $FPGADIR/litex/litex-boards/litex_boards/partner/targets/soc_ethernetsoc_trellisboard/gateware
openocd \
-f $FPGADIR/litex/linux-on-litex-vexriscv/prog/trellisboard.cfg \
-c "init; svf top.svf ; exit"
echo "lxterm /dev/ttyUSB2 --speed=1e6"
echo "lxterm /dev/ttyUSB2 --speed=2e6"
echo "lxterm /dev/ttyUSB2 --speed=115200"
echo "lxterm /dev/ttyUSB2"
exit 0