The open-la500 core has USE_CACHE enabled. Writes to 0x1c400000 go to the write-back data cache and never reach the SRAM model before the testbench checks ExtRAM. Use the 0xA0000000 uncached segment (same pattern as fft_dma/main.c).
14 lines
251 B
C
14 lines
251 B
C
#include "fft.h"
|
|
#include "common_func.h"
|
|
|
|
void fft_start() {
|
|
RegWrite(FFT_CSR_REG, FFT_CTRL_START);
|
|
}
|
|
|
|
void fft_wait() {
|
|
while ((RegRead(FFT_CSR_REG) & FFT_STAT_DONE) == 0) {}
|
|
}
|
|
|
|
unsigned int fft_get_csr() {
|
|
return RegRead(FFT_CSR_REG);
|
|
} |