Infineon AURIX User Manual

Page 1
CPU
Central Processing Unit
AURIX™ TC3xx Microcontroller Training V1.0 2020-06
Please read the Important Notice and Warnings at the end of this document
Page 2
Code optimization (e.g. reduced code
size by using 16-bit & 32-bit instructions)
Central Processing Unit
Key Features Customer Benefits
Highlights
The Central Processing Unit (CPU)
comprises of an Instruction Fetch Unit, an Execution Unit, a General Purpose Register File (GPR), a CPU Slave interface (CPS), and Floating Point Unit (FPU).
Temporal protection system
Flexible memory protection
Wide range of supported instructions
Time bounded real time operation
Multiple protection ranges over the
memory
Central Processing Unit
Program Memory Interface
Data Memory Interface
Instruction Fetch Unit
Execution Unit
General Purpose Register File
FPU
CPS
CPU
Comunication with other
modules through CPS
2
2020-06-05 Copyright © Infineon Technologies AG 2020. All rights reserved.
Page 3
Temporal protection system
A very common problem of real time systems is given by the tasks with a defined runtime. Overrunning this can lead to overall program failures. Each core has a temporal protection system (TPS) formed out of three 32-bit decrementing counters clocked by the primary clock.
The operating system (OS) loads the
expected runtime at task‘s start and a
trap is generated when the counter reaches 0. Generating a trap, and not an interrupt, protects the system in
case the task is allowed to disable
interrupts for periods of time.
Based on the counters‘ values
(together with the time-out flags), it is ensured that the real time application is
time bounded.
Central Processing Unit
Program Memory Interface
Data Memory Interface
Instruction Fetch Unit
Execution Unit
General Purpose Register File
FPU
CPS
CPU
Generate a trap
Two 32-bit
counters
3
2020-06-05 Copyright © Infineon Technologies AG 2020. All rights reserved.
Page 4
Flexible memory protection
For each task of the real time system, memory resouces are defined. If these resources are outrun, failures appear in the application.
The memory protection stops a
program overrunning its assigned region of memory and it is based on access permissions defined by address ranges.
Data access permissions are defined
by any combination of write enable and read enable. Fetch access permision is based on access enable rights.
Fast permission switching is based on
6 protection sets with up to 18 defined
data ranges and up to 10 defined code ranges.
The range to set asignment is flexible, which enables setting the right memory
protection for the application at hand.
Data
range
Code
range
Address Space
Set 1 Set 2 Set 3 Set 4
4
2020-06-05 Copyright © Infineon Technologies AG 2020. All rights reserved.
Page 5
Wide range of supported instructions
This very rich instruction set covers 16-bit and 32­bit format instructions, which can be freely mixed in the instruction stream, reducing code size and optimizing the application. The instruction set
supports a number of data types including bytes,
signed and unsigned integers, single precision floating-point and 16- and 32-bit signed fractions.
TriCore
™ TC1.6.2P Instruction Set
General Purpose Instr.
Arithmetic, Logic Address Arithmetic & Comparison, Load/Store, Context Switch
Advanced
Control Instr.
Bit
-field, Bit-logical, Min/Max
Comparison, Branch
Coprocessor Instr.
Floating Point
16
-bit Subset
Load/Store, Arithmetic, Branch
Digital
Signal
Processor (DSP)
Instr.
MAC,
Saturated Math, DSP
Addressing Modes
5
2020-06-05 Copyright © Infineon Technologies AG 2020. All rights reserved.
Page 6
System Integration
The AURIX™ TC3xx 32-bit microcontroller family contains a wide range of safety oriented devices varying from single-core to hexa-core versions.
One of the most important features of the family is the "lockstep" capability. A core
operating in Lockstep mode consists of a master and checker core. The checker core
executes the same instructions as the master core, but it is two clock cycles out of phase. In case the outcome of a checker core is different from the master, an alarm is generated. The cores 0 to 3 are connected to SRI Cross Bar Interconnect 0 (SRI0), while cores 4 and 5 are connected to SRI Cross Bar Interconnect 1 (SRI1). The two cross bars are connected via a bridge. This ensures the fast exchange of data between the cores. Moreover, the CPUs are connected to the System Peripheral Bus, which grant them access to all the peripherals.
System Peripheral Bus
CPU 0 CPU 1 CPU 2 CPU 3 CPU 5CPU 4
SRI Cross Bar Interconnect 0
7
2020-06-05 Copyright © Infineon Technologies AG 2020. All rights reserved.
SRI Cross Bar Interconnect 1
Bridge
Page 7
Application Example
Multicore application
Overview
Issue: Real-time applications running multiple
tasks have the issue of overloading the CPU.
Solution: Switching to a multicore system, where tasks are divided over multiple cores. In the case of tasks depending on each other, the needed communication and scheduling will
slightly reduce the performance.
Advantages
Avoid CPU overload
Improvement of overall system‘s
performance
Clear division of tasks over the whole
system ( moving from „one-man show“ to
„team work“)
Single Core Application
Multicore Application
Task 1
Task 4
Task 2
Task 3
Task 5
Task 1
Task 3
Task 5
Task 4
Task 2
CPU0
CPU0 CPU1
CPU2
8
2020-06-05 Copyright © Infineon Technologies AG 2020. All rights reserved.
Page 8
IMPORTANT NOTICE
The information given in this document shall in no
event be regarded as a guarantee of conditions or
characteristics (“Beschaffenheitsgarantie”).
With respect to any examples, hints or any typical values stated herein and/or any information regarding the application of the product, Infineon Technologies hereby disclaims any and all warranties and liabilities of any kind, including
without limitation warranties of non-infringement
of intellectual property rightsof any third party.
In addition, any information given in this document is subject to customer’s compliance with its obligations stated in this document and any applicable legal requirements, norms and standards concerning customer’s products and
any use of the product of Infineon Technologies in
customer’s applications.
The data contained in this document is exclusively intended for technically trained staff. It is the responsibility of customer’s technical departments to evaluate the suitability of the product for the intended application and the completeness of the product information given in
this document with respectto such application.
For further information on the product, technology, delivery terms and conditions and prices please contact your nearest Infineon Technologies office (www.infineon.com).
WARNINGS
Due to technical requirements products may
contain dangerous substances. For information
on the types in question please contact your nearest Infineon Technologies office.
Except as otherwise explicitly approved by Infineon Technologies in a written document signed by authorized representatives of Infineon Technologies, Infineon Technologies’ products
may not be used in any applications where a
failure of the product or any consequences of the use thereof can reasonably be expected to result in personal injury.
Edition 2020-06
Published by
Infineon Technologies AG 81726 Munich, Germany
© 2020 Infineon Technologies AG. All Rights Reserved.
Do you have a question about this
document?
Email: erratum@infineon.com
Document reference AURIX_Training_2_ Central_Processing_Unit
Trademarks
All referenced product or service names andtrademarks are the property of their respectiveowners.
Loading...