English
Language : 

XC164CS Datasheet, PDF (22/71 Pages) Infineon Technologies AG – 16-Bit Single-Chip Microcontroller
XC164
Derivatives
Functional Description
3.3
Central Processing Unit (CPU)
The main core of the CPU consists of a 5-stage execution pipeline with a 2-stage
instruction-fetch pipeline, a 16-bit arithmetic and logic unit (ALU), a 32-bit/40-bit multiply
and accumulate unit (MAC), a register-file providing three register banks, and dedicated
SFRs. The ALU features a multiply and divide unit, a bit-mask generator, and a barrel
shifter.
Internal Program Memory PMU
System-Bus
CPU
Prefetch Unit
Branch Unit
CSP
IP
CPUCON1
CPUCON2
CPUID
VECSEG
TFR
FIFO
Return Stack
IFU
Injection/Exception
Handler
IDX0
IDX1
QX0
QX1
QR0
QR1
DPP0
DPP1
DPP2
DPP3
SPSEG
SP
STKOV
STKUN
+/-
Multiply Unit
+/-
MAH
MAC
+/-
MRW
MCW
MSW
MAL
ADU
Division Unit Bit-Mask-Gen.
Multiply Unit Barrel-Shifter
MDC
PSW
+/-
MDH
Zeros
MDL
Ones
ALU
2-Stage
Prefetch
Pipeline
5-Stage
Pipeline
IPIP
CP
R15
R1RR4 11R5415
GPRs R14
GPRs
GPRs
R1
R0RR01R1
R0
RF
Buffer
WB
DPRAM
address
R15
R14
GPRs
R1
R0
data in
data out
SRAM
DMU
Peripheral-Bus
System-Bus
Figure 4 CPU Block Diagram
Based on these hardware provisions, most of the XC164’s instructions can be executed
in just one machine cycle which requires 25 ns at 40 MHz CPU clock. For example, shift
and rotate instructions are always processed during one machine cycle independent of
the number of bits to be shifted. Also multiplication and most MAC instructions execute
in one single cycle. All multiple-cycle instructions have been optimized so that they can
be executed very fast as well: for example, a 32-/16-bit division is started within 4 cycles,
while the remaining 15 cycles are executed in the background. Another pipeline
Data Sheet
18
V2.1, 2003-06