DSP: C6678
What do I need to configure to send data using SWRITE to an FPGA on
the same board from the DSP?
Receiving data from the FPGA is working so the device is alive and the
bit rate is correct.
To send data I first disable block 1 using:
CSL_SRIO_DisableBlock (hSrio, 1);
Then I set LSU registers 0 - 4.
CSL_SRIO_SetLSUReg0 (hSrio, 0, 0);
CSL_SRIO_SetLSUReg1 (hSrio, 0, dest_address);
CSL_SRIO_SetLSUReg2 (hSrio, 0, &data_buffer_al);
CSL_SRIO_SetLSUReg3 (hSrio, 0, byte_count, 0);
CSL_SRIO_SetLSUReg4 (hSrio, 0, dest_id, 0, id_size_8, 0, 2, 0, 0, 0);
Enable block 1
CSL_SRIO_EnableBlock (hSrio, 1);
and finally I set LSU reg 5:
CSL_SRIO_SetLSUReg5 (hSrio, 0, 0, 6, 0, 0);
We can't see any signs of activity at the FPGA end after this.
What am I missing and how can I find out what's preventing the transmission to
start?
Library used is: pdk_C6678_1_1_2_5
/Stefan Kvist