Skip to content

Commit

Permalink
ci: Update for FPGA
Browse files Browse the repository at this point in the history
  • Loading branch information
CyrilKoe committed Jan 17, 2025
1 parent 1d27e86 commit db46b35
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion carfield.mk
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ include $(CAR_ROOT)/bender-safed.mk
######################

CAR_NONFREE_REMOTE ?= [email protected]:carfield/carfield-nonfree.git
CAR_NONFREE_COMMIT ?= f8bf7942
CAR_NONFREE_COMMIT ?= e39aebd1

## @section Carfield platform nonfree components
## Clone the non-free verification IP for Carfield. Some components such as CI scripts and ASIC
Expand Down
2 changes: 1 addition & 1 deletion target/xilinx/scripts/flash_spi.tcl
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
open_hw_manager

connect_hw_server -url $::env(XILINX_HOST):$::env(XILINX_PORT)
open_hw_target $::env(XILINX_HOST):$::env(XILINX_PORT)/$::env(XILINX_FPGA_PATH)
open_hw_target [get_hw_targets $::env(XILINX_FPGA_PATH)]

set file $::env(FILE)
set offset $::env(OFFSET)
Expand Down
7 changes: 4 additions & 3 deletions target/xilinx/scripts/program.tcl
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ puts $::env(XILINX_BIT)
open_hw_manager

connect_hw_server -url $::env(XILINX_HOST):$::env(XILINX_PORT)
open_hw_target $::env(XILINX_HOST):$::env(XILINX_PORT)/$::env(XILINX_FPGA_PATH)
open_hw_target [get_hw_targets $::env(XILINX_FPGA_PATH)]

if {$::env(XILINX_BOARD) eq "genesys2"} {
set hw_device [get_hw_devices xc7k325t_0]
Expand All @@ -34,7 +34,8 @@ program_hw_devices $hw_device
refresh_hw_device [lindex $hw_device 0]

# Force reset
set_property OUTPUT_VALUE 1 [get_hw_probes [list *aux_reset* probe_out0] -of_objects [get_hw_vios *]]
get_hw_vios *
set_property OUTPUT_VALUE 1 [get_hw_probes [list *aux_reset* probe_out0 *probe_out2_1] -of_objects [get_hw_vios *]]
commit_hw_vio [get_hw_vios *]
set_property OUTPUT_VALUE 0 [get_hw_probes [list *aux_reset* probe_out0] -of_objects [get_hw_vios *]]
set_property OUTPUT_VALUE 0 [get_hw_probes [list *aux_reset* probe_out0 *probe_out2_1] -of_objects [get_hw_vios *]]
commit_hw_vio [get_hw_vios *]

0 comments on commit db46b35

Please sign in to comment.