def bitarray2fasm(bitarray):
    """ Convert array of bits ('0', '1') into FASM value.

    Note: index 0 is the LSB.

    """
    bitstr = ''.join(bitarray[::-1])

    return "{}'b{}".format(len(bitstr), bitstr)