Skip to content

Commit

Permalink
gen/fhdl/namer: Return Non if sig is None.
Browse files Browse the repository at this point in the history
  • Loading branch information
enjoy-digital committed Dec 2, 2024
1 parent 0ae90a9 commit 42cf2ca
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions litex/gen/fhdl/namer.py
Original file line number Diff line number Diff line change
Expand Up @@ -413,6 +413,11 @@ def __init__(self, name_dict, reserved_keywords=set()):
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)):
Expand Down

0 comments on commit 42cf2ca

Please sign in to comment.