Skip to content

Commit

Permalink
[SW] modify memcpy kernel to test AXI-L2 DMA transfer
Browse files Browse the repository at this point in the history
  • Loading branch information
yichao-zh committed Dec 3, 2024
1 parent afd0e1c commit c3b9d61
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 4 deletions.
2 changes: 1 addition & 1 deletion software/tests/baremetal/memcpy/data.args
Original file line number Diff line number Diff line change
@@ -1 +1 @@
--variable=l2_data --size=2048
--variable=l2_data --size=16384
7 changes: 4 additions & 3 deletions software/tests/baremetal/memcpy/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

// Size in words
#ifndef SIZE
#define SIZE (2048)
#define SIZE (16384)
#endif

#define DMA_ADDRESS (0x40010000)
Expand Down Expand Up @@ -103,8 +103,9 @@ int main() {
// Verify
#ifdef VERIFY
if (core_id == 0) {
verify_dma_parallel(l2_data_move_out, SIZE, core_id, num_cores, l2_data,
error);
// verify_dma_parallel(l2_data_move_out, SIZE, core_id, num_cores, l2_data,
// error);
verify_dma_single_core(l2_data_move_out, SIZE, l2_data, error);
}
// wait until all cores have finished
mempool_barrier(num_cores);
Expand Down
6 changes: 6 additions & 0 deletions software/tests/baremetal/memcpy/run.tcl
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
root_dir=$(git rev-parse --show-toplevel)
cd $root_dir/software/tests/baremetal;
config=terapool make memcpy;
cd $root_dir/hardware;
app=tests/baremetal/memcpy config=terapool make sim;
cd -;

0 comments on commit c3b9d61

Please sign in to comment.