gen/fhdl/verilog/_printattr: Avoid trying translating attribute when not supported by Toolchain.
This commit is contained in:
parent
4fd974be10
commit
bdc32171fd
|
@ -205,7 +205,7 @@ def _printattr(attr, attr_translate):
|
||||||
attr_name, attr_value = attr
|
attr_name, attr_value = attr
|
||||||
else:
|
else:
|
||||||
# translated attribute
|
# translated attribute
|
||||||
at = attr_translate[attr]
|
at = attr_translate.get(attr, None)
|
||||||
if at is None:
|
if at is None:
|
||||||
continue
|
continue
|
||||||
attr_name, attr_value = at
|
attr_name, attr_value = at
|
||||||
|
|
Loading…
Reference in New Issue