gen/fhdl/namer: Return Non if sig is None.

This commit is contained in:
Florent Kermarrec 2024-12-02 17:27:05 +01:00
parent 0ae90a9653
commit 42cf2ca5d0
1 changed files with 5 additions and 0 deletions

View File

@ -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)):