From f1080345fcc25c18e65615be106b781044592980 Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Sun, 13 Sep 2020 14:11:12 +0100 Subject: [PATCH] add dummy Display function --- src/nmutil/util.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/nmutil/util.py b/src/nmutil/util.py index 5e8660b..c9e95cc 100644 --- a/src/nmutil/util.py +++ b/src/nmutil/util.py @@ -58,3 +58,15 @@ def rising_edge(m, sig): m.d.comb += rising.eq(sig & ~delay) # sig is hi but delay-sig is lo return rising + +# Display function (dummy if non-existent) +# added as a patch from jeanthom +# https://gist.githubusercontent.com/jeanthom/ +# f97f5b928720d4adda9d295e8a5bc078/ +# raw/694274e0aceec993c0fc127e296b1a85b93c1b89/nmigen-display.diff +try: + from nmigen.hdl.ast import Display +except ImportError: + def Display(*args): + return [] + -- 2.30.2