Skip to content

Commit

Permalink
Create soc_init.cfg
Browse files Browse the repository at this point in the history
  • Loading branch information
Pradeep2004 authored Apr 30, 2021
1 parent d194867 commit 1470069
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions doc/nativeJtag/soc_init.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
set cpu_count 1


for {set i 0} {$i < $cpu_count} {incr i} {
target create saxon.cpu$i vexriscv -endian little -chain-position $TAP_NAME -coreid $i -dbgbase [expr $i*0x1000+0x10B80000]
vexriscv readWaitCycles 40
vexriscv cpuConfigFile $CPU0_YAML
if {$SPINAL_SIM != "yes"} {
vexriscv jtagMapping 3 3 0 1 2 2
}
}

for {set i 0} {$i < $cpu_count} {incr i} {
targets saxon.cpu$i
poll_period 50
init
soft_reset_halt
}

puts " done"

0 comments on commit 1470069

Please sign in to comment.