using axi from rtl and C code
#4
There is axi bus in pulp_soc that goes axi_slice_dc_slave_wrap - soc_interconnect.
We removed axi_slice_dc_slave_wrap and routed our axi lite slave to the  s_data_out_bus.
From C we managed write and read to the 4 registers and confirm that the our component did process the data.
If we were to use full axi is there some register or some way to control the burst and confirm that slave got the data in C?

Code:
#define REG_COUNT 4
uint32_t *AXI_START = 0x10000000;

int main(void)
{
 for(int i = 0; i < REG_COUNT; i++) {
   AXI_START[i] = 0xff00ff00;
 }

 for(int i = 0; i < REG_COUNT; i++) {
   printf("%08x\t", AXI_START[i]);
 }
 return 0;
}
Reply


Messages In This Thread
using axi from rtl and C code - by sake - 03-05-2020, 07:36 PM
RE: using axi from rtl and C code - by kgf - 03-05-2020, 07:41 PM
RE: using axi from rtl and C code - by sake - 03-06-2020, 06:25 AM
RE: using axi from rtl and C code - by sake - 04-23-2020, 06:37 PM
RE: using axi from rtl and C code - by jem - 02-14-2021, 03:44 PM
RE: using axi from rtl and C code - by meggiman - 02-23-2021, 02:20 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)