User’s Manual
C166S V1 SubSystem
Central Processing Unit
User’s Manual
3-7
V 1.6, 2001-08
3.3
Instruction Fetch and Program Flow Control
The C166S can fetch on average one 32-bit or two 16-bit instructions via the 32-bit wide
Local Memory Bus (LM-Bus) every machine cycle (which equals two clock cycles T1 and
T2) to provide a continuous instruction flow. The instructions can be fetched via this new
internal LM-Bus from the internal local memories (ROM, FLASH, OTP, SRAM, DRAM)
every clock cycle. A waitstate mechanism allows the CPU to adapt to different kind of
memories. For example, this mechanism can be used to:
• Access slower memories
• Generate a power ramp up phase for flash modules
• Stall a DRAM access during the refresh cycles.
Note: Additionally, the LM-Bus provides 16-bit read and write data accesses with and
without waitstates to the internal local memory. Furthermore, read protection is
provided by the CPU to protect the internal local memories against illegal data
accesses.
3.3.1
Branch Target Addressing Modes
The target address and the segment of jump or call instructions can be specified by
several addressing modes. The IP register may be updated using relative, absolute, or
indirect modes. The CSP register can be updated only by using an absolute value. A
special mode is provided to address the interrupt and trap jump vector table, which
resides in the lowest portion of the code segment 0.
caddr:
Specifies an absolute 16-bit code address within the current segment.
Branches MAY NOT be taken to odd code addresses. Therefore, the least
significant bit of caddr must always contain a 0 or a hardware trap will occur.
rel:
This mnemonic represents an 8-bit signed word offset address relative to the
current IP contents, which point to the instruction after the branch instruction.
Depending on the offset address range, both forward (rel= 00
H
to 7F
H
) and
backward (rel= 80
H
to FF
H
) branches are possible. The branch instruction
itself is repeatedly executed, when rel = -1 (FF
H
) for a word-sized branch
Table 3-1
Branch Target Addressing Modes
Mnemonic Target Address
Target Segment
Valid Address Range
caddr
(IP)
= caddr
-
caddr = 0000
H
...FFFE
H
rel
(IP)
= (IP) + 2*rel
(IP)
= (IP) + 2*(rel+1)
-
-
rel
= 00
H
...7F
H
rel
= 80
H
...FF
H
[Rw]
(IP)
= (Rw)
-
Rw w = 0...15
seg
-
(CSP) = seg
seg
= 0...255(3)
#trap7
(IP)
= 0000
H
+ 4*trap7
(CSP) = 0000
H
trap7 = 00
H
...7F
H
Содержание C166S V1 SubSystem
Страница 10: ...User s Manual C166S V1 SubSystem User s Manual I 6 V 1 6 2001 08...
Страница 16: ...User s Manual C166S V1 SubSystem Introduction User s Manual 1 6 V 1 6 2001 08...
Страница 126: ...User s Manual C166S V1 SubSystem Central Processing Unit User s Manual 3 96 V 1 6 2001 08...
Страница 178: ...User s Manual C166S V1 SubSystem Memory Organization User s Manual 4 52 V 1 6 2001 08...
Страница 206: ...User s Manual C166S V1 SubSystem Instruction Set User s Manual 5 28 V 1 6 2001 08...
Страница 306: ...User s Manual C166S V1 SubSystem Detailed Instruction Set User s Manual 6 100 V 1 6 2001 08...
Страница 362: ...User s Manual C166S V1 SubSystem The External Bus Interface User s Manual 8 40 V 1 6 2001 08...
Страница 452: ...User s Manual C166S V1 SubSystem General Purpose Timer Unit User s Manual 12 44 V 1 6 2001 08...
Страница 454: ...User s Manual C166S V1 SubSystem Instruction Index User s Manual 13 2 V 1 6 2001 08...
Страница 459: ......