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 48

Details | Compare with Previous | View Log

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