Skip to content

Commit

Permalink
feat: add rt_prio support to Python demo
Browse files Browse the repository at this point in the history
  • Loading branch information
patrislav1 committed Dec 9, 2024
1 parent 95ad91b commit 588e239
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion example/demo_python/axi_dma_demo.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,10 @@ def main():
type=str,
help='Path to xdma device nodes'
)
parser.add_argument('-r', '--rt-prio',
action='store_true',
help='Enable RT scheduling priority'
)
dma_mode = parser.add_mutually_exclusive_group(required=True)
dma_mode.add_argument('-x', '--xdma',
action='store_true',
Expand Down Expand Up @@ -144,7 +148,7 @@ def main():
# when using predefined UIO region such as PL-DDR
# udmabuf = FpgaMemBufferOverAxi(UioDeviceLocation('plddr-axi-test'))

data_handler = DataHandler(axi_dma, mem_sgdma, udmabuf)
data_handler = DataHandler(axi_dma, mem_sgdma, udmabuf, True, 1024, args.rt_prio)
traffic_gen = TrafficGen(consts.AXI_TRAFFIC_GEN_0)

print('Starting DMA')
Expand Down

0 comments on commit 588e239

Please sign in to comment.