1 # If you want to use the VJTAG TAP, you must set your FPGA TAP ID here
2 set FPGATAPID 0x020b30dd
3 # Choose your TAP core (VJTAG or MOHOR)
8 source [find target/or1k.cfg]
10 # Set the adapter speed
13 # Enable the target description feature
14 gdb_target_description enable
16 # Add a new register in the cpu register list. This register will be
17 # included in the generated target descriptor file.
18 # format is addreg [name] [address] [feature] [reg_group]
19 addreg rtest 0x1234 org.gnu.gdb.or1k.group0 system
21 # Override default init_reset
22 proc init_reset {mode} {
27 # Target initialization
29 echo "Halting processor"
32 foreach name [target names] {
33 set y [$name cget -endian]
34 set z [$name cget -type]
35 puts [format "Chip is %s, Endian: %s, type: %s" \
39 set c_blue "\033\[01;34m"
40 set c_reset "\033\[0m"
42 puts [format "%sTarget ready...%s" $c_blue $c_reset]