fhdl/verilog: Remove create_clock_domains (not used in LiteX).

This commit is contained in:
Florent Kermarrec 2021-10-15 15:12:30 +02:00
parent 8c3508e7f5
commit fe2998a19c
2 changed files with 6 additions and 16 deletions

View File

@ -432,10 +432,7 @@ class GenericPlatform:
return named_sc, named_pc return named_sc, named_pc
def get_verilog(self, fragment, **kwargs): def get_verilog(self, fragment, **kwargs):
return verilog.convert( return verilog.convert(fragment, self.constraint_manager.get_io_signals(), **kwargs)
fragment,
self.constraint_manager.get_io_signals(),
create_clock_domains=False, **kwargs)
def get_edif(self, fragment, cell_library, vendor, device, **kwargs): def get_edif(self, fragment, cell_library, vendor, device, **kwargs):
return edif.convert( return edif.convert(

View File

@ -470,7 +470,6 @@ class DummyAttrTranslate(dict):
def convert(f, ios=set(), name="top", def convert(f, ios=set(), name="top",
special_overrides = dict(), special_overrides = dict(),
attr_translate = DummyAttrTranslate(), attr_translate = DummyAttrTranslate(),
create_clock_domains = True,
blocking_assign = False, blocking_assign = False,
regular_comb = True): regular_comb = True):
@ -486,14 +485,8 @@ def convert(f, ios=set(), name="top",
# Try to get Clock Domain. # Try to get Clock Domain.
try: try:
f.clock_domains[cd_name] f.clock_domains[cd_name]
# If not found, create it if enabled: # If not found, raise Error.
except: except:
if create_clock_domains:
cd = ClockDomain(cd_name)
f.clock_domains.append(cd)
ios |= {cd.clk, cd.rst}
# Or raise Error.
else:
msg = f"""Unresolved clock domain {cd_name}, availables:\n""" msg = f"""Unresolved clock domain {cd_name}, availables:\n"""
for f in f.clock_domains: for f in f.clock_domains:
msg += f"- {f.name}\n" msg += f"- {f.name}\n"