tmp19a43fzxbg TOSHIBA Semiconductor CORPORATION, tmp19a43fzxbg Datasheet - Page 403

no-image

tmp19a43fzxbg

Manufacturer Part Number
tmp19a43fzxbg
Description
32bit Tx System Risc
Manufacturer
TOSHIBA Semiconductor CORPORATION
Datasheet
(8) Undefined Bits in I/O Registers
(9) Notations, Precautions and Restrictions
Overflow Exception #1
Problem:
When an overflow exception is taken, the EPC register might contain an incorrect return address, pointing to
the instruction immediately following the one that caused an overflow.
The restart location in the EPC register should be the address of the arithmetic instruction that caused the
exception, rather than the following instruction.
In the above example, the processor writes address n to the EPC register upon detection of an overflow.
However, executing the next instruction generates an interrupt at the same time, causing the processor to
rewrite the EPC register with address n+4 in the next cycle.
This problem occurs when all of these conditions are true.
Undefined I/O register bits are read as undefined states. Therefore, software must be coded without
relying on the states of any undefined bits.
Workarounds:
Note:
Problem-Causing Situation:
A) Software uses the ADD, ADDI or SUB instruction in the 32-bit ISA.
B) The ADD, ADDI or SUB instruction causes an overflow.
C) Another exception is requested simultaneously with the overflow.
n
n + 4
Instruction Pipeline
EPC Register
Toshiba’s compiler uses no instructions that could cause an overflow. Therefore, since
condition c) above never becomes true, this problem does not occur.
Before returning from the overflow exception handler, determine whether the instruction
pointed to by the EPC register caused an overflow.
Make sure that two arithmetic instructions will not appear consecutively.
Disable interrupts prior to arithmetic instructions.
You should always use one of these workarounds to avoid this problem.
Arithmetic Instruction (e.g., ADD)
Next Instruction
TMP1942CY/CZ-402
F
Detects an overflow and writes to EPC.
Detects an interrupt. Writes to EPC.
D
F
D
E
M
E
n
TMP1942CY/CZ
n + 4
W
M
W

Related parts for tmp19a43fzxbg