| Electronic Components Datasheet Search |
|
TMS320C6474 Datasheet(PDF) 13 Page - Texas Instruments |
|
|
|
|||||||||||||||||||||||||||||
TMS320C6474 Datasheet(HTML) 13 Page - Texas Instruments |
|
13 / 41 page ![]() www.ti.com Silicon Revision 1.3 Known Design Exceptions to Functional Specifications • Protect non-cacheable reads from generating an SDMA stall by freezing the L1D cache during the non-cacheable read access(es). The following example code contains a function that protects non-cacheable reads, avoids blocking during the reads, and, therefore, avoids the deadlock state. ;; ======================================================================== ;; ;; Long Distance Load Word ;; ;; ;; ;; int long_dist_load_word(volatile int *addr) ;; ;; ;; ;; This function reads a single word from a remote location with the L1D ;; ;; cache frozen. This prevents L1D from sending victims in response to ;; ;; these reads, thus preventing the L1D victim lock from engaging for the ;; ;; corresponding L1D set. ;; ;; ;; ;; The code below does the following: ;; ;; ;; ;; 1. Disable interrupts ;; ;; 2. Freeze L1D ;; ;; 3. Load the requested word ;; ;; 4. Unfreeze L1D ;; ;; 5. Restore interrupts ;; ;; ;; ;; Interrupts are disabled while the cache is frozen to prevent affecting ;; ;; the performance of interrupt handlers. Disabling interrupts during ;; ;; the long distance load does not greatly impact interrupt latency, ;; ;; because the CPU already cannot service interrupts when it's stalled by ;; ;; the cache. This function adds a small amount of overhead (~20 cycles) ;; ;; to that operation. ;; ;; ;; ;; ======================================================================== ;; .asg 0x01840044, L1DCC ; L1D Cache Control .global _long_dist_load_word .text .asmfunc ; int long_dist_load_word(volatile int *addr) _long_dist_load_word: MVKL L1DCC, B4 MVKH L1DCC, B4 || DINT ; Disable interrupts || MVK 1, B5 STW B5, *B4 ; \_ Freeze cache LDW *B4, B5 ; / NOP 4 SHR B5, 16, B5 ; POPER -> OPER || LDW *A4, A4 ; read value remotely NOP 4 STW B5, *B4 ; \_ Restore cache RET B3 || LDW *B4, B5 ; / NOP 4 RINT ; Restore interrupts .endasmfunc ;; ======================================================================== ;; ;; End of file: ldld.asm ;; ;; ======================================================================== ;; In the C6474 multicore device, when one GEM is accessing another GEM's L1 or L2 memory it is an MDMA access, so the potential SDMA/IDMA stall can occur. The stall can be avoided by using the EDMA to transfer data from one GEM's memory to another. SPRZ283 – October 2008 TMS320C6474 DSP 13 Silicon Revisions 1.3, 1.2 Submit Documentation Feedback |
|
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 |
| 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 |