数据搜索系统,热门电子元器件搜索
  Chinese  ▼
ALLDATASHEETCN.COM

X  

AN4276 数据表(PDF) 13 Page - STMicroelectronics

部件名 AN4276
功能描述  ECC management on SPC560x
PDF  21 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
制造商  STMICROELECTRONICS [STMicroelectronics]
网页  http://www.st.com
标志 STMICROELECTRONICS - STMicroelectronics

AN4276 数据表(HTML) 13 Page - STMicroelectronics

Back Button AN4276 Datasheet HTML 9Page - STMicroelectronics AN4276 Datasheet HTML 10Page - STMicroelectronics AN4276 Datasheet HTML 11Page - STMicroelectronics AN4276 Datasheet HTML 12Page - STMicroelectronics AN4276 Datasheet HTML 13Page - STMicroelectronics AN4276 Datasheet HTML 14Page - STMicroelectronics AN4276 Datasheet HTML 15Page - STMicroelectronics AN4276 Datasheet HTML 16Page - STMicroelectronics AN4276 Datasheet HTML 17Page - STMicroelectronics Next Button
Zoom Inzoom in Zoom Outzoom out
 13 / 21 page
background image
DocID024408 Rev 2
13/21
AN4276
ECC exception handling
Figure 5. Pseudo-Code for next instruction handler flow
Because of variable length instruction encoding, handler has to decode the length of the
instruction on the address stored in SRR0 register. It is done by means of analyzing
OPCODE of the instruction that can reveal the actual length, 16 or 32-bit. Once the length is
known value of SRR0 will be increased by the computed length.
Algorithm to find the instruction length for Z0 core is shown in Figure 6, where first six bits of
the first byte represents a primary OPCODE. Bits are in big endian form, where the bit 0 in
the leftmost bit in the word.
Figure 6. Instruction primary OPCODE decoding
Next instruction decoding approach has an advantage that it returns exactly to next
instruction in the application function which caused the ECC error regardless which function
caused the error. Later in the function code can be check of data validity.
Disadvantage can be processing time and exception load if for example function reads
multiple data bytes in the loop and checks for the error after that. Such loop will generate
ECC exception for each read where the data are corrupted.
4.3.2
Continue from known address in the read function
It is similar to the previous approach of next instruction decode, but return from the error
handler is to a known symbol in the function that can cause the ECC data access fault
without need of instruction decode like in Figure 7.
Application function FCE1()
Value = ReadDataFlashWord(addr)
Buffer[i] = StoreValue
EndOfFunction
Z0 core stores SRR0/SRR1
Start of handler execution
Reason found
Decode address of next instruction
(&StoreValue) and move it to SRR0
Clear the ECC error flag
Finish handler (rfi)
Z0 core restores MSR (SRR1) and
load PC counter with value of SRR0
IVOR2 exception (ECC on data flash access)
instruction = Read
content of address
given by SRR0 reg
instruction
Bit 3
SRR0 = SRR0 + 2
instruction
Bit 0
SRR0 = SRR0 + 4
‘0’
‘1’
‘1’
‘0’
16-bit
instruction
32-bit
instruction



Html Pages

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21


数据表 下载

Go To PDF Page


链接网址



ALLDATASHEET是否为您带来帮助?  [ DONATE ] 

关于 Alldatasheet   |   广告服务   |   联系我们   |   隐私政策   |   数据表链接    |   链接交换   |   制造商名单
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