Nios® V/II Embedded Design Suite (EDS)
Support for Embedded Development Tools, Processors (SoCs and Nios® V/II processor), Embedded Development Suites (EDSs), Boot and Configuration, Operating Systems, C and C++

C2h Fft

Altera_Forum
Honored Contributor II
967 Views

Default FFT C2h tutorial 

HI, 

 

Does anyone had experienced FFT tutorial not working when accelerated , accelerated function not getting the proper values as such. 

 

Debug Window NIOS II: 

 

0x00800eac <main+720>: movhi r4,129 

0x00800eb0 <main+724>: addi r4,r4,3608 

0x00800eb4 <main+728>: movhi r5,129 

0x00800eb8 <main+732>: addi r5,r5,2584 

0x00800ebc <main+736>: call 0x800674 <accelerator_optimized_fft> 

0x00800ec0 <main+740>: ldw r2,-16(fp) 

0x00800ec4 <main+744>: addi r2,r2,1 

0x00800ec8 <main+748>: stw r2,-16(fp) 

0x00800ecc <main+752>: br 0x800ea0 <main+708> 

0x00800ed0 <main+756>: movi r2,160 

0x00800ed4 <main+760>: stwio zero,0(r2) 

0x00800ed8 <main+764>: stw zero,-12(fp) 

0x00800edc <main+768>: ldw r2,-12(fp) 

0x00800ee0 <main+772>: cmpgeui r2,r2,256 

0x00800ee4 <main+776>: bne r2,zero,0x801098 <main+1212> 

0x00800ee8 <main+780>: movhi r3,129 

0x00800eec <main+784>: addi r3,r3,2584 

0x00800ef0 <main+788>: ldw r2,-12(fp) 

0x00800ef4 <main+792>: muli r2,r2,4 

0x00800ef8 <main+796>: add r4,r2,r3 

0x00800efc <main+800>: movhi r3,129 

0x00800f00 <main+804>: addi r3,r3,-6468 

0x00800f04 <main+808>: ldw r2,-12(fp) 

 

 

Output is wrong. 

Edit/Delete Message Reply With Quote Multi-Quote This Message Quick reply to this message
0 Kudos
0 Replies
Reply