Electronic Components Datasheet Search
  English  ▼
ALLDATASHEET.NET

X  

AN3350 Datasheet(PDF) 179 Page - STMicroelectronics

Part # AN3350
Description  eTPU compiler tools
PDF  185 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Manufacturer  STMICROELECTRONICS [STMicroelectronics]
Direct Link  http://www.st.com
Logo STMICROELECTRONICS - STMicroelectronics

AN3350 Datasheet(HTML) 179 Page - STMicroelectronics

Back Button AN3350 Datasheet HTML 175Page - STMicroelectronics AN3350 Datasheet HTML 176Page - STMicroelectronics AN3350 Datasheet HTML 177Page - STMicroelectronics AN3350 Datasheet HTML 178Page - STMicroelectronics AN3350 Datasheet HTML 179Page - STMicroelectronics AN3350 Datasheet HTML 180Page - STMicroelectronics AN3350 Datasheet HTML 181Page - STMicroelectronics AN3350 Datasheet HTML 182Page - STMicroelectronics AN3350 Datasheet HTML 183Page - STMicroelectronics Next Button
Zoom Inzoom in Zoom Outzoom out
 179 / 185 page
background image
AN3350
eTPU specific features
Doc ID 018512 Rev 2
179/185
standard|alternate specification. It would also locate this entry table section in the correct
location according to the given func_num.
If (standard|alternate) is not specified, standard is applied.
If a func_num is not specified, the compiler would assign a number automatically.
23.5
Memory allocation
The special architecture of the eTPU is quite different from that of most common
architectures. The number of GPRs is small and there are a lot of restrictions using them.
There is also no indirect access to memory with an offset from a register. These
characteristics lead us to have a non standard memory allocation model.
Global addresses 0-7 are for internal compiler usage and should not be used by the
programmer.
ETPU_functions arguments and static variables are allocated in a section that reside in the
channel parameter area pointed by the CPBA field. Access to these parameters shall be
using the selected channel relative addressing mode. The arguments and static variables of
an ETPU_function may occupy up to 512 bytes on the channel relative context. The
arguments are treated as static variables and continue to live after the thread ends.
Global variables are allocated in a section that resides in address 8 by default so that
access to these variables is done using the absolute addressing mode when possible.
Spilled local variables are allocated along with the global variables and also must be
accessed using the absolute addressing mode when possible.
For eTPU2 spilled local variables are allocated in a separate section, which can be
accessed using the engine relative accessing mode.
23.6
Channel structure
Channels are represented by a C structure of type chan_struct, which is declared in the
standard header file.
Only constants must be assigned to the members. The compiler validates values specific to
each field and generates an error when required. When assigning a value to one of the
members, the compiler generates an instruction, which corresponds to a field name from
the architecture spec, and assigns this field the given constant.
Note:
There is a backward compatibility problem as some of the fields where expanded in the HW
and have an extra bit in eTPU2 so the users who used CIRC and TDL in their eTPU
application would have to check their code.
23.7
Tooth Program Register (TPR) structure
The TPR structure exposes the TPR register fields to manipulation from the C language.
This structure is declared in the standard header file.
struct tpr_struct {
int TICKS
: 10;



Html Pages

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100  ...More


Datasheet Download

Go To PDF Page


Link URL



Does ALLDATASHEET help your business so far?  [ DONATE ] 

About Alldatasheet   |   Advertisement   |   Contact us   |   Privacy Policy   |   Link to Datasheet    |   Link Exchange   |   Manufacturer List
All Rights Reserved©Alldatasheet.com


Mirror Sites
English : Alldatasheet.com  |   English : Alldatasheet.net  |   Chinese : Alldatasheetcn.com  |   German : Alldatasheetde.com  |   Japanese : Alldatasheet.jp
Russian : Alldatasheetru.com  |   Korean : Alldatasheet.co.kr  |   Spanish : Alldatasheet.es  |   French : Alldatasheet.fr  |   Italian : Alldatasheetit.com
Portuguese : Alldatasheetpt.com  |   Polish : Alldatasheet.pl  |   Vietnamese : Alldatasheet.vn
Indian : Alldatasheet.in  |   Mexican : Alldatasheet.com.mx  |   British : Alldatasheet.co.uk  |   New Zealand : Alldatasheet.co.nz
Family Site : ic2ic.com  |   icmetro.com