You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

49 lines
1.3 KiB

  1. #
  2. # Xilinx Zynq-7000 All Programmable SoC
  3. #
  4. # http://www.xilinx.com/products/silicon-devices/soc/zynq-7000/index.htm
  5. #
  6. set _CHIPNAME zynq
  7. set _TARGETNAME $_CHIPNAME.cpu
  8. jtag newtap zynq_pl bs -irlen 6 -ircapture 0x1 -irmask 0x03 \
  9. -expected-id 0x23727093 \
  10. -expected-id 0x13722093 \
  11. -expected-id 0x03727093 \
  12. -expected-id 0x03736093
  13. jtag newtap $_CHIPNAME cpu -irlen 4 -ircapture 0x1 -irmask 0xf -expected-id 0x4ba00477
  14. dap create $_CHIPNAME.dap -chain-position $_CHIPNAME.cpu
  15. target create ${_TARGETNAME}0 cortex_a -dap $_CHIPNAME.dap \
  16. -coreid 0 -dbgbase 0x80090000
  17. target create ${_TARGETNAME}1 cortex_a -dap $_CHIPNAME.dap \
  18. -coreid 1 -dbgbase 0x80092000
  19. target smp ${_TARGETNAME}0 ${_TARGETNAME}1
  20. adapter speed 1000
  21. ${_TARGETNAME}0 configure -event reset-assert-post "cortex_a dbginit"
  22. ${_TARGETNAME}1 configure -event reset-assert-post "cortex_a dbginit"
  23. pld device virtex2 zynq_pl.bs 1
  24. set XC7_JSHUTDOWN 0x0d
  25. set XC7_JPROGRAM 0x0b
  26. set XC7_JSTART 0x0c
  27. set XC7_BYPASS 0x3f
  28. proc zynqpl_program {tap} {
  29. global XC7_JSHUTDOWN XC7_JPROGRAM XC7_JSTART XC7_BYPASS
  30. irscan $tap $XC7_JSHUTDOWN
  31. irscan $tap $XC7_JPROGRAM
  32. runtest 60000
  33. #JSTART prevents this from working...
  34. #irscan $tap $XC7_JSTART
  35. runtest 2000
  36. irscan $tap $XC7_BYPASS
  37. runtest 2000
  38. }