From 588e239b2e3094e189202742d5e18cbc426a16b4 Mon Sep 17 00:00:00 2001 From: Patrick Huesmann Date: Mon, 9 Dec 2024 17:20:14 +0100 Subject: [PATCH] feat: add rt_prio support to Python demo --- example/demo_python/axi_dma_demo.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/example/demo_python/axi_dma_demo.py b/example/demo_python/axi_dma_demo.py index 570e67e6..c0eb2a3f 100755 --- a/example/demo_python/axi_dma_demo.py +++ b/example/demo_python/axi_dma_demo.py @@ -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', @@ -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')