Skip to content

Commit 588e239

Browse files
committed
feat: add rt_prio support to Python demo
1 parent 95ad91b commit 588e239

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

example/demo_python/axi_dma_demo.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,10 @@ def main():
8686
type=str,
8787
help='Path to xdma device nodes'
8888
)
89+
parser.add_argument('-r', '--rt-prio',
90+
action='store_true',
91+
help='Enable RT scheduling priority'
92+
)
8993
dma_mode = parser.add_mutually_exclusive_group(required=True)
9094
dma_mode.add_argument('-x', '--xdma',
9195
action='store_true',
@@ -144,7 +148,7 @@ def main():
144148
# when using predefined UIO region such as PL-DDR
145149
# udmabuf = FpgaMemBufferOverAxi(UioDeviceLocation('plddr-axi-test'))
146150

147-
data_handler = DataHandler(axi_dma, mem_sgdma, udmabuf)
151+
data_handler = DataHandler(axi_dma, mem_sgdma, udmabuf, True, 1024, args.rt_prio)
148152
traffic_gen = TrafficGen(consts.AXI_TRAFFIC_GEN_0)
149153

150154
print('Starting DMA')

0 commit comments

Comments
 (0)