Skip to content

Commit

Permalink
target/xilinx: Add Genesys2 SPI flashing, fix util target bug
Browse files Browse the repository at this point in the history
  • Loading branch information
paulsc96 committed Dec 17, 2024
1 parent 89a94e3 commit 36ff88a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions target/xilinx/scripts/common.tcl
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
set bpart(genesys2) "digilentinc.com:genesys2:part0:1.1"
set fpart(genesys2) "xc7k325tffg900-2"
set hwdev(genesys2) "xc7k325t_0"
set cfgmp(genesys2) "s25fl256sxxxxxx0-spi-x1_x2_x4"

# vcu128 board params
set bpart(vcu128) "xilinx.com:vcu128:part0:1.0"
Expand Down
1 change: 1 addition & 0 deletions target/xilinx/scripts/util/flash.tcl
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ set hw_cfgmem [get_property PROGRAM.HW_CFGMEM $hw_device]
# Create image for and configure memory depending on board
# TODO: add bitstream flashing for genesys2
switch $board {
genesys2 -
vcu128 {
set mcs ${project_root}/image.mcs
write_cfgmem -force -format mcs -size 256 -interface SPIx4 \
Expand Down
2 changes: 1 addition & 1 deletion target/xilinx/xilinx.mk
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ $(foreach board,$(CHS_XILINX_BOARDS),chs-xilinx-$(1)-$(board)): chs-xilinx-$(1)-
[ -e $(subst %,$$*,$(2)) ] || $$(MAKE) $(subst %,$$*,$(2))
@rm -f $$(CHS_XILINX_DIR)/build/$$(*)*.$(1).log $$(CHS_XILINX_DIR)/build/$$(*)*.$(1).jou
cd $$| && $$(VIVADO) -mode batch -log ../$$(*).$(1).log -jou ../$$(*).$(1).jou -source $$< \
-tclargs $$(CHS_XILINX_HWS_URL) $$(or $$(CHS_XILINX_HWS_PATH_$$*),*) $$* $(subst %,$$*,$(2)) 0
-tclargs $$(CHS_XILINX_HWS_URL) $$(or $$(CHS_XILINX_HWS_PATH_$$*),{*}) $$* $(subst %,$$*,$(2)) 0
endef

# Program bitstream onto board
Expand Down

0 comments on commit 36ff88a

Please sign in to comment.