Skip to content

Commit 45b7004

Browse files
committed
Added make target prog_fpga to flash bitfile into SPI flash.
1 parent b297b0f commit 45b7004

File tree

3 files changed

+7
-1
lines changed

3 files changed

+7
-1
lines changed

fpga/panologic_g2/Makefile

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
CPU ?= riscv
55
XILINX_ISE ?= /opt/Xilinx/14.7/ISE_DS/ISE/bin/lin64
66
CABLE ?= jtaghs2
7+
XC3SPROG_OPTS ?= -c $(CABLE) -v
8+
XC3SPROG ?= xc3sprog
79

810
# Choice: [rv32i, rv32i_spartan6, rv32im, rv32imsu]
911
RISCV_CORE ?= rv32i_spartan6
@@ -37,8 +39,12 @@ init_and_build: ${CORES_README} all
3739

3840
include ../common/makefile.fpga_ise
3941

42+
BIT_FILE = project/${PROJECT}_routed.bit
4043
load:
41-
xc3sprog -c ${CABLE} project/${PROJECT}_routed.bit
44+
$(XC3SPROG) $(XC3SPROG_OPTS) ${BIT_FILE}
45+
46+
prog_fpga:
47+
$(XC3SPROG) $(XC3SPROG_OPTS) -Ixc3sprog/$(PART_NAME).bit ${BIT_FILE}
4248

4349
${CORES_README}:
4450
git submodule init
1.01 MB
Binary file not shown.
1.12 MB
Binary file not shown.

0 commit comments

Comments
 (0)