Forum Discussion
Altera_Forum
Honored Contributor
16 years agoFft In Sopc
Guyz please help , if u have an idea. Uptil now i made a 64 point FFT using megacore and added it to the sopc as a new component but there are a lot of signals and so it gives me an error when ...
Altera_Forum
Honored Contributor
15 years agoHi
I want to speak about connect SGDMA and start transmit data. SGDMA has 4 Signal 1 - read/write Descriptor Signal: this Signal Should be connected to the memory where you write your Descriptor, for example: - in Sopc builder i will connect read/write Descriptor Signal to The (On_Chip_Memory) it name : "INPUT_RAM". -so in Nios II Program I should add Descriptor as following: alt_sgdma_descriptor *desc = (alt_sgdma_descriptor*)input_ram_base ; **************** 2 - read or In Signal: connected to the memory where I write my input Data in Nios II Program: alt_u32 *tx_ptr = (alt_u32 *) (INPUT_RAM_BASE+ ALTERA_AVALON_SGDMA_DESCRIPTOR_SIZE); where tx_ptr is a pointer of memory where data will be read from. ***************** 3 - CSR Signal: should connected to the CPU, it is needed to asked SGDMA about its status. ***************** 4 - write or out Signal: connected to the memory where i want to write output data: alt_u32 * rx_ptr = (alt_u32 *) (OUTPUT_RAM_BASE+ ALTERA_AVALON_SGDMA_DESCRIPTOR_SIZE); where tx_ptr is a pointer of memory where data is written