From 8c4de412207694205529f78133f78cdcbfd3e78e Mon Sep 17 00:00:00 2001 From: Felix Jentzsch <45395194+fpjentzsch@users.noreply.github.com> Date: Tue, 16 Apr 2024 16:09:08 +0200 Subject: [PATCH] [Debugbridge] fix: allow description as dict (#1445) 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 e3b8ccbf21..975cea6c5a 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