From 1470069dbd664ba711e2768bb714aac6430b81df Mon Sep 17 00:00:00 2001 From: Pradeep2004 <78598837+Pradeep2004@users.noreply.github.com> Date: Fri, 30 Apr 2021 23:15:58 +0200 Subject: [PATCH] Create soc_init.cfg --- doc/nativeJtag/soc_init.cfg | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 doc/nativeJtag/soc_init.cfg diff --git a/doc/nativeJtag/soc_init.cfg b/doc/nativeJtag/soc_init.cfg new file mode 100644 index 0000000..92d67cf --- /dev/null +++ b/doc/nativeJtag/soc_init.cfg @@ -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"