gen/fhdl/verilog: improve clock domain error reporting.

This commit is contained in:
Florent Kermarrec 2020-11-10 13:26:54 +01:00
parent 2741fc2ba5
commit 275932f56c
1 changed files with 3 additions and 3 deletions

View File

@ -398,10 +398,10 @@ def convert(f, ios=None, name="top",
f.clock_domains.append(cd)
ios |= {cd.clk, cd.rst}
else:
print("available clock domains:")
msg = f"""Unresolved clock domain {cd_name}, availables:\n"""
for f in f.clock_domains:
print(f.name)
raise KeyError("Unresolved clock domain: '"+cd_name+"'")
msg += f"- {f.name}\n"
raise Exception(msg)
f = lower_complex_slices(f)
insert_resets(f)