Skip to content

Commit

Permalink
cpld: update warning to suggest virtex2 refresh
Browse files Browse the repository at this point in the history
virtex2 refresh replaced virtex2 program, but the even older programming
commands like xc6s_program still suggest the old, now-removed program
command. This changes the warnings to suggest the command that is still
there, and also adds some indication that you will need to use the .pld
name instead of the .tap name.

Change-Id: I292da62a95a9b414c69cdb1bba8a28dfd16a7336
Signed-off-by: Adam Novak <interfect@gmail.com>
Reviewed-on: https://review.openocd.org/c/openocd/+/8468
Tested-by: jenkins
Reviewed-by: Antonio Borneo <borneo.antonio@gmail.com>
Reviewed-by: Daniel Anselmi <danselmi@gmx.ch>
  • Loading branch information
interfect authored and borneoa committed Sep 7, 2024
1 parent 7e271c9 commit 324469d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions tcl/cpld/xilinx-xc6s.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ set XC6S_JSTART 0x0c
set XC6S_BYPASS 0x3f

proc xc6s_program {tap} {
echo "DEPRECATED! use 'virtex2 program ...' not 'xc6s_program'"
echo "DEPRECATED! use 'virtex2 refresh XXXX.pld' not 'xc6s_program'"
global XC6S_JSHUTDOWN XC6S_JPROGRAM XC6S_JSTART XC6S_BYPASS
irscan $tap $XC6S_JSHUTDOWN
irscan $tap $XC6S_JPROGRAM
Expand All @@ -45,7 +45,7 @@ proc xc6s_program {tap} {

#xtp038 and xc3sprog approach
proc xc6s_program_iprog {tap} {
echo "DEPRECATED! use 'virtex2 program ...' not 'xc6s_program_iprog'"
echo "DEPRECATED! use 'virtex2 refresh XXXX.pld' not 'xc6s_program_iprog'"
global XC6S_JSHUTDOWN XC6S_JSTART XC6S_BYPASS XC6S_CFG_IN
irscan $tap $XC6S_JSHUTDOWN
runtest 16
Expand Down
2 changes: 1 addition & 1 deletion tcl/cpld/xilinx-xc7.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ set XC7_JSTART 0x0c
set XC7_BYPASS 0x3f

proc xc7_program {tap} {
echo "DEPRECATED! use 'virtex2 program ...' not 'xc7_program'"
echo "DEPRECATED! use 'virtex2 refresh XXXX.pld' not 'xc7_program'"
global XC7_JSHUTDOWN XC7_JPROGRAM XC7_JSTART XC7_BYPASS
irscan $tap $XC7_JSHUTDOWN
irscan $tap $XC7_JPROGRAM
Expand Down
2 changes: 1 addition & 1 deletion tcl/cpld/xilinx-xcu.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ set XCU_JSTART 0x0c
set XCU_BYPASS 0x3f

proc xcu_program {tap} {
echo "DEPRECATED! use 'virtex2 program ...' not 'xcu_program'"
echo "DEPRECATED! use 'virtex2 refresh XXXX.pld' not 'xcu_program'"
global XCU_JSHUTDOWN XCU_JPROGRAM XCU_JSTART XCU_BYPASS
irscan $tap $XCU_JSHUTDOWN
irscan $tap $XCU_JPROGRAM
Expand Down

0 comments on commit 324469d

Please sign in to comment.