ST10R272L - ARCHITECTURAL OVERVIEW
11/320
2.1
Basic CPU concepts
The main core of the CPU contains a 4-stage instruction pipeline, a MAC
multiply-accumulation unit, a separate multiply and divide unit, a bit-mask generator and a
barrel shifter. Most instructions can be executed in one CPU clock cycle.
The CPU includes an actual register context, consisting of 16 wordwide GPRs physically
located in the on-chip RAM area. A Context Pointer (CP) register determines the base
address of the active register bank to be accessed by the CPU. The number of register
banks is only restricted by the available internal RAM space. For easy parameter passing,
one register bank may overlap others.
A system stack of up to 1024 bytes stores temporary data. The system stack is allocated in
the on-chip RAM area, and is accessed by the CPU, via the stack pointer (SP) register. Two
separate SFRs, STKOV and STKUN, are compared against the stack pointer value during
each stack access, to detect stack overflow or underflow.
The MAC improves the performance of signal processing algorithms. It provides
non-pipelined single-cycle instructions - including 32-bit signed arithmetic (addition,
subtraction, shift,...), 16 by 16 multiplication, and multiplication with cumulative subtraction/
addition.
Figure 2 CPU block diagram
16
16
Internal
RAM
1KByte
R15
R0
General
Purpose
Registers
R0
R15
MDH
MLD
Barrel-Shift
Mul./Div.-HW
Bit-Mask Gen.
ALU
16-Bit
Context Ptr
ADDRSEL 1
ADDRSEL 2
ADDRSEL 3
ADDRSEL 4
Code Seg. Ptr.
CPU
IDX0
IDX1
QX1
QX0
QR0
QR1
SP
STKOV
STKUN
Exec. Unit
Instr. Ptr
Instr. Reg
4-Stage
Pipeline
PSW
SYSCON
BUSCON 0
BUSCON 1
BUSCON 2
BUSCON 3
BUSCON 4
Data Pg. Ptrs