Добавил:
Upload Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:
CS 220 / ARM / ARM7TDMI_TechnicalReferenceManual.pdf
Скачиваний:
102
Добавлен:
16.04.2015
Размер:
1.63 Mб
Скачать

Debug in Depth

B.5 Public instructions

Table B-1 lists the public instructions.

Table B-1 Public instructions

Instruction

Binary

Hexadecimal

 

 

 

EXTEST

0000

0x0

 

 

 

SCAN_N

0010

0x2

 

 

 

SAMPLE/PRELOAD

0011

0x3

 

 

 

RESTART

0100

0x4

 

 

 

CLAMP

0101

0x5

 

 

 

HIGHZ

0111

0x7

 

 

 

CLAMPZ

1001

0x9

 

 

 

INTEST

1100

0xC

 

 

 

IDCODE

1110

0xE

 

 

 

BYPASS

1111

0xF

 

 

 

In the following instruction descriptions, TDI and TMS are sampled on the rising edge of TCK and all output transitions on TDO occur as a result of the falling edge of TCK. The following sections describe:

EXTEST (0000)

SCAN_N (0010) on page B-10

SAMPLE/PRELOAD (0011) on page B-10

RESTART (0100) on page B-10

CLAMP (0101) on page B-11

HIGHZ (0111) on page B-11

CLAMPZ (1001) on page B-11

INTEST (1100) on page B-12

IDCODE (1110) on page B-12

BYPASS (1111) on page B-12.

B.5.1 EXTEST (0000)

The selected scan chain is placed in test mode by the EXTEST instruction.

ARM DDI 0029G

Copyright © 1994-2001. All rights reserved.

B-9

Debug in Depth

The EXTEST instruction connects the selected scan chain between TDI and TDO.

When the instruction register is loaded with the EXTEST instruction, all of the scan cells are placed in their test mode of operation:

In the CAPTURE-DR state, inputs from the system logic and outputs from the output scan cells to the system are captured by the scan cells.

In the SHIFT-DR state, the previously captured test data is shifted out of the scan chain using TDO, while new test data is shifted in using the TDI input. This data is applied immediately to the system logic and system pins.

B.5.2 SCAN_N (0010)

The SCAN_N instruction connects the scan path select register between TDI and TDO:

In the CAPTURE-DR state, the fixed value 1000 is loaded into the register.

In the SHIFT-DR state, the ID number of the desired scan path is shifted into the scan path select register.

In the UPDATE-DR state, the scan register of the selected scan chain is connected between TDI and TDO and remains connected until a subsequent SCAN_N instruction is issued.

On reset, scan chain 3 is selected by default.

The scan path select register is 4 bits long in this implementation, although no finite length is specified. The least significant bit of the scan path select register is shifted in/out first.

B.5.3 SAMPLE/PRELOAD (0011)

This instruction is included for production test only and must never be used on the scan chains provided by the ARM7TDMI core. It can be used on user-added scan chains such as boundary-scan chains.

B.5.4 RESTART (0100)

The RESTART instruction restarts the processor on exit from debug state. The RESTART instruction connects the bypass register between TDI and TDO. The TAP controller behaves as if the BYPASS instruction had been loaded.

The processor exits debug state when the RUN-TEST-IDLE state is entered.

B-10

Copyright © 1994-2001. All rights reserved.

ARM DDI 0029G

Debug in Depth

B.5.5 CLAMP (0101)

This instruction connects a 1 bit shift register, the BYPASS register, between TDI and TDO. When the CLAMP instruction is loaded into the instruction register, the state of all the scan cell output signals is defined by the values previously loaded into the currently loaded scan chain. This instruction must only be used when scan chain 0 is the currently selected scan chain:

In the CAPTURE-DR state, a logic 0 is captured by the bypass register.

In the SHIFT-DR state, test data is shifted into the bypass register using TDI and out using TDO after a delay of one TCK cycle. The first bit shifted out is a zero.

In the UPDATE-DR state the bypass register is not affected.

B.5.6 HIGHZ (0111)

This instruction connects a 1 bit shift register, the BYPASS register, between TDI and TDO. When the HIGHZ instruction is loaded into the instruction register, the Address bus, A[31:0], the data bus, D[31:0], nRW, nOPC, LOCK, MAS[1:0], and nTRANS are all driven to the high impedance state and the external HIGHZ signal is driven HIGH. This is as if the signal TBE had been driven LOW:

In the CAPTURE-DR state, a logic 0 is captured by the bypass register.

In the SHIFT-DR state, test data is shifted into the bypass register using TDI and out using TDO after a delay of one TCK cycle. The first bit shifted out is a zero.

In the UPDATE-DR state, the bypass register is not affected.

B.5.7 CLAMPZ (1001)

This instruction connects a 1 bit shift register, the BYPASS register, between TDI and

TDO.

When the CLAMPZ instruction is loaded into the instruction register, all the 3-state outputs are placed in their inactive state, but the data supplied to the scan cell outputs is derived from the scan cells. The purpose of this instruction is to ensure that, during production test, each output can be disabled when its data value is either a logic 0 or a logic 1:

In the CAPTURE-DR state, a logic 0 is captured by the bypass register.

In the SHIFT-DR state, test data is shifted into the bypass register using TDI and out using TDO after a delay of one TCK cycle. The first bit shifted out is a zero.

In the UPDATE-DR state, the bypass register is not affected.

ARM DDI 0029G

Copyright © 1994-2001. All rights reserved.

B-11

Debug in Depth

B.5.8 INTEST (1100)

The INTEST instruction places the selected scan chain in test mode:

The INTEST instruction connects the selected scan chain between TDI and TDO.

When the INTEST instruction is loaded into the instruction register, all the scan cells are placed in their test mode of operation.

In the CAPTURE-DR state, the value of the data applied from the core logic to the output scan cells and the value of the data applied from the system logic to the input scan cells is captured.

In the SHIFT-DR state, the previously-captured test data is shifted out of the scan chain through the TDO pin, while new test data is shifted in through the TDI pin.

Single-step operation of the core is possible using the INTEST instruction.

B.5.9 IDCODE (1110)

The IDCODE instruction connects the device identification code register or ID register between TDI and TDO. The register is a 32-bit register that enables the manufacturer, part number, and version of a component to be read through the TAP. See ARM7TDMI core device IDentification (ID) code register on page B-14 for details of the ID register format.

When the IDCODE instruction is loaded into the instruction register, all the scan cells are placed in their normal system mode of operation:

In the CAPTURE-DR state, the device identification code is captured by the ID register.

In the SHIFT-DR state, the previously captured device identification code is shifted out of the ID register through the TDO pin, while data is shifted into the ID register through the TDI pin.

In the UPDATE-DR state, the ID register is unaffected.

B.5.10 BYPASS (1111)

The BYPASS instruction connects a 1-bit shift register, the bypass register, between

TDI and TDO.

B-12

Copyright © 1994-2001. All rights reserved.

ARM DDI 0029G

Debug in Depth

When the BYPASS instruction is loaded into the instruction register, all the scan cells assume their normal system mode of operation. The BYPASS instruction has no effect on the system pins:

In the CAPTURE-DR state, a logic 0 is captured the bypass register.

In the SHIFT-DR state, test data is shifted into the bypass register through TDI and shifted out through TDO after a delay of one TCK cycle. The first bit to shift out is a zero.

In the UPDATE-DR state, the bypass register is not affected.

All unused instruction codes default to the BYPASS instruction.

Note

BYPASS does not enable the processor to exit debug state or synchronize to MCLK for a system speed access while in debug state. You must use RESTART to achieve this.

ARM DDI 0029G

Copyright © 1994-2001. All rights reserved.

B-13

Соседние файлы в папке ARM