Forum Discussion
Altera_Forum
Honored Contributor
12 years agoTSE MAC and SGDMA
Hi there, I am using TSE MAC and SGDMA to capture a network frame,i am facing a issue related to receive frame. Let me first clear my receive flow. 1)open the SGDMA by "alt_avalon_sgdma_ope...
Altera_Forum
Honored Contributor
12 years agotemp_ptr_rx = malloc((number_of_buffers + 2) * ALTERA_AVALON_SGDMA_DESCRIPTOR_SIZE);
if(temp_ptr_rx == NULL) { printf("Failed to allocate memory for the receive descriptors\n"); return 1; } *receive_descriptors_copy = (alt_sgdma_descriptor *)temp_ptr_rx; this is the simple code to allocate memory for descriptor