This reference design can be run on a Ryzen™ AI NPU.
In the design data is brought from external memory to a compute tile and back, without modification from the tile, by using an implicit copy via the compute tile's Direct Memory Access (DMA). The data is read from and written to external memory through a shim tile.
The implicit copy is performed using the ObjectFifo forward() function that specifies how input data arriving via of_in should be sent further via of_out by leveraging the forwarding tile's DMA.
The single passthrough_dmas.py design uses @iron.jit and runs on NPU.
To compile and run the design for NPU:
make
make runTo run the standalone Python JIT + verify directly (no Makefile, no C++ testbench):
python3 passthrough_dmas.py