Advertisement
Guest User

Untitled

a guest
Apr 9th, 2014
135
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.65 KB | None | 0 0
  1. digilent-nexys4.cfg
  2. ---
  3. #
  4. # Digilent JTAG-SMT2
  5. #
  6. # http://www.digilentinc.com/Products/Detail.cfm?NavPath=2,395,1053&Prod=JTAG-SMT2
  7. #
  8. # Config is based on data from
  9. # http://electronix.ru/forum/index.php?showtopic=114633&view=findpost&p=1215497 and ZedBoard schematics
  10. #
  11.  
  12. interface ftdi
  13. ftdi_vid_pid 0x0403 0x6010
  14.  
  15. reset_config srst_push_pull
  16.  
  17. ftdi_layout_init 0x2088 0x3f8b
  18. ftdi_layout_signal nSRST -data 0x2000
  19. ftdi_layout_signal GPIO2 -data 0x2000
  20. ftdi_layout_signal GPIO1 -data 0x0200
  21. ftdi_layout_signal GPIO0 -data 0x0100
  22.  
  23.  
  24. ---
  25. or1k-generic.cfg
  26. ---
  27. # If you want to use the VJTAG TAP or the XILINX BSCAN,
  28. # you must set your FPGA TAP ID here
  29.  
  30. set FPGATAPID 0x13631093
  31.  
  32. # Choose your TAP core (VJTAG , MOHOR or XILINX_BSCAN)
  33. if { [info exists TAP_TYPE] == 0} {
  34. set TAP_TYPE XILINX_BSCAN
  35. }
  36.  
  37. # Set your chip name
  38. set CHIPNAME or1k
  39.  
  40. source [find target/or1k.cfg]
  41.  
  42. # Set the adapter speed
  43. adapter_khz 1000
  44.  
  45. # Enable the target description feature
  46. gdb_target_description enable
  47.  
  48. # Add a new register in the cpu register list. This register will be
  49. # included in the generated target descriptor file.
  50. # format is addreg [name] [address] [feature] [reg_group]
  51. addreg rtest 0x1234 org.gnu.gdb.or1k.group0 system
  52.  
  53. # Override default init_reset
  54. proc init_reset {mode} {
  55. soft_reset_halt
  56. resume
  57. }
  58.  
  59. # Target initialization
  60. init
  61. echo "Halting processor"
  62. halt
  63.  
  64. foreach name [target names] {
  65. set y [$name cget -endian]
  66. set z [$name cget -type]
  67. puts [format "Chip is %s, Endian: %s, type: %s" \
  68. $name $y $z]
  69. }
  70.  
  71. set c_blue "\033\[01;34m"
  72. set c_reset "\033\[0m"
  73.  
  74. puts [format "%sTarget ready...%s" $c_blue $c_reset]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement