OpenCores
URL https://opencores.org/ocsvn/an-fpga-implementation-of-low-latency-noc-based-mpsoc/an-fpga-implementation-of-low-latency-noc-based-mpsoc/trunk

Subversion Repositories an-fpga-implementation-of-low-latency-noc-based-mpsoc

[/] [an-fpga-implementation-of-low-latency-noc-based-mpsoc/] [trunk/] [mpsoc/] [src_c/] [jtag/] [test_rtl/] [jtag_ram_test/] [sw/] [program.sh] - Blame information for rev 38

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 38 alirezamon
 
2
#!/bin/sh
3
 
4
 
5
#JTAG_INTFC="$PRONOC_WORK/toolchain/bin/JTAG_INTFC"
6
source ./jtag_intfc.sh
7
 
8
#reset and disable cpus, then release the reset but keep the cpus disabled
9
 
10
$JTAG_INTFC -n 127  -d  "I:1,D:2:3,D:2:2,I:0"
11
 
12
# jtag instruction
13
#       0: bypass
14
#       1: getting data
15
# jtag data :
16
#       bit 0 is reset
17
#       bit 1 is disable
18
# I:1  set jtag_enable  in active mode
19
# D:2:3 load jtag_enable data register with 0x3 reset=1 disable=1
20
# D:2:2 load jtag_enable data register with 0x2 reset=0 disable=1
21
# I:0  set jtag_enable  in bypass mode
22
 
23
 
24
 
25
#programe the memory
26
 
27
        sh write_memory.sh
28
 
29
 
30
#Enable the cpu
31
$JTAG_INTFC -n 127  -d  "I:1,D:2:0,I:0"
32
# I:1  set jtag_enable  in active mode
33
# D:2:0 load jtag_enable data register with 0x0 reset=0 disable=0
34
# I:0  set jtag_enable  in bypass mode

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.