TISP User Guide
TISP_fft1dBatched_memory_map.hpp
Go to the documentation of this file.
1 #include <stdint.h>
2 
3 #define NUM_POINTS (512)
4 #define NUM_CHANNELS (32)
5 
6 #if defined(HOST_EMULATION)
7 #include <malloc.h>
8 #elif __C7X_VEC_SIZE_BITS__ == 512
9 #include <ti/csl/arch/c7x/cslr_C7X_CPU.h>
10 #include <ti/csl/csl_clec.h>
11 #else
12 #include <drivers/hw_include/csl_clec.h>
13 #endif
14 
15 #define DDR_SIZE (64 * 1024 * 1024) // 64 MB
16 
17 #define L2SRAM_SIZE (1024 * 1024) // 1 MB
18 
19 #if defined(HOST_EMULATION)
20 uint8_t ddrBuffer[DDR_SIZE];
21 uint8_t l2Buffer[L2SRAM_SIZE];
22 #endif
23 
24 #if !defined(HOST_EMULATION)
25 __attribute__((section(".ddrData"), aligned(128))) uint8_t ddrBuffer[DDR_SIZE];
26 __attribute__((section(".l2sramData"), aligned(128))) uint8_t l2Buffer[L2SRAM_SIZE];
27 #endif
28 
29 #define INPUT_CN_ADDR (float *) ddrBuffer
30 #define FFT_CN_ADDR (INPUT_CN_ADDR + (NUM_POINTS << 1) * NUM_CHANNELS)
31 #define SQR_CN_ADDR (FFT_CN_ADDR + (NUM_POINTS << 1) * NUM_CHANNELS)
32 #define TW_CN_ADDR (SQR_CN_ADDR + NUM_POINTS * 2 * NUM_CHANNELS)
33 
34 #define INPUT_BLOCK_ADDR (float *) l2Buffer
35 #define COPY_BLOCK_ADDR (INPUT_BLOCK_ADDR + +2 * NUM_POINTS * NUM_CHANNELS)
36 #define FFT_BLOCK_ADDR (COPY_BLOCK_ADDR + 2 * NUM_POINTS * NUM_CHANNELS)
37 #define SQR_BLOCK_ADDR (FFT_BLOCK_ADDR + 2 * NUM_POINTS * NUM_CHANNELS)
#define L2SRAM_SIZE
__attribute__((section(".ddrData"), aligned(128))) uint8_t ddrBuffer[DDR_SIZE]