def getVecIndex(msb: int, lsb: int, index: int) -> int:
    """Get the index in the list of [msb, ..., index, ... , lsb]
    
    index -> index in verilog slicing
    """
    if lsb > msb:
        return index - msb
    return msb - index