tm1300 NXP Semiconductors, tm1300 Datasheet - Page 52

no-image

tm1300

Manufacturer Part Number
tm1300
Description
Tm-1300 Media Processor
Manufacturer
NXP Semiconductors
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
tm1300-1.2
Quantity:
380
TM1300 Data Book
3.1.3
The DSPCPU issues one ‘long instruction’ every clock
cycle. Each instruction consists of several operations
(five operations for the TM1300 microprocessor). Each
operation is comparable to a RISC machine instruction,
except that the execution of an operation is conditional
upon the content of a general purpose register. Exam-
ples of operations are:
Each operation has a specific, known execution latency
in clock cycles. For example, iadd takes 1 cycle; thus the
result of an iadd operation started in clock cycle i is avail-
able for use as an argument to operations issued in cycle
i+1 or later. The other operations issued in cycle i cannot
use the result of iadd. The ld32d operation has a latency
of 3 cycles. The result of an ld32d operation started in cy-
cle j is available for use by other operations issued in cy-
cle j+3 or later. Branches, such as the jmpf example
above have three delay slots. This means that if a branch
operation in cycle k is taken, all operations in the instruc-
tions in cycle k+1, k+2 and k+3 are still executed.
In the above examples, r10 and r20 control conditional
execution of the operations. Also known as ‘guarding’,
here r10 and r20 contain the operation ‘guard’. See
tion 3.2.1, “Guarding (Conditional Execution).”
Certain restrictions exist in the choice of what operations
can be packed into an instruction. For example, the
DSPCPU in TM1300 allows no more than two load/store
class operations to be packed into a single instruction.
Also, no more than five results (of previously started op-
erations) can be written during any one cycle. The pack-
ing of operations is not normally done by the program-
mer. Instead, the instruction scheduler (See Philips
TriMedia SDE Reference Manual) takes care of convert-
ing the parallel intermediate format code into packed in-
structions ready for the assembler. The rules are formally
described in the machine description file used by the in-
struction scheduler and other tools.
Figure 3-2. TM1300 PCSW (Program Control and Status Word) register format.
3-2
exception trap enable
Misaligned store exception
PCSW[31:16]
Write back error trap enable
PCSW[15:0]
IF r10 iadd r11 r12
IF r10 ld32d(4) r15
IF r20 jmpf r21 r22
Misaligned store
Reserved exception
(if r10 true, add r11 and r12 and write sum in r13)
(if r10 true, load 32 bits from mem[r15+4] into r16)
(if r20 true and r21 false, jump to address in r22)
Write back error
Basic DSPCPU Execution Model
MSE
MSE
TRP
15
31
Interrupt enable (1
WBE RSE
WBE
TRP
14
30
Count stalls (1
PRODUCT SPECIFICATION
Reserved exception
trap enable
TRP
RSE
29
13
r13
r16
U N D E F
allow interrupts)
12
28
U N D E F
Yes)
CS
11
27
TFE
IEN
10
26
Sec-
Trap on first exit
BSX IEEE MODE OFZ
25
9
U N D E F I N E D
Byte sex (1
3.1.4
Figure 3-2
of PCSW on reset is 0. For compatibility, any undefined
PCSW fields should never be modified.
Note that the DSPCPU architecture has no condition
codes or integer arithmetic status flags. Integer opera-
tions that generate out-of-range results deliver an opera-
tion specific bit pattern. For example, see
pendix A, “DSPCPU Operations for TM1300.”
operations exist that take the place of integer status flags
in a classical architecture. Multiword arithmetic is sup-
ported by the ‘carry’ operation which generates a ‘0’ or ‘1’
depending on the carry that would be generated if its ar-
guments were summed.
FP-Related Fields. The IEEE mode field determines the
IEEE rounding mode of all floating point operations, with
the exception of a few floating point conversion opera-
tions that use fixed rounding mode. For example, see
ixrz, ifloatrz, ifixrz,
erations for TM1300.”
The FP exception flags are ‘sticky bits’ that are set as a
side effect of floating-point computations. Each floating
point operation can set one or more of the flags if it incurs
the corresponding exception. The flags can only be reset
by direct software manipulation of the PCSW (using the
writepcsw operation). The bits have the meanings shown
in
The FP exception trap enable bits determine which FP
exception flags invoke CPU exception handling. An ex-
ception is requested if the intersection of the exception
flags and trap enable flags is non-zero. The acceptance
and handling of exceptions is described in
“Special Event Handling.”
BSX (Bytesex). The DSPCPU has a switchable bytesex.
The BSX flag in the PCSW can be written by software.
Load/store operations observe little- or big-endian byte
ordering based on the current setting of BSX.
IEN (Interrupt Enable). The IEN flag disables or enables
interrupt processing for most interrupt sources. Only NMI
(non-maskable interrupt) bypasses IEN. The acceptance
and handling of interrupts is described in
“INT and NMI (Maskable and Non-Maskable Interrupts).”
8
Table
IEEE rounding mode
0
23
7
little endian)
3-2.
to nearest, 1
PCSW Overview
shows the PCSW register. The TM1300 value
TRP
OFZ
22
6
TRP
IFZ
IFZ
ifloatrz
21
5
to zero, 2
FP exception trap-enable bits
TRP
INV
INV
20
in
4
Philips Semiconductors
FP exceptions
Appendix A, “DSPCPU Op-
PCSW = 0x800
after RESET
OVF
TRP
OVF
to positive, 3
19
3
UNF
TRP
UNF
18
2
dspiadd
Section 3.5.3,
TRP
INX
to negative
INX
Section 3.5,
17
1
Predicate
DBZ
TRP
DBZ
in
16
0
Ap-
if-

Related parts for tm1300