From 42cf2ca5d0ba993c02e80b28a469848b428894e1 Mon Sep 17 00:00:00 2001 From: Florent Kermarrec Date: Mon, 2 Dec 2024 17:27:05 +0100 Subject: [PATCH] gen/fhdl/namer: Return Non if sig is None. --- litex/gen/fhdl/namer.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/litex/gen/fhdl/namer.py b/litex/gen/fhdl/namer.py index 3db8606a2..fea8458ca 100644 --- a/litex/gen/fhdl/namer.py +++ b/litex/gen/fhdl/namer.py @@ -413,6 +413,11 @@ class SignalNamespace: self.clock_domains = dict() def get_name(self, sig): + # Return None if sig is None. + # --------------------------- + if sig is None: + return None + # Handle Clock and Reset Signals. # ------------------------------- if isinstance(sig, (ClockSignal, ResetSignal)):