youcef_ali
DIIDevHeads IoT Integration Server
•Created by youcef_ali on 3/22/2024 in #firmware-and-baremetal
In Zynq SoC the DMA is writing in memory with big-endian there is a way to change it little endian
i have added this block before thr t_axis_data of the dma what do you think: module EndianSwap(
input [31:0] InputData,
output reg [31:0] OutputData
);
always @ (InputData)
begin
OutputData[31:24] = InputData[7:0];
OutputData[23:16] = InputData[15:8];
OutputData[15:8] = InputData[23:16];
OutputData[7:0] = InputData[31:24];
end
endmodule
6 replies