From 83e4aeb08fa2231418c6fb6a794af64ad372ce74 Mon Sep 17 00:00:00 2001 From: Felix Jentzsch Date: Mon, 15 Apr 2024 18:08:20 +0200 Subject: [PATCH] [Debugbridge] fix: allow description as dict Signed-off-by: Felix Jentzsch --- pynq/lib/debugbridge.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pynq/lib/debugbridge.py b/pynq/lib/debugbridge.py index e3b8ccbf2..975cea6c5 100644 --- a/pynq/lib/debugbridge.py +++ b/pynq/lib/debugbridge.py @@ -206,7 +206,7 @@ def __init__(self, description): description : dict The entry in the IP dict describing the DMA engine """ - if type(description) is not ReprDict: + if type(description) not in [dict, ReprDict]: raise RuntimeError('Description is not valid', str(description)) # Insert register dict as they are not provided in the IP descriptor