i have added this block before thr t_axis_data of the dma what do you think: module EndianSwap(

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
Was this page helpful?