Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
executable file 30 lines (21 sloc) 604 Bytes
#!/bin/bash
# Program an Altera FPGA using free software, by teknohog
# Requires:
# * UrJTAG with ftdi support
# * output file in .svf format, can be generated from .sof by
# quartus_pgmw. In the Quartus GUI this is
# Tools->Programmer->File->Create... and the command line is
# quartus_cpf -c -q 12.0MHz -g 3.3 -n p $SOF_FILE $SVF_FILE
# * BSDL file for the FPGA
# More BSDL files for Altera chips:
# http://www.altera.com/download/board-layout-test/bsdl/11491/bsd-11491.html
BSDL_PATH="."
SVF=fpgaminer.svf
cat <<EOF | jtag
bsdl path $BSDL_PATH
cable usbblaster
detect
part 0
svf $SVF
quit
EOF