jtag and multi-ice
DESCRIPTION
JTAG and Multi-ICE. Speaker : 沈文中. National Taiwan University Adopted from National Taiwan University SOC Course Material. Outline. ARM debug Architecture Content of JTAG Content of Embedded ICE Multi-ICE Arch. ARM debug Arch.(I). AXD can debug design through: ARMulator(software) - PowerPoint PPT PresentationTRANSCRIPT
![Page 1: JTAG and Multi-ICE](https://reader036.vdocuments.us/reader036/viewer/2022062310/5681565c550346895dc406d2/html5/thumbnails/1.jpg)
SOC Consortium Course Material
JTAG and Multi-ICEJTAG and Multi-ICE
Speaker :沈文中National Taiwan University
Adopted from National Taiwan University
SOC Course Material
![Page 2: JTAG and Multi-ICE](https://reader036.vdocuments.us/reader036/viewer/2022062310/5681565c550346895dc406d2/html5/thumbnails/2.jpg)
2SOC Consortium Course Material
OutlineARM debug ArchitectureContent of JTAGContent of Embedded ICEMulti-ICE Arch.
![Page 3: JTAG and Multi-ICE](https://reader036.vdocuments.us/reader036/viewer/2022062310/5681565c550346895dc406d2/html5/thumbnails/3.jpg)
3SOC Consortium Course Material
ARM debug Arch.(I) AXD can debug design through:
– ARMulator(software)– Multi-ICE(hardware)– Angel(hardware)
![Page 4: JTAG and Multi-ICE](https://reader036.vdocuments.us/reader036/viewer/2022062310/5681565c550346895dc406d2/html5/thumbnails/4.jpg)
4SOC Consortium Course Material
ARM debug Arch.(II)Limits of ARMulator
– Processor core model– Memory interface– Coprocessor interface– Operating system interface
![Page 5: JTAG and Multi-ICE](https://reader036.vdocuments.us/reader036/viewer/2022062310/5681565c550346895dc406d2/html5/thumbnails/5.jpg)
5SOC Consortium Course Material
ARM debug Arch.(III)Multi-ICE
– The solution for ARMulator limits– Can emulate custom logic– Use hardware to emulate truly results– Extended from JTAG Architecture
![Page 6: JTAG and Multi-ICE](https://reader036.vdocuments.us/reader036/viewer/2022062310/5681565c550346895dc406d2/html5/thumbnails/6.jpg)
6SOC Consortium Course Material
OutlineARM debug ArchitectureContent of JTAGContent of Embedded ICEMulti-ICE Arch.
![Page 7: JTAG and Multi-ICE](https://reader036.vdocuments.us/reader036/viewer/2022062310/5681565c550346895dc406d2/html5/thumbnails/7.jpg)
7SOC Consortium Course Material
JTAG Arch.Serial scan path from
one cell to another Controlled by TAP
controller
![Page 8: JTAG and Multi-ICE](https://reader036.vdocuments.us/reader036/viewer/2022062310/5681565c550346895dc406d2/html5/thumbnails/8.jpg)
8SOC Consortium Course Material
JTAG principle(I)
Core logic
Device ID reg
Instruction reg
Bypass reg
TAP controller
out
I/O
TDOTDI
TMS
TCK
TRST
enable
in
In enable
![Page 9: JTAG and Multi-ICE](https://reader036.vdocuments.us/reader036/viewer/2022062310/5681565c550346895dc406d2/html5/thumbnails/9.jpg)
9SOC Consortium Course Material
JTAG Principle(II)JTAG Signals
– TRST Test reset signal– TDI Test data in– TMS Test mode select– TCK Test clock– TDO Test data out
![Page 10: JTAG and Multi-ICE](https://reader036.vdocuments.us/reader036/viewer/2022062310/5681565c550346895dc406d2/html5/thumbnails/10.jpg)
10SOC Consortium Course Material
EmbeddedICE interface
Pin Name Function
1 SPU System powered up, pin connected to Vdd through a 33 ohm resistor
3 nTRST Test reset, active low
5 TDI Test data in
7 TMS Test mode select
9 TCK Test clock
11 TDO Test data out
12 nICERST Target System Reset (sometimes referred to nSYSRST or nRSTOUT)
13 SPU System powered up, pin connected to Vdd through a 33 ohm resistor
2, 4, 6, 8,10,14
VSS System ground reference (All VSS pins should be con-nected
![Page 11: JTAG and Multi-ICE](https://reader036.vdocuments.us/reader036/viewer/2022062310/5681565c550346895dc406d2/html5/thumbnails/11.jpg)
11SOC Consortium Course Material
OutlineARM debug ArchitectureContent of JTAGContent of Embedded ICEMulti-ICE Arch.
![Page 12: JTAG and Multi-ICE](https://reader036.vdocuments.us/reader036/viewer/2022062310/5681565c550346895dc406d2/html5/thumbnails/12.jpg)
12SOC Consortium Course Material
Debug extensions to the ARM coreThe extensions consist of a number of scan chains around
the processor core and some additional signals that are used to control the behavior of the core for debug purposes :– BREAKPT: enables external hardware to halt processor
execution for debug purposes.active high– DBGRQ: is a level-sensitive input that causes the CPU to enter
debug state when the current instruction has completed.– DBGACK: is an output from the CPU that goes high when the
core is in debug state
![Page 13: JTAG and Multi-ICE](https://reader036.vdocuments.us/reader036/viewer/2022062310/5681565c550346895dc406d2/html5/thumbnails/13.jpg)
13SOC Consortium Course Material
The EmbeddedICE logicThis logic is the integrated onchip logic that provides
JTAG debug support for ARM core.This logic is accessed through the TAP controller on the
ARM core using the JTAG interface. Consists of:– Two watchpoint units– A control register– A status register– A set of registers implementing the Debug Communications
Channel link
![Page 14: JTAG and Multi-ICE](https://reader036.vdocuments.us/reader036/viewer/2022062310/5681565c550346895dc406d2/html5/thumbnails/14.jpg)
14SOC Consortium Course Material
Watch /break pointWatchpoints are taken when the data being
watchpointed has changed.Breakpoints are taken when the instruction being
breakpointed reaches the execution stage. the program counter is not updated, and retains the address of the breakpointed instruction.
![Page 15: JTAG and Multi-ICE](https://reader036.vdocuments.us/reader036/viewer/2022062310/5681565c550346895dc406d2/html5/thumbnails/15.jpg)
15SOC Consortium Course Material
OutlineARM debug ArchitectureContent of JTAGContent of Embedded ICEMulti-ICE Arch.
![Page 16: JTAG and Multi-ICE](https://reader036.vdocuments.us/reader036/viewer/2022062310/5681565c550346895dc406d2/html5/thumbnails/16.jpg)
16SOC Consortium Course Material
Multi-ICE(I)
![Page 17: JTAG and Multi-ICE](https://reader036.vdocuments.us/reader036/viewer/2022062310/5681565c550346895dc406d2/html5/thumbnails/17.jpg)
17SOC Consortium Course Material
Multi-ICE(II) Debugging software can be
run on different computer through Network.
![Page 18: JTAG and Multi-ICE](https://reader036.vdocuments.us/reader036/viewer/2022062310/5681565c550346895dc406d2/html5/thumbnails/18.jpg)
18SOC Consortium Course Material
The portmap applicationTo support network connections, an additional
application must be running on the windows workstation that runs the The multi-ICE server.
the portmapper allows software on other computers on the network to locate the The multi-ICE server.
![Page 19: JTAG and Multi-ICE](https://reader036.vdocuments.us/reader036/viewer/2022062310/5681565c550346895dc406d2/html5/thumbnails/19.jpg)
19SOC Consortium Course Material
How multi-ICE differs from a debug monitorA debug monitor is an application that runs on your
target hardware in conjunction with your application, and requires some resources(ex:memory) to be avaible
The EmbeddedICE debug arch. Requires almost no resources. Rather than being an application on the board, it works by using :– Additional debug hardware within the core, parts that enable the
host to communicate with the target– An external interface unit that buffers and translates the core
signals into something usable by a host computer
![Page 20: JTAG and Multi-ICE](https://reader036.vdocuments.us/reader036/viewer/2022062310/5681565c550346895dc406d2/html5/thumbnails/20.jpg)
20SOC Consortium Course Material
Reference Topic & Related Documents
Multi-ICE [DUI_0048F_MICE2_2_UG] AXD and armsd Debuggers Guide
[DUI_0066D_AXDDG_2_UG ] Getting Started Guide [DUI_0064D_GSG_UG ]