Advertisement
Guest User

my_or1k_generic.cfg

a guest
Jul 22nd, 2014
233
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.08 KB | None | 0 0
  1. # If you want to use the VJTAG TAP or the XILINX BSCAN,
  2. # you must set your FPGA TAP ID here
  3.  
  4. set FPGATAPID 0x020b30dd
  5.  
  6. # Choose your TAP core (VJTAG , MOHOR or XILINX_BSCAN)
  7. if { [info exists TAP_TYPE] == 0} {
  8. set TAP_TYPE MOHOR
  9. }
  10.  
  11. # Set your chip name
  12. set CHIPNAME or1200
  13.  
  14. source [find target/or1k.cfg]
  15.  
  16. # Set the adapter speed
  17. adapter_khz 3000
  18.  
  19. # Enable the target description feature
  20. gdb_target_description enable
  21.  
  22. # Add a new register in the cpu register list. This register will be
  23. # included in the generated target descriptor file.
  24. # format is addreg [name] [address] [feature] [reg_group]
  25. addreg rtest 0x1234 org.gnu.gdb.or1k.group0 system
  26.  
  27. # Override default init_reset
  28. proc init_reset {mode} {
  29. soft_reset_halt
  30. resume
  31. }
  32.  
  33. # Target initialization
  34. init
  35. echo "Halting processor"
  36. halt
  37.  
  38. foreach name [target names] {
  39. set y [$name cget -endian]
  40. set z [$name cget -type]
  41. puts [format "Chip is %s, Endian: %s, type: %s" \
  42. $name $y $z]
  43. }
  44.  
  45. set c_blue "\033\[01;34m"
  46. set c_reset "\033\[0m"
  47.  
  48. puts [format "%sTarget ready...%s" $c_blue $c_reset]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement