aws / aws-fpga

Official repository of the AWS EC2 FPGA Hardware and Software Development Kit
Other
1.51k stars 516 forks source link

Simulation - File Dump to a memory #649

Closed Gogul-N closed 3 months ago

Gogul-N commented 3 months ago

I have a text file. It has 32 bit data in each line up to 4096 lines. My testbench needs to read the text file and loads a memory which is connected to SHELL's PCIS/DMA using the following.

tb.poke(.addr(ADDR), .data(data), .id(AXI_ID), .size(DataSize::UINT32), .intf(AxiPort::PORT_DMA_PCIS));

How to achieve this?

Regards Gogul

Gogul-N commented 3 months ago

Please refer https://repost.aws/en/questions/QUKZWIVslDRXitP8tBJFSUqQ/simulation-file-dump-to-a-memory