scripts/liberty: Support fixed statetable output.

The statetable values where fixed in the `.lib.json` files.

Signed-off-by: Tim 'mithro' Ansell <me@mith.ro>
This commit is contained in:
Tim 'mithro' Ansell 2020-07-20 16:17:02 -07:00
parent d7a58ea703
commit d91e88682f
1 changed files with 3 additions and 0 deletions

View File

@ -1038,6 +1038,9 @@ def liberty_dict(dtype, dvalue, data, indent=tuple(), attribute_types=None):
elif is_liberty_list(ktype):
o.extend(liberty_list(ktype, v, indent_n))
elif "table" == ktype:
o.append('%s%s : "%s";' % (INDENT*len(indent_n), k, ",".join(v)))
elif "clk_width" == ktype:
for l in sorted(v):
o.append('%s%s : "%s";' % (INDENT*len(indent_n), k, l))