gen/fhdl/verilog: improve clock domain error reporting.
This commit is contained in:
parent
2741fc2ba5
commit
275932f56c
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue