Fixed bit names formatting.

Signed-off-by: Maciej Kurc <mkurc@antmicro.com>
This commit is contained in:
Maciej Kurc 2019-11-14 16:09:44 +01:00
parent 65ccddb6d3
commit 6fd00834b2
1 changed files with 1 additions and 1 deletions

View File

@ -74,7 +74,7 @@ def bit_to_str(bit):
Converts a tuple (frame, bit, value) to its string representation.
"""
s = "!" if not bit[2] else ""
return "{}{}_{}".format(s, bit[0], bit[1])
return "{}{}_{:02d}".format(s, bit[0], bit[1])
def load_segbits(file_name):