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.
49 lines
1.1 KiB
49 lines
1.1 KiB
5 years ago
|
#!/bin/bash
|
||
|
|
||
|
# Directory where everything is stored
|
||
|
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/ulx3s-$FPGANOW) 2>>$FPGADIR/log/ulx3s-$FPGANOW
|
||
|
|
||
|
set -x
|
||
|
cd $FPGADIR/litex/litex-boards/litex_boards/partner/targets
|
||
|
|
||
|
./ulx3s.py \
|
||
|
--gateware-toolchain=trellis \
|
||
|
--gateware-toolchain-path=/usr/local \
|
||
|
--device=LFE5UM-85F \
|
||
|
--sys-clk-freq=50e6 \
|
||
|
--cpu-type=vexriscv \
|
||
|
--cpu-variant=linux+no-dsp \
|
||
|
--csr-csv=./csr_ulx3s.csv
|
||
|
|
||
|
|
||
|
# ujprog $FPGADIR/litex/litex-boards/litex_boards/partner/targets/soc_basesoc_ulx3s/gateware/top.svf
|
||
|
|
||
|
exit 0
|
||
|
|
||
|
# Flash mofo:
|
||
|
openocd \
|
||
|
-f $FPGADIR/PATCH/ulx3s.cfg \
|
||
|
-c "init; svf soc_basesoc_ulx3s/gateware/top.svf ; exit"
|
||
|
|
||
|
|
||
|
|
||
|
exit 0
|
||
|
|
||
|
--device=LFE5U-85F \
|
||
|
-f $FPGADIR/litex/linux-on-litex-vexriscv/prog/ulx3s.cfg \
|
||
|
|
||
|
#
|
||
|
--sdram-module SDRAM_MODULE
|
||
|
SDRAM module: MT48LC16M16, AS4C32M16 or AS4C16M16
|
||
|
(default=MT48LC16M16)
|
||
|
|
||
|
#
|
||
|
lxterm /dev/ttyUSB0 --speed=1e6
|