scripts/liberty: Make the `clk_width` attribute a string.

Fixes #69.

Signed-off-by: Tim 'mithro' Ansell <me@mith.ro>
This commit is contained in:
Tim 'mithro' Ansell 2020-07-09 17:21:53 -07:00
parent c6b5b6e5c3
commit b70d1a51ad
1 changed files with 1 additions and 1 deletions

View File

@ -810,7 +810,7 @@ def liberty_dict(dtype, dvalue, data, indent=tuple()):
elif "clk_width" == ktype:
for l in sorted(v):
o.append("%s%s : %s;" % (INDENT*len(indent_n), k, l))
o.append('%s%s : "%s";' % (INDENT*len(indent_n), k, l))
else:
raise ValueError("Unknown %s: %r\n%s" % (k, v, indent_n))