使x循环移动y个位数。

连线板显示该多态函数的默认数据类型。


icon

输入/输出

  • ci16.png y

    y指定函数循环移动x的位数。

    If y is greater than 0, the function shifts the first y bits at the left end of x to the right end. If y is less than 0, the function shifts the first y bits at the right end of x to the left end.
  • cu32.png x

    x为8、16、32或64位整数,对于yy±8、y±16、y±32或y±64,可分别得出相同的输出值y

    For example, if x is an 8-bit integer, y = 1 and y = 9 yield the same result.
  • iu32.png x循环左移y位

    x循环左移y位是循环移位的结果。

    The data type of x循环左移y位 is determined by the data type of the x input.
  • 下表显示了xy如何影响x循环左移y位

    yxx循环左移y位注释
    13 (00000011)6 (00000110)函数将左端第一位0移至最右端。
    23 (00000011)12 (00001100)函数将左端前二位00移至最右端。
    –33 (00000011)96 (01100000)函数将右端前三位011移至最左端。

    FPGA模块详细信息

    下列信息适用于在FPGA VI中使用上述对象。

    注: 下列信息可能因LabVIEW FPGA模块的不同版本而有所不同。
    单周期定时循环 支持。
    Usage N/A
    定时

    在单周期定时循环内-在单周期定时循环内使用函数时,组合逻辑延时与x的位数成比例。

    在单周期定时循环外-在单周期定时循环外使用函数时,每个函数使用一个时钟周期和一个寄存器。

    资源 函数占用的FPGA资源与x的位数成比例。