Skip to content

Commit

Permalink
fpga: Reset board after program
Browse files Browse the repository at this point in the history
  • Loading branch information
CyrilKoe committed Jan 15, 2025
1 parent 91f1ae5 commit 4fc1c91
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 7 deletions.
11 changes: 11 additions & 0 deletions target/xilinx/scripts/program.tcl
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,16 @@ set_property PARAM.FREQUENCY 15000000 [get_hw_targets *]

current_hw_device $hw_device
set_property PROGRAM.FILE $::env(XILINX_BIT) $hw_device

set xilinx_ltx [file rootname $::env(XILINX_BIT)].ltx
set_property PROBES.FILE $xilinx_ltx $hw_device
set_property FULL_PROBES.FILE $xilinx_ltx $hw_device

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 *]]
commit_hw_vio [get_hw_vios *]
set_property OUTPUT_VALUE 0 [get_hw_probes [list *aux_reset* probe_out0] -of_objects [get_hw_vios *]]
commit_hw_vio [get_hw_vios *]
7 changes: 0 additions & 7 deletions target/xilinx/xilinx_ips/carfield_ip/src/carfield_xilinx.sv
Original file line number Diff line number Diff line change
Expand Up @@ -595,13 +595,6 @@ module carfield_xilinx
.USRDONETS (1'b1)
);

`ila(qspi_dqi_ila, qspi_dqi)
`ila(qspi_dqo_ila, qspi_dqo)
`ila(qspi_cs_b_ila, qspi_cs_b[1])
`ila(qspi_cs_b_ts_ila, qspi_cs_b_ts[1])
`ila(qspi_clk_ila, qspi_clk)
`ila(qspi_clk_ts_ila, qspi_clk_ts)


///////////////////
// Hyperram PADS //
Expand Down

0 comments on commit 4fc1c91

Please sign in to comment.