gen/fhdl/namer: Return Non if sig is None.
This commit is contained in:
parent
0ae90a9653
commit
42cf2ca5d0
|
@ -413,6 +413,11 @@ class SignalNamespace:
|
||||||
self.clock_domains = dict()
|
self.clock_domains = dict()
|
||||||
|
|
||||||
def get_name(self, sig):
|
def get_name(self, sig):
|
||||||
|
# Return None if sig is None.
|
||||||
|
# ---------------------------
|
||||||
|
if sig is None:
|
||||||
|
return None
|
||||||
|
|
||||||
# Handle Clock and Reset Signals.
|
# Handle Clock and Reset Signals.
|
||||||
# -------------------------------
|
# -------------------------------
|
||||||
if isinstance(sig, (ClockSignal, ResetSignal)):
|
if isinstance(sig, (ClockSignal, ResetSignal)):
|
||||||
|
|
Loading…
Reference in New Issue